types.go 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869
  1. // Code generated by goctl. DO NOT EDIT.
  2. package types
  3. // The basic response with data | 基础带数据信息
  4. // swagger:model BaseDataInfo
  5. type BaseDataInfo struct {
  6. // Error code | 错误代码
  7. Code int `json:"code"`
  8. // Message | 提示信息
  9. Msg string `json:"msg"`
  10. // Data | 数据
  11. Data string `json:"data,omitempty"`
  12. }
  13. // The basic response with data | 基础带数据信息
  14. // swagger:model BaseListInfo
  15. type BaseListInfo struct {
  16. // The total number of data | 数据总数
  17. Total uint64 `json:"total"`
  18. // Data | 数据
  19. Data string `json:"data,omitempty"`
  20. }
  21. // The basic response without data | 基础不带数据信息
  22. // swagger:model BaseMsgResp
  23. type BaseMsgResp struct {
  24. // Error code | 错误代码
  25. Code int `json:"code"`
  26. // Message | 提示信息
  27. Msg string `json:"msg"`
  28. }
  29. // The page request parameters | 列表请求参数
  30. // swagger:model PageInfo
  31. type PageInfo struct {
  32. // Page number | 第几页
  33. // required : true
  34. // min : 0
  35. Page uint64 `json:"page" validate:"required,number,gt=0"`
  36. // Page size | 单页数据行数
  37. // required : true
  38. // max : 100000
  39. PageSize uint64 `json:"pageSize" validate:"required,number,lt=100000"`
  40. }
  41. // Basic ID request | 基础ID参数请求
  42. // swagger:model IDReq
  43. type IDReq struct {
  44. // ID
  45. // Required: true
  46. Id uint64 `json:"id" validate:"number"`
  47. }
  48. // Basic IDs request | 基础ID数组参数请求
  49. // swagger:model IDsReq
  50. type IDsReq struct {
  51. // IDs
  52. // Required: true
  53. Ids []uint64 `json:"ids"`
  54. }
  55. // Basic ID request | 基础ID地址参数请求
  56. // swagger:model IDPathReq
  57. type IDPathReq struct {
  58. // ID
  59. // Required: true
  60. Id uint64 `path:"id"`
  61. }
  62. // Basic ID request (int32) | 基础ID参数请求 (int32)
  63. // swagger:model IDInt32Req
  64. type IDInt32Req struct {
  65. // ID
  66. // Required: true
  67. Id int32 `json:"id" validate:"number"`
  68. }
  69. // Basic IDs request (int32) | 基础ID数组参数请求 (int32)
  70. // swagger:model IDsInt32Req
  71. type IDsInt32Req struct {
  72. // IDs
  73. // Required: true
  74. Ids []int32 `json:"ids"`
  75. }
  76. // Basic ID request (int32) | 基础ID地址参数请求 (int32)
  77. // swagger:model IDInt32PathReq
  78. type IDInt32PathReq struct {
  79. // ID
  80. // Required: true
  81. Id int32 `path:"id"`
  82. }
  83. // Basic ID request (uint32) | 基础ID参数请求 (uint32)
  84. // swagger:model IDUint32Req
  85. type IDUint32Req struct {
  86. // ID
  87. // Required: true
  88. Id uint32 `json:"id" validate:"number"`
  89. }
  90. // Basic IDs request (uint32) | 基础ID数组参数请求 (uint32)
  91. // swagger:model IDsUint32Req
  92. type IDsUint32Req struct {
  93. // IDs
  94. // Required: true
  95. Ids []uint32 `json:"ids"`
  96. }
  97. // Basic ID request (uint32) | 基础ID地址参数请求 (uint32)
  98. // swagger:model IDUint32PathReq
  99. type IDUint32PathReq struct {
  100. // ID
  101. // Required: true
  102. Id uint32 `path:"id"`
  103. }
  104. // Basic ID request (int64) | 基础ID参数请求 (int64)
  105. // swagger:model IDInt64Req
  106. type IDInt64Req struct {
  107. // ID
  108. // Required: true
  109. Id int64 `json:"id" validate:"number"`
  110. }
  111. // Basic IDs request (int64) | 基础ID数组参数请求 (int64)
  112. // swagger:model IDsInt64Req
  113. type IDsInt64Req struct {
  114. // IDs
  115. // Required: true
  116. Ids []int64 `json:"ids"`
  117. }
  118. // Basic ID request (int64) | 基础ID地址参数请求 (int64)
  119. // swagger:model IDInt64PathReq
  120. type IDInt64PathReq struct {
  121. // ID
  122. // Required: true
  123. Id int64 `path:"id"`
  124. }
  125. // Basic UUID request in path | 基础UUID地址参数请求
  126. // swagger:model UUIDPathReq
  127. type UUIDPathReq struct {
  128. // ID
  129. // Required: true
  130. Id string `path:"id"`
  131. }
  132. // Basic UUID request | 基础UUID参数请求
  133. // swagger:model UUIDReq
  134. type UUIDReq struct {
  135. // ID
  136. // required : true
  137. // max length : 36
  138. // min length : 36
  139. Id string `json:"id" validate:"required,len=36"`
  140. }
  141. // Basic UUID array request | 基础UUID数组参数请求
  142. // swagger:model UUIDsReq
  143. type UUIDsReq struct {
  144. // Ids
  145. // Required: true
  146. Ids []string `json:"ids"`
  147. }
  148. // The base ID response data | 基础ID信息
  149. // swagger:model BaseIDInfo
  150. type BaseIDInfo struct {
  151. // ID
  152. Id *uint64 `json:"id,optional"`
  153. // Create date | 创建日期
  154. CreatedAt *int64 `json:"createdAt,optional"`
  155. // Update date | 更新日期
  156. UpdatedAt *int64 `json:"updatedAt,optional"`
  157. }
  158. // The base ID response data (int64) | 基础ID信息 (int64)
  159. // swagger:model BaseIDInt64Info
  160. type BaseIDInt64Info struct {
  161. // ID
  162. Id *int64 `json:"id,optional"`
  163. // Create date | 创建日期
  164. CreatedAt *int64 `json:"createdAt,optional"`
  165. // Update date | 更新日期
  166. UpdatedAt *int64 `json:"updatedAt,optional"`
  167. }
  168. // The base ID response data (int32) | 基础ID信息 (int32)
  169. // swagger:model BaseIDInt32Info
  170. type BaseIDInt32Info struct {
  171. // ID
  172. Id *int32 `json:"id,optional"`
  173. // Create date | 创建日期
  174. CreatedAt *int64 `json:"createdAt,optional"`
  175. // Update date | 更新日期
  176. UpdatedAt *int64 `json:"updatedAt,optional"`
  177. }
  178. // The base ID response data (uint32) | 基础ID信息 (uint32)
  179. // swagger:model BaseIDUint32Info
  180. type BaseIDUint32Info struct {
  181. // ID
  182. Id *uint32 `json:"id,optional"`
  183. // Create date | 创建日期
  184. CreatedAt *int64 `json:"createdAt,optional"`
  185. // Update date | 更新日期
  186. UpdatedAt *int64 `json:"updatedAt,optional"`
  187. }
  188. // The base UUID response data | 基础UUID信息
  189. // swagger:model BaseUUIDInfo
  190. type BaseUUIDInfo struct {
  191. // ID
  192. Id *string `json:"id,optional"`
  193. // Create date | 创建日期
  194. CreatedAt *int64 `json:"createdAt,optional"`
  195. // Update date | 更新日期
  196. UpdatedAt *int64 `json:"updatedAt,optional"`
  197. }
  198. type Condition struct {
  199. Equal int `json:"equal"`
  200. LabelIdList []uint64 `json:"labelIdList"`
  201. }
  202. type Action struct {
  203. Type int `json:"type"`
  204. Content string `json:"content"`
  205. Meta Meta `json:"meta,optional"`
  206. }
  207. type Meta struct {
  208. Filename string `json:"filename,optional"`
  209. }
  210. type ActionForward struct {
  211. Wxid string `json:"wxid"`
  212. Action []Action `json:"action"`
  213. }
  214. // The response data of server information | Server信息
  215. // swagger:model ServerInfo
  216. type ServerInfo struct {
  217. BaseIDInfo
  218. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  219. Status *uint8 `json:"status,optional"`
  220. // 名称
  221. Name *string `json:"name,optional"`
  222. // 公网ip
  223. PublicIp *string `json:"publicIp,optional"`
  224. // 内网ip
  225. PrivateIp *string `json:"privateIp,optional"`
  226. // 管理端口
  227. AdminPort *string `json:"adminPort,optional"`
  228. }
  229. // The response data of server list | Server列表数据
  230. // swagger:model ServerListResp
  231. type ServerListResp struct {
  232. BaseDataInfo
  233. // Server list data | Server列表数据
  234. Data ServerListInfo `json:"data"`
  235. }
  236. // Server list data | Server列表数据
  237. // swagger:model ServerListInfo
  238. type ServerListInfo struct {
  239. BaseListInfo
  240. // The API list data | Server列表数据
  241. Data []ServerInfo `json:"data"`
  242. }
  243. // Get server list request params | Server列表请求参数
  244. // swagger:model ServerListReq
  245. type ServerListReq struct {
  246. PageInfo
  247. // 名称
  248. Name *string `json:"name,optional"`
  249. // 公网ip
  250. PublicIp *string `json:"publicIp,optional"`
  251. // 内网ip
  252. PrivateIp *string `json:"privateIp,optional"`
  253. }
  254. // Server information response | Server信息返回体
  255. // swagger:model ServerInfoResp
  256. type ServerInfoResp struct {
  257. BaseDataInfo
  258. // Server information | Server数据
  259. Data ServerInfo `json:"data"`
  260. }
  261. // The response data of wx information | Wx信息
  262. // swagger:model WxInfo
  263. type WxInfo struct {
  264. BaseIDInfo
  265. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  266. Status *uint8 `json:"status,optional"`
  267. // 服务器id
  268. ServerId *uint64 `json:"serverId,optional"`
  269. // 服务器名称
  270. ServerName *string `json:"serverName,optional"`
  271. // 端口号
  272. Port *string `json:"port,optional"`
  273. // 进程号
  274. ProcessId *string `json:"processId,optional"`
  275. // 回调地址
  276. Callback *string `json:"callback,optional"`
  277. // 微信id
  278. Wxid *string `json:"wxid,optional"`
  279. // 微信账号
  280. Account *string `json:"account,optional"`
  281. // 微信昵称
  282. Nickname *string `json:"nickname,optional"`
  283. // 手机号
  284. Tel *string `json:"tel,optional"`
  285. // 微信头像
  286. HeadBig *string `json:"headBig,optional"`
  287. // 组织ID
  288. OrganizationId *uint64 `json:"organizationId,optional"`
  289. // 组织名称
  290. OrganizationName *string `json:"organizationName,optional"`
  291. // 模式ID
  292. AgentId *uint64 `json:"agentId,optional"`
  293. // 模式信息
  294. AgentInfo *AgentInfo `json:"agentInfo,optional"`
  295. // 大模型服务地址
  296. ApiBase *string `json:"apiBase,optional"`
  297. // 大模型服务密钥
  298. ApiKey *string `json:"apiKey,optional"`
  299. // 白名单
  300. AllowList []ContactInfo `json:"allowList,optional"`
  301. // 群白名单
  302. GroupAllowList []ContactInfo `json:"groupAllowList,optional"`
  303. // 黑名单
  304. BlockList []ContactInfo `json:"blockList,optional"`
  305. // 群黑名单
  306. GroupBlockList []ContactInfo `json:"groupBlockList,optional"`
  307. // 使用token总数
  308. TotalTokens *uint64 `json:"totalTokens,optional"`
  309. }
  310. // swagger:model UpdateBlockAndAllowListReq
  311. type UpdateBlockAndAllowListReq struct {
  312. BaseIDInfo
  313. // 白名单
  314. AllowList []string `json:"allowList,optional"`
  315. // 群白名单
  316. GroupAllowList []string `json:"groupAllowList,optional"`
  317. // 黑名单
  318. BlockList []string `json:"blockList,optional"`
  319. // 群黑名单
  320. GroupBlockList []string `json:"groupBlockList,optional"`
  321. }
  322. // The response data of wx list | Wx列表数据
  323. // swagger:model WxListResp
  324. type WxListResp struct {
  325. BaseDataInfo
  326. // Wx list data | Wx列表数据
  327. Data WxListInfo `json:"data"`
  328. }
  329. // Wx list data | Wx列表数据
  330. // swagger:model WxListInfo
  331. type WxListInfo struct {
  332. BaseListInfo
  333. // The API list data | Wx列表数据
  334. Data []WxInfo `json:"data"`
  335. }
  336. // Get wx list request params | Wx列表请求参数
  337. // swagger:model WxListReq
  338. type WxListReq struct {
  339. PageInfo
  340. // 服务器id
  341. ServerId *uint64 `json:"serverId,optional"`
  342. // 租户id
  343. OrganizationId *uint64 `json:"organizationId,optional"`
  344. // 租户名称
  345. OrganizationName *string `json:"organizationName,optional"`
  346. // 端口号
  347. Port *string `json:"port,optional"`
  348. // 进程号
  349. ProcessId *string `json:"processId,optional"`
  350. // 回调地址
  351. Callback *string `json:"callback,optional"`
  352. }
  353. // Wx information response | Wx信息返回体
  354. // swagger:model WxInfoResp
  355. type WxInfoResp struct {
  356. BaseDataInfo
  357. // Wx information | Wx数据
  358. Data WxInfo `json:"data"`
  359. }
  360. // 获取黑白名单列表返回体
  361. // swagger:model AllowBlockListResp
  362. type AllowBlockListResp struct {
  363. BaseDataInfo
  364. // Wx information | Wx数据
  365. Data AllowBlockListRespData `json:"data"`
  366. }
  367. // AllowBlockListRespData
  368. type AllowBlockListRespData struct {
  369. // 白名单
  370. AllowList []*AllowBlockData `json:"allowList,optional"`
  371. // 群白名单
  372. GroupAllowList []*AllowBlockData `json:"groupAllowList,optional"`
  373. // 黑名单
  374. BlockList []*AllowBlockData `json:"blockList,optional"`
  375. // 群黑名单
  376. GroupBlockList []*AllowBlockData `json:"groupBlockList,optional"`
  377. }
  378. // AllowBlockData
  379. type AllowBlockData struct {
  380. // 微信id 公众号微信ID
  381. Wxid string `json:"wxid,optional"`
  382. // 微信昵称 群备注名称
  383. Nickname string `json:"nickname,optional"`
  384. }
  385. // The data of agent information | Agent信息
  386. // swagger:model AgentInfo
  387. type AgentInfo struct {
  388. BaseIDInfo
  389. // name | 角色名称
  390. Name *string `json:"name,optional"`
  391. // role | 角色设定
  392. Role *string `json:"role,optional"`
  393. // status | 状态 1-正常 2-禁用
  394. Status *int `json:"status,optional"`
  395. // background | 背景介绍
  396. Background *string `json:"background,optional"`
  397. // examples | 对话案例
  398. Examples *string `json:"examples,optional"`
  399. DatasetId *string `json:"dataset_id,optional"`
  400. CollectionId *string `json:"collection_id,optional"`
  401. }
  402. // The response data of agent list | Agent列表数据
  403. // swagger:model AgentListResp
  404. type AgentListResp struct {
  405. BaseDataInfo
  406. // Agent list data | Agent列表数据
  407. Data AgentListInfo `json:"data"`
  408. }
  409. // Agent list data | Agent列表数据
  410. // swagger:model AgentListInfo
  411. type AgentListInfo struct {
  412. BaseListInfo
  413. // The API list data | Agent列表数据
  414. Data []AgentInfo `json:"data"`
  415. }
  416. // Get agent list request params | Agent列表请求参数
  417. // swagger:model AgentListReq
  418. type AgentListReq struct {
  419. PageInfo
  420. // name | 角色名称
  421. Name *string `json:"name,optional"`
  422. // role | 角色设定
  423. Role *string `json:"role,optional"`
  424. // background | 背景介绍
  425. Background *string `json:"background,optional"`
  426. // status | 状态 1-可用 2-不可用
  427. Status *int `json:"status,optional"`
  428. }
  429. // Agent information response | Agent信息返回体
  430. // swagger:model AgentInfoResp
  431. type AgentInfoResp struct {
  432. BaseDataInfo
  433. // Agent information | Agent数据
  434. Data AgentInfo `json:"data"`
  435. }
  436. type VectorModel struct {
  437. Model *string `json:"model"`
  438. Name *string `json:"name"`
  439. CharsPointsPrice *uint64 `json:"charsPointsPrice"`
  440. DefaultToken *uint64 `json:"defaultToken"`
  441. MaxToken *uint64 `json:"maxToken"`
  442. Weight *uint64 `json:"weight"`
  443. }
  444. type AgentModel struct {
  445. Model *string `json:"model"`
  446. Name *string `json:"name"`
  447. MaxContext *uint64 `json:"maxContext"`
  448. MaxResponse *uint64 `json:"maxResponse"`
  449. CharsPointsPrice *uint64 `json:"charsPointsPrice"`
  450. }
  451. type DatasetId struct {
  452. ID *string `json:"id"`
  453. ParentID *string `json:"parentId"`
  454. TeamId *string `json:"teamId"`
  455. TmbId *string `json:"tmbId"`
  456. Type *string `json:"type"`
  457. Status *string `json:"status"`
  458. Avatar *string `json:"avatar"`
  459. Name *string `json:"name"`
  460. VectorModel *string `json:"vectorModel"`
  461. AgentModel *string `json:"agentModel"`
  462. Intro *string `json:"intro"`
  463. }
  464. // Dataset info | 知识库详情
  465. // swagger:model DatasetInfo
  466. type DatasetInfo struct {
  467. ID *string `json:"id"`
  468. ParentID *string `json:"parentId"`
  469. TeamId *string `json:"teamId"`
  470. TmbId *string `json:"tmbId"`
  471. Type *string `json:"type"`
  472. Name *string `json:"name"`
  473. Intro *string `json:"intro"`
  474. Status *string `json:"status"`
  475. Avatar *string `json:"avatar"`
  476. VectorModel VectorModel `json:"vectorModel"`
  477. AgentModel AgentModel `json:"agentModel"`
  478. Permission *string `json:"permission"`
  479. CanWrite *bool `json:"canWrite"`
  480. IsOwner *bool `json:"isOwner"`
  481. }
  482. type Index struct {
  483. DefaultIndex *bool `json:"defaultIndex"`
  484. Type *string `json:"type"`
  485. DataId *string `json:"dataId"`
  486. Text *string `json:"text"`
  487. ID *string `json:"id"`
  488. }
  489. // Collection Info | 集合详情
  490. // swagger:model CollectionInfo
  491. type CollectionInfo struct {
  492. ID *string `json:"id"`
  493. ParentID *string `json:"parentId"`
  494. TmbId *string `json:"tmbId,optional"`
  495. Type *string `json:"type"`
  496. Name *string `json:"name"`
  497. DataAmount *uint64 `json:"dataAmount,optional"`
  498. TrainingAmount *uint64 `json:"trainingAmount,optional"`
  499. TrainingType *string `json:"trainingType,optional"`
  500. ChunkSize *uint64 `json:"chunkSize,optional"`
  501. ChunkSplitter *string `json:"chunkSplitter,optional"`
  502. QaPrompt *string `json:"qaPrompt,optional"`
  503. RawTextLength *uint64 `json:"rawTextLength,optional"`
  504. CanWrite *bool `json:"canWrite,optional"`
  505. SourceName *string `json:"sourceName,optional"`
  506. DatasetId DatasetId `json:"datasetId,optional"`
  507. }
  508. // swagger:model CollectionDetailReq
  509. type CollectionDetailReq struct {
  510. ID *string `json:"id"`
  511. }
  512. // swagger:model CollectionInfoResp
  513. type CollectionInfoResp struct {
  514. BaseDataInfo
  515. Data CollectionInfo `json:"data"`
  516. }
  517. // swagger:model DataDetailReq
  518. type DataDetailReq struct {
  519. ID *string `json:"id"`
  520. }
  521. // swagger:model DataDetailResp
  522. type DataDetailResp struct {
  523. BaseDataInfo
  524. Data DataInfo `json:"data"`
  525. }
  526. // swagger:model CollectionSimpleInfo
  527. type CollectionSimpleInfo struct {
  528. ID *string `json:"id"`
  529. ParentID *string `json:"parentId"`
  530. TmbId *string `json:"tmbId,optional"`
  531. Type *string `json:"type"`
  532. Name *string `json:"name"`
  533. DataAmount *uint64 `json:"dataAmount,optional"`
  534. TrainingAmount *uint64 `json:"trainingAmount,optional"`
  535. }
  536. // swagger:model DataInfo
  537. type DataInfo struct {
  538. ID *string `json:"id"`
  539. Q *string `json:"q"`
  540. A *string `json:"a"`
  541. ChunkIndex *uint64 `json:"chunkIndex"`
  542. Indexes []Index `json:"indexes"`
  543. DatasetId *string `json:"datasetId"`
  544. CollectionId *string `json:"collectionId"`
  545. SourceName *string `json:"sourceName"`
  546. CanWrite *bool `json:"canWrite"`
  547. IsOwner *bool `json:"isOwner"`
  548. }
  549. // swagger:model DataSimpleInfo
  550. type DataSimpleInfo struct {
  551. ID *string `json:"id"`
  552. Q *string `json:"q"`
  553. A *string `json:"a"`
  554. ChunkIndex *uint64 `json:"chunkIndex"`
  555. DatasetId *string `json:"datasetId"`
  556. CollectionId *string `json:"collectionId"`
  557. }
  558. // Get collection list request params | Collection列表请求参数
  559. // swagger:model CollectionListReq
  560. type CollectionListReq struct {
  561. // required : true
  562. // min : 0
  563. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  564. // required : true
  565. // max : 100000
  566. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  567. // required : true
  568. DatasetId *string `json:"datasetId" validate:"required"`
  569. }
  570. // Collection list response | Collection List信息返回体
  571. // swagger:model CollectionListResp
  572. type CollectionListResp struct {
  573. BaseDataInfo
  574. // Agent information | Agent数据
  575. Data []CollectionSimpleInfo `json:"data"`
  576. // required : true
  577. // min : 0
  578. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  579. // required : true
  580. // max : 100000
  581. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  582. Total *int `json:"total"`
  583. }
  584. // Get collection list request params | Collection列表请求参数
  585. // swagger:model DataListReq
  586. type DataListReq struct {
  587. // required : true
  588. // min : 0
  589. Page *int `json:"page" validate:"required,number,gt=0"`
  590. // required : true
  591. // max : 100000
  592. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  593. // required : true
  594. CollectionId *string `json:"collectionId" validate:"required"`
  595. }
  596. // Data list response | Data List信息返回体
  597. // swagger:model DataListResp
  598. type DataListResp struct {
  599. BaseDataInfo
  600. // Agent information | Agent数据
  601. Data BatchSimpleInfo `json:"data"`
  602. }
  603. // swagger:model BatchSimpleInfo
  604. type BatchSimpleInfo struct {
  605. BaseListInfo
  606. // The API list data | BatchMsg列表数据
  607. Data []DataSimpleInfo `json:"data"`
  608. }
  609. // Data create request | 信息请求体
  610. // swagger:model CreateDataInfoReq
  611. type CreateDataInfoReq struct {
  612. // required : true
  613. CollectionId *string `json:"collectionId" validate:"required"`
  614. // Q
  615. // required : true
  616. Q *string `json:"q" validate:"required"`
  617. // A
  618. // required : true
  619. A *string `json:"a" validate:"required"`
  620. }
  621. // IndexSingle {
  622. // Text A *string `json:"text"`
  623. // }
  624. //
  625. // Data create request | 信息返回体
  626. // swagger:model UpdateDataInfoReq
  627. type UpdateDataInfoReq struct {
  628. // ID
  629. // required : true
  630. DataId *string `json:"id" validate:"required"`
  631. // Q
  632. // required : true
  633. Q *string `json:"q" validate:"required"`
  634. // A
  635. // required : true
  636. A *string `json:"a" validate:"required"`
  637. }
  638. // swagger:model DeleteDataReq
  639. type DeleteDataReq struct {
  640. // required : true
  641. ID *string `json:"id" validate:"required"`
  642. }
  643. // swagger:model UploadDataReq
  644. type UploadDataReq struct {
  645. AgentId *string `form:"agentId"`
  646. }
  647. type BatchDeleteIds struct {
  648. Ids []string `json:"ids"`
  649. }
  650. // ContactLabelList | Contact标签列表
  651. type ContactLabelList struct {
  652. // label
  653. Label *string `json:"label,optional"`
  654. // value
  655. Value *uint64 `json:"value,optional"`
  656. }
  657. // The response data of contact information | Contact信息
  658. // swagger:model ContactInfo
  659. type ContactInfo struct {
  660. BaseIDInfo
  661. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  662. Status *uint8 `json:"status,optional"`
  663. // 属主微信id
  664. WxWxid *string `json:"wxWxid,optional"`
  665. // 属主微信昵称
  666. WxWxidNickname *string `json:"wxWxidNickname,optional"`
  667. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  668. Type *int `json:"type,optional"`
  669. // 微信id 公众号微信ID
  670. Wxid *string `json:"wxid,optional"`
  671. // 微信账号
  672. Account *string `json:"account,optional"`
  673. // 微信昵称 群备注名称
  674. Nickname *string `json:"nickname,optional"`
  675. // 备注名
  676. Markname *string `json:"markname,optional"`
  677. // 头像
  678. Headimg *string `json:"headimg,optional"`
  679. // 性别 0未知 1男 2女
  680. Sex *int `json:"sex,optional"`
  681. // 星标 65/67=星标 1/3=未星标
  682. Starrole *string `json:"starrole,optional"`
  683. // 不让他看我的朋友圈 0可以看 1不让看
  684. Dontseeit *int `json:"dontseeit,optional"`
  685. // 不看他的朋友圈 0可以看 1不看 1=开启了不看他 128/129=仅聊天
  686. Dontseeme *int `json:"dontseeme,optional"`
  687. // 所属标签id清单,多开会用逗号隔开
  688. Lag *string `json:"lag,optional"`
  689. // 群组id
  690. Gid *string `json:"gid,optional"`
  691. // 群组名称
  692. Gname *string `json:"gname,optional"`
  693. // v3数据
  694. V3 *string `json:"v3,optional"`
  695. // Label Relationships | 标签关系
  696. LabelRelationships []ContactLabelList `json:"labelRelationships,optional"`
  697. // 组织ID
  698. OrganizationId *uint64 `json:"organizationId,optional"`
  699. }
  700. // The response data of label information | Label信息
  701. // swagger:model LabelInfo
  702. type LabelInfo struct {
  703. BaseIDInfo
  704. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  705. Status *uint8 `json:"status,optional"`
  706. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  707. Type *int `json:"type,optional"`
  708. // 标签名称
  709. Name *string `json:"name,optional"`
  710. // 标签来源:1后台创建 2个微同步
  711. From *int `json:"from,optional"`
  712. // 标签模式:1动态 2静态
  713. Mode *int `json:"mode,optional"`
  714. // 标签的触达条件
  715. Conditions *string `json:"conditions,optional"`
  716. // 组织ID
  717. OrganizationId *uint64 `json:"organizationId,optional"`
  718. // Label Relationships | 标签关系
  719. LabelRelationships []LabelRelationshipInfo `json:"labelRelationships,optional"`
  720. }
  721. // The response data of label relationship information | LabelRelationship信息
  722. // swagger:model LabelRelationshipInfo
  723. type LabelRelationshipInfo struct {
  724. BaseIDInfo
  725. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  726. Status *uint8 `json:"status,optional"`
  727. // 标签 ID
  728. LabelId *uint64 `json:"labelId,optional"`
  729. // 联系人 ID
  730. ContactId *uint64 `json:"contactId,optional"`
  731. // Contact information | 联系人信息
  732. Contact ContactInfo `json:"contact,optional"`
  733. // Label information | 标签信息
  734. Label LabelInfo `json:"label,optional"`
  735. // 组织ID
  736. OrganizationId *uint64 `json:"organizationId,optional"`
  737. }
  738. // The response data of label relationship information | LabelRelationship信息
  739. // swagger:model LabelRelationshipsInfo
  740. type LabelRelationshipsInfo struct {
  741. BaseIDInfo
  742. // 更新类型:为空或“all”时表示全量更新,为 “add” 时表示仅追加
  743. UpdateType *string `json:"updateType,optional"`
  744. // 标签 ID
  745. LabelIds []uint64 `json:"labelIds,optional"`
  746. // 联系人 ID
  747. ContactId *uint64 `json:"contactId,optional"`
  748. }
  749. // swagger:model BatchLabelRelationshipsInfo
  750. type BatchLabelRelationshipsInfo struct {
  751. // 更新类型:为1 时表示增加标签,为 -1 时表示移除标签
  752. UpdateType int `json:"updateType,optional"`
  753. // 标签 ID
  754. LabelIds []uint64 `json:"labelIds,optional"`
  755. // 联系人 ID
  756. ContactIds []uint64 `json:"contactIds,optional"`
  757. }
  758. // The response data of label relationship list | LabelRelationship列表数据
  759. // swagger:model LabelRelationshipListResp
  760. type LabelRelationshipListResp struct {
  761. BaseDataInfo
  762. // LabelRelationship list data | LabelRelationship列表数据
  763. Data LabelRelationshipListInfo `json:"data"`
  764. }
  765. // LabelRelationship list data | LabelRelationship列表数据
  766. // swagger:model LabelRelationshipListInfo
  767. type LabelRelationshipListInfo struct {
  768. BaseListInfo
  769. // The API list data | LabelRelationship列表数据
  770. Data []LabelRelationshipInfo `json:"data"`
  771. }
  772. // Get label relationship list request params | LabelRelationship列表请求参数
  773. // swagger:model LabelRelationshipListReq
  774. type LabelRelationshipListReq struct {
  775. PageInfo
  776. }
  777. // LabelRelationship information response | LabelRelationship信息返回体
  778. // swagger:model LabelRelationshipInfoResp
  779. type LabelRelationshipInfoResp struct {
  780. BaseDataInfo
  781. // LabelRelationship information | LabelRelationship数据
  782. Data LabelRelationshipInfo `json:"data"`
  783. }
  784. type LoginQRStatus struct {
  785. // 登陆二维码
  786. QRCode string `json:"qRCode,optional"`
  787. // 登陆二维码状态
  788. Status string `json:"status,optional"`
  789. // 登陆二维码状态描述
  790. StatusDesc string `json:"statusDesc,optional"`
  791. }
  792. // 刷新登陆二维码请求参数
  793. // swagger:model RefreshLoginQRReq
  794. type RefreshLoginQRReq struct {
  795. // 服务器id
  796. ServerId *uint64 `json:"serverId,optional"`
  797. // 端口号
  798. Port *string `json:"port,optional"`
  799. // 回调地址
  800. Callback *string `json:"callback,optional"`
  801. }
  802. // 刷新登陆二维码返回参数
  803. // swagger:model RefreshLoginQRResp
  804. type RefreshLoginQRResp struct {
  805. BaseDataInfo
  806. // 二维码Base64
  807. Data LoginQRStatus `json:"data,optional"`
  808. }
  809. // 发送微信文本消息请求参数
  810. // swagger:model SendTextMsgReq
  811. type SendTextMsgReq struct {
  812. // 属主微信id
  813. WxWxid *string `json:"senderWxId"`
  814. // 微信id 公众号微信ID
  815. Wxid *string `json:"receiverWxId"`
  816. // 微信文本消息内容
  817. Msg *string `json:"msg"`
  818. }
  819. // 发送微信图片消息请求参数
  820. // swagger:model SendPicMsgReq
  821. type SendPicMsgReq struct {
  822. // 属主微信id
  823. WxWxid *string `json:"wxWxid"`
  824. // 微信id 公众号微信ID
  825. Wxid *string `json:"wxid"`
  826. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  827. Picpath *string `json:"picpath"`
  828. // 微信图片自定义名称(此属性只有网络图片有)
  829. Diyfilename *string `json:"diyfilename,optional"`
  830. }
  831. // 发送微信图片(本地)请求参数
  832. // swagger:model SendPicMsgLocalReq
  833. type SendPicMsgLocalReq struct {
  834. // 属主微信id
  835. WxWxid *string `json:"wxWxid"`
  836. // 微信id 公众号微信ID
  837. Wxid *string `json:"wxid"`
  838. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  839. Picpath *string `json:"picpath"`
  840. }
  841. // The response data of contact list | Contact列表数据
  842. // swagger:model ContactListResp
  843. type ContactListResp struct {
  844. BaseDataInfo
  845. // Contact list data | Contact列表数据
  846. Data ContactListInfo `json:"data"`
  847. }
  848. // Contact list data | Contact列表数据
  849. // swagger:model ContactListInfo
  850. type ContactListInfo struct {
  851. BaseListInfo
  852. // The API list data | Contact列表数据
  853. Data []ContactInfo `json:"data"`
  854. }
  855. // Get contact list request params | Contact列表请求参数
  856. // swagger:model ContactListReq
  857. type ContactListReq struct {
  858. PageInfo
  859. // Label ID list | 标签ID列表
  860. LabelIDs []uint64 `json:"labelIDs,optional"`
  861. // 属主微信id
  862. WxWxid *string `json:"wxWxid,optional"`
  863. // 微信id 公众号微信ID
  864. Wxid *string `json:"wxid,optional"`
  865. // 微信账号
  866. Account *string `json:"account,optional"`
  867. // 昵称
  868. Nickname *string `json:"nickname,optional"`
  869. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  870. Type *int `json:"type,optional"`
  871. }
  872. // Contact information response | Contact信息返回体
  873. // swagger:model ContactInfoResp
  874. type ContactInfoResp struct {
  875. BaseDataInfo
  876. // Contact information | Contact数据
  877. Data ContactInfo `json:"data"`
  878. }
  879. // swagger:model AddNewFriendReq
  880. type AddNewFriendReq struct {
  881. OwnerWxid string `json:"ownerWxid"`
  882. Wxid string `json:"wxid"`
  883. Gid string `json:"gid"`
  884. Desc string `json:"desc"`
  885. AddType string `json:"addType"`
  886. }
  887. // The response data of message information | Message信息
  888. // swagger:model MessageInfo
  889. type MessageInfo struct {
  890. BaseIDInfo
  891. // 属主微信id
  892. WxWxid *string `json:"wxWxid"`
  893. // 微信id 公众号微信ID
  894. Wxid *string `json:"wxid"`
  895. // 微信消息内容
  896. Msg *string `json:"msg"`
  897. }
  898. // The response data of message list | Message列表数据
  899. // swagger:model MessageListResp
  900. type MessageListResp struct {
  901. BaseDataInfo
  902. // Message list data | Message列表数据
  903. Data MessageListInfo `json:"data"`
  904. }
  905. // Message list data | Message列表数据
  906. // swagger:model MessageListInfo
  907. type MessageListInfo struct {
  908. BaseListInfo
  909. // The API list data | Message列表数据
  910. Data []MessageInfo `json:"data"`
  911. }
  912. // Get message list request params | Message列表请求参数
  913. // swagger:model MessageListReq
  914. type MessageListReq struct {
  915. PageInfo
  916. // 属主微信id
  917. WxWxid *string `json:"wxWxid,optional"`
  918. // 微信id 公众号微信ID
  919. Wxid *string `json:"wxid,optional"`
  920. }
  921. // Message information response | Message信息返回体
  922. // swagger:model MessageInfoResp
  923. type MessageInfoResp struct {
  924. BaseDataInfo
  925. // Message information | Message数据
  926. Data MessageInfo `json:"data"`
  927. }
  928. // The response data of label list | Label列表数据
  929. // swagger:model LabelSelectListResp
  930. type LabelSelectListResp struct {
  931. BaseDataInfo
  932. // Label list data | Label列表数据
  933. Data []LabelSelectListInfo `json:"data"`
  934. }
  935. // The response data of label list | Label群发列表数据
  936. // swagger:model LabelBatchSelectListResp
  937. type LabelBatchSelectListResp struct {
  938. BaseDataInfo
  939. // Label list data | Label列表数据
  940. Data LabelBatchSelectListData `json:"data"`
  941. }
  942. // The response data of label list | Label群发列表数据
  943. type LabelBatchSelectListData struct {
  944. Contact []LabelSelectListInfo `json:"contact"`
  945. Group []LabelSelectListInfo `json:"group"`
  946. }
  947. // The response data of label list | Label列表数据
  948. // swagger:model LabelListResp
  949. type LabelListResp struct {
  950. BaseDataInfo
  951. // Label list data | Label列表数据
  952. Data LabelListInfo `json:"data"`
  953. }
  954. // Label list data | Label列表数据
  955. // swagger:model LabelListInfo
  956. type LabelListInfo struct {
  957. BaseListInfo
  958. // The API list data | Label列表数据
  959. Data []LabelInfo `json:"data"`
  960. }
  961. // Get label list request params | Label列表请求参数
  962. // swagger:model LabelListReq
  963. type LabelListReq struct {
  964. PageInfo
  965. // Label ID list | Label ID列表
  966. LabelIDs []uint64 `json:"labelIDs,optional"`
  967. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  968. Type *int `json:"type,optional"`
  969. // 标签名称
  970. Name *string `json:"name,optional"`
  971. // 标签来源:1后台创建 2个微同步
  972. From *int `json:"from,optional"`
  973. // 标签模式:1动态 2静态
  974. Mode *int `json:"mode,optional"`
  975. }
  976. // Label information response | Label信息返回体
  977. // swagger:model LabelInfoResp
  978. type LabelInfoResp struct {
  979. BaseDataInfo
  980. // Label information | Label数据
  981. Data LabelInfo `json:"data"`
  982. }
  983. // swagger:model LabelSelectListInfo
  984. type LabelSelectListInfo struct {
  985. // label
  986. Label *string `json:"label,optional"`
  987. // value
  988. Value *uint64 `json:"value,optional"`
  989. }
  990. // The response data of sop task list | SopTask列表数据
  991. // swagger:model SopTaskListResp
  992. type SopTaskListResp struct {
  993. BaseDataInfo
  994. // SopTask list data | SopTask列表数据
  995. Data SopTaskListInfo `json:"data"`
  996. }
  997. // The response data of sop task record list | SopTask列表数据
  998. // swagger:model SopTaskRecordListResp
  999. type SopTaskRecordListResp struct {
  1000. BaseDataInfo
  1001. // SopTask list data | SopTask列表数据
  1002. Data []SopTaskRecordInfo `json:"data"`
  1003. }
  1004. // SopTask list data | SopTask列表数据
  1005. // swagger:model SopTaskRecordInfo
  1006. type SopTaskRecordInfo struct {
  1007. // NodeId 节点ID
  1008. SourceType *int `json:"sourceType,optional"`
  1009. // NodeId 节点ID
  1010. SourceId *uint64 `json:"sourceId,optional"`
  1011. // 节点名称
  1012. Name *string `json:"name,optional"`
  1013. // 消息总数
  1014. TotalCount *int64 `json:"totalCount,optional"`
  1015. // 成功数
  1016. SuccessCount *int64 `json:"successCount,optional"`
  1017. // 失败数
  1018. FailureCount *int64 `json:"failureCount,optional"`
  1019. // 成功率
  1020. SuccessRate *int64 `json:"successRate,optional"`
  1021. }
  1022. // SopTask list data | SopTask列表数据
  1023. // swagger:model SopTaskListInfo
  1024. type SopTaskListInfo struct {
  1025. BaseListInfo
  1026. // The API list data | SopTask列表数据
  1027. Data []SopTaskInfo `json:"data"`
  1028. }
  1029. // Get sop task list request params | SopTask列表请求参数
  1030. // swagger:model SopTaskListReq
  1031. type SopTaskListReq struct {
  1032. PageInfo
  1033. // SOP 任务名称
  1034. Name *string `json:"name,optional"`
  1035. // 创建者 id
  1036. CreatorId *string `json:"creatorId,optional"`
  1037. }
  1038. // SopTask information response | SopTask信息返回体
  1039. // swagger:model SopTaskInfoResp
  1040. type SopTaskInfoResp struct {
  1041. BaseDataInfo
  1042. // SopTask information | SopTask数据
  1043. Data SopTaskInfo `json:"data"`
  1044. }
  1045. // SopTask create response | SopTask创建回体
  1046. // swagger:model SopTaskCreateResp
  1047. type SopTaskCreateResp struct {
  1048. BaseDataInfo
  1049. // SopTask id | SopTask id
  1050. Data uint64 `json:"data"`
  1051. }
  1052. // swagger:model CopyReq
  1053. type CopyReq struct {
  1054. // SopTask id | SopTask id
  1055. Id uint64 `json:"id"`
  1056. // SOP 任务名称
  1057. Name *string `json:"name,optional"`
  1058. // Organization id | Organization id
  1059. OrganizationId uint64 `json:"organizationId,optional"`
  1060. }
  1061. // swagger:model MessageVarResp
  1062. type MessageVarResp struct {
  1063. BaseDataInfo
  1064. Data MessageVarRespData `json:"data"`
  1065. }
  1066. type MessageVarRespData struct {
  1067. // 消息变量
  1068. MessageVar []MessageVarInfo `json:"messageVar"`
  1069. // 转发变量
  1070. ForwardVar []MessageVarInfo `json:"forwardVar"`
  1071. }
  1072. // swagger:model MessageVarInfo
  1073. type MessageVarInfo struct {
  1074. // 显示名称
  1075. Label string `json:"label"`
  1076. // 变量
  1077. Value string `json:"value"`
  1078. }
  1079. // swagger:model SopTaskOutlineResp
  1080. type SopTaskOutlineResp struct {
  1081. BaseDataInfo
  1082. Data []SopTaskOutlineInfo `json:"data"`
  1083. }
  1084. // swagger:model SopTaskOutlineInfo
  1085. type SopTaskOutlineInfo struct {
  1086. // 标题
  1087. Title string `json:"title,optional"`
  1088. // key
  1089. Key string `json:"key,optional"`
  1090. // 子节点
  1091. Children []SopTaskOutlineInfo `json:"children,optional"`
  1092. }
  1093. // swagger:model TestNodeReq
  1094. type TestNodeReq struct {
  1095. Type int `json:"type"`
  1096. Id uint64 `json:"id"`
  1097. Content string `json:"content"`
  1098. }
  1099. // swagger:model TestNodeResp
  1100. type TestNodeResp struct {
  1101. BaseDataInfo
  1102. Data []string `json:"data"`
  1103. }
  1104. // swagger:model SopApiListReq
  1105. type SopApiListReq struct {
  1106. // required : true
  1107. // min : 0
  1108. Page uint64 `json:"page" validate:"required,number,gt=0"`
  1109. // required : true
  1110. // max : 2000
  1111. PageSize uint64 `json:"pageSize" validate:"required,number,lt=2000"`
  1112. }
  1113. // The response data of sop stage information | SopStage信息
  1114. // swagger:model SopStageInfo
  1115. type SopStageInfo struct {
  1116. BaseIDInfo
  1117. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1118. Status *uint8 `json:"status,optional"`
  1119. // SOP 任务 ID
  1120. TaskId *uint64 `json:"taskId,optional"`
  1121. // 阶段名称
  1122. Name *string `json:"name,optional"`
  1123. // 客群筛选条件类型 1 按标签筛选 2 按客户基本信息筛选
  1124. ConditionType *int `json:"conditionType,optional"`
  1125. // 筛选条件关系 1 满足所有条件(and) 2 满足任意条件(or)
  1126. ConditionOperator *int `json:"conditionOperator,optional"`
  1127. // 筛选条件列表
  1128. ConditionList []Condition `json:"conditionList,optional"`
  1129. // 命中后发送的消息内容
  1130. ActionMessage []Action `json:"actionMessage,optional"`
  1131. // 命中后需要打的标签
  1132. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1133. // 命中后需要移除的标签
  1134. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1135. // 命中后转发的消息内容
  1136. ActionForward *ActionForward `json:"actionForward,optional"`
  1137. // 阶段顺序
  1138. IndexSort *int `json:"indexSort,optional"`
  1139. // sop 任务信息
  1140. TaskInfo *SopTaskInfo `json:"taskInfo,optional"`
  1141. // node 信息
  1142. NodeList []SopNodeInfo `json:"nodeList,optional"`
  1143. }
  1144. // The response data of sop task information | SopTask信息
  1145. // swagger:model SopTaskInfo
  1146. type SopTaskInfo struct {
  1147. BaseIDInfo
  1148. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1149. Status *uint8 `json:"status,optional"`
  1150. // SOP 任务名称
  1151. Name *string `json:"name,optional"`
  1152. // 机器人微信 id 列表
  1153. BotWxidList []string `json:"botWxidList,optional"`
  1154. // 标签类型:1好友,2群组,3企业微信联系人
  1155. Type *int `json:"type,optional"`
  1156. // 任务计划开始时间
  1157. PlanStartTime *int64 `json:"planStartTime,optional"`
  1158. // 任务计划结束时间
  1159. PlanEndTime *int64 `json:"planEndTime,optional"`
  1160. // 创建者 id
  1161. CreatorId *string `json:"creatorId,optional"`
  1162. // 阶段信息
  1163. StageList []SopStageInfo `json:"stageList,optional"`
  1164. // 组织ID
  1165. OrganizationId *uint64 `json:"organizationId,optional"`
  1166. // Token
  1167. Token []string `json:"token,optional"`
  1168. }
  1169. // The response data of sop node information | SopNode信息
  1170. // swagger:model SopNodeInfo
  1171. type SopNodeInfo struct {
  1172. BaseIDInfo
  1173. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1174. Status *uint8 `json:"status,optional"`
  1175. // 阶段 ID
  1176. StageId *uint64 `json:"stageId,optional"`
  1177. // 父节点 ID
  1178. ParentId *uint64 `json:"parentId,optional"`
  1179. // 节点名称
  1180. Name *string `json:"name,optional"`
  1181. // 触发条件类型 1 客户回复后触发 2 超时后触发
  1182. ConditionType *int `json:"conditionType,optional"`
  1183. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  1184. ConditionList []string `json:"conditionList,optional"`
  1185. // 超时触发时间(分钟)
  1186. NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
  1187. // 超时触发时间单位
  1188. NoReplyUnit *string `json:"noReplyUnit,optional"`
  1189. // 命中后发送的消息内容
  1190. ActionMessage []Action `json:"actionMessage,optional"`
  1191. // 命中后需要打的标签
  1192. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1193. // 命中后需要移除的标签
  1194. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1195. // 命中后转发的消息内容
  1196. ActionForward *ActionForward `json:"actionForward,optional"`
  1197. // 阶段信息
  1198. StageInfo *SopStageInfo `json:"stageInfo,optional"`
  1199. }
  1200. // The response data of sop node information | SopNode信息
  1201. type SopNodeInfoWithLable struct {
  1202. BaseIDInfo
  1203. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1204. Status *uint8 `json:"status,optional"`
  1205. // 阶段 ID
  1206. StageId *uint64 `json:"stageId,optional"`
  1207. // 父节点 ID
  1208. ParentId *uint64 `json:"parentId,optional"`
  1209. // 节点名称
  1210. Name *string `json:"name,optional"`
  1211. // 触发条件类型 1 客户回复后触发 2 超时后触发
  1212. ConditionType *int `json:"conditionType,optional"`
  1213. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  1214. ConditionList []string `json:"conditionList,optional"`
  1215. // 超时触发时间(分钟)
  1216. NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
  1217. // 超时触发时间单位
  1218. NoReplyUnit *string `json:"noReplyUnit,optional"`
  1219. // 命中后发送的消息内容
  1220. ActionMessage []Action `json:"actionMessage,optional"`
  1221. // 命中后需要打的标签
  1222. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1223. // 命中后需要移除的标签
  1224. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1225. // 命中后转发的消息内容
  1226. ActionForward *ActionForward `json:"actionForward,optional"`
  1227. ActionLabelAddList []string `json:"actionLabelAddList"`
  1228. ActionLabelDelList []string `json:"actionLabelDelList"`
  1229. }
  1230. // The response data of sop stage list | SopStage列表数据
  1231. // swagger:model SopStageListResp
  1232. type SopStageListResp struct {
  1233. BaseDataInfo
  1234. // SopStage list data | SopStage列表数据
  1235. Data SopStageListInfo `json:"data"`
  1236. }
  1237. // SopStage list data | SopStage列表数据
  1238. // swagger:model SopStageListInfo
  1239. type SopStageListInfo struct {
  1240. BaseListInfo
  1241. // The API list data | SopStage列表数据
  1242. Data []SopStageInfo `json:"data"`
  1243. }
  1244. // Get sop stage list request params | SopStage列表请求参数
  1245. // swagger:model SopStageListReq
  1246. type SopStageListReq struct {
  1247. TaskId *uint64 `json:"taskId"`
  1248. }
  1249. // Batch get sop stage list request params | SopStage列表请求参数
  1250. // swagger:model BatchSopStageListReq
  1251. type BatchSopStageListReq struct {
  1252. TaskIds []uint64 `json:"taskIds"`
  1253. }
  1254. // SopStage information response | SopStage信息返回体
  1255. // swagger:model SopStageInfoResp
  1256. type SopStageInfoResp struct {
  1257. BaseDataInfo
  1258. // SopStage information | SopStage数据
  1259. Data SopStageInfo `json:"data"`
  1260. }
  1261. // SopStage create response | SopStage创建回体
  1262. // swagger:model SopStageCreateResp
  1263. type SopStageCreateResp struct {
  1264. BaseDataInfo
  1265. // SopStage id | SopStage id
  1266. Data uint64 `json:"data"`
  1267. }
  1268. // Move sop stage request params | 移动阶段请求参数
  1269. // swagger:model SopStageMoveReq
  1270. type SopStageMoveReq struct {
  1271. BaseIDInfo
  1272. // 阶段名称
  1273. Offset *int `json:"offset,optional"`
  1274. }
  1275. // The response data of sop node list | SopNode列表数据
  1276. // swagger:model SopNodeListResp
  1277. type SopNodeListResp struct {
  1278. BaseDataInfo
  1279. // SopNode list data | SopNode列表数据
  1280. Data []*SopChildNodeInfo `json:"data"`
  1281. }
  1282. // The response data of sop node list | SopNode列表数据
  1283. type SopNodeListResp2 struct {
  1284. BaseDataInfo
  1285. // SopNode list data | SopNode列表数据
  1286. Data []*SopNodeInfoWithLable `json:"data"`
  1287. }
  1288. // SopNode list data | SopNode列表数据
  1289. // swagger:model SopChildNodeInfo
  1290. type SopChildNodeInfo struct {
  1291. NodeName *string `json:"nodeName,optional"`
  1292. ChildNode *SopChildNodeInfo `json:"childNode,optional"`
  1293. // The API list data | SopNode列表数据
  1294. ConditionNodes []*SopChildNodeInfo `json:"conditionNodes"`
  1295. SopNodeInfo
  1296. }
  1297. // SopNode list data | SopNode列表数据
  1298. // swagger:model SopNodeListInfo
  1299. type SopNodeListInfo struct {
  1300. BaseListInfo
  1301. // The API list data | SopNode列表数据
  1302. Data []SopNodeInfo `json:"data"`
  1303. }
  1304. // Get sop node list request params | SopNode列表请求参数
  1305. // swagger:model SopNodeListReq
  1306. type SopNodeListReq struct {
  1307. StageId *uint64 `json:"stageId"`
  1308. }
  1309. // Get sop node list request params | SopNode列表请求参数
  1310. // swagger:model BatchSopNodeListReq
  1311. type BatchSopNodeListReq struct {
  1312. StageIds []uint64 `json:"stageIds"`
  1313. }
  1314. // SopNode information response | SopNode信息返回体
  1315. // swagger:model SopNodeInfoResp
  1316. type SopNodeInfoResp struct {
  1317. BaseDataInfo
  1318. // SopNode information | SopNode数据
  1319. Data SopNodeInfo `json:"data"`
  1320. }
  1321. // SopNode create response | SopNode创建返回体
  1322. // swagger:model SopNodeCreateResp
  1323. type SopNodeCreateResp struct {
  1324. BaseDataInfo
  1325. // SopNode id | SopNode id
  1326. Data uint64 `json:"data"`
  1327. }
  1328. // The response data of message records information | MessageRecords信息
  1329. // swagger:model MessageRecordsInfo
  1330. type MessageRecordsInfo struct {
  1331. BaseIDInfo
  1332. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1333. Status *uint8 `json:"status,optional"`
  1334. // 机器人微信 id
  1335. BotWxid *string `json:"botWxid,optional"`
  1336. // 联系人 id
  1337. ContactId *uint64 `json:"contactId,optional"`
  1338. // 类型:1好友,2群组,3企业微信联系人
  1339. ContactType *int `json:"contactType,optional"`
  1340. // 接收方微信 id
  1341. ContactWxid *string `json:"contactWxid,optional"`
  1342. // 内容类型 1 文本 2 文件
  1343. ContentType *int `json:"contentType,optional"`
  1344. // 发送内容
  1345. Content *string `json:"content,optional"`
  1346. // 元数据
  1347. Meta *Meta `json:"meta,optional"`
  1348. // 异常原因
  1349. ErrorDetail *string `json:"errorDetail,optional"`
  1350. // 发送时间
  1351. SendTime *int64 `json:"sendTime,optional"`
  1352. // 源类型 1 点发 2 群发 3 SOP
  1353. SourceType *int `json:"sourceType,optional"`
  1354. // 源 ID
  1355. SourceId *uint64 `json:"sourceId,optional"`
  1356. // 次源 ID
  1357. SubSourceId *uint64 `json:"subSourceId,optional"`
  1358. // 组织ID
  1359. OrganizationId *uint64 `json:"organizationId,optional"`
  1360. }
  1361. // The response data of message records list | MessageRecords列表数据
  1362. // swagger:model MessageRecordsListResp
  1363. type MessageRecordsListResp struct {
  1364. BaseDataInfo
  1365. // MessageRecords list data | MessageRecords列表数据
  1366. Data MessageRecordsListInfo `json:"data"`
  1367. }
  1368. // MessageRecords list data | MessageRecords列表数据
  1369. // swagger:model MessageRecordsListInfo
  1370. type MessageRecordsListInfo struct {
  1371. BaseListInfo
  1372. // The API list data | MessageRecords列表数据
  1373. Data []MessageRecordsInfo `json:"data"`
  1374. }
  1375. // Get message records list request params | MessageRecords列表请求参数
  1376. // swagger:model MessageRecordsListReq
  1377. type MessageRecordsListReq struct {
  1378. PageInfo
  1379. // 群发消息ID
  1380. BatchMsgId *uint64 `json:"batchMsgId,optional"`
  1381. // 机器人微信 id
  1382. BotWxid *string `json:"botWxid,optional"`
  1383. // 消息类型:源类型 1 点发 2 群发 3 SOP 阶段 4 SOP 节点
  1384. SourceType *int `json:"sourceType,optional"`
  1385. // 消息源ID:
  1386. SourceId *uint64 `json:"sourceId,optional"`
  1387. // 接收方微信 id
  1388. ContactWxid *string `json:"contactWxid,optional"`
  1389. // 发送内容
  1390. Status *uint8 `json:"status,optional"`
  1391. }
  1392. // MessageRecords information response | MessageRecords信息返回体
  1393. // swagger:model MessageRecordsInfoResp
  1394. type MessageRecordsInfoResp struct {
  1395. BaseDataInfo
  1396. // MessageRecords information | MessageRecords数据
  1397. Data MessageRecordsInfo `json:"data"`
  1398. }
  1399. // The response data of chatroom member information | ChatroomMember信息
  1400. // swagger:model ChatroomMemberInfo
  1401. type ChatroomMemberInfo struct {
  1402. // 名称
  1403. Wxid *string `json:"wxid,optional"`
  1404. // 群组
  1405. ChatRoom *string `json:"chatRoom,optional"`
  1406. // 属主Wxid
  1407. OwnerWxid *string `json:"ownerWxid,optional"`
  1408. // 账号
  1409. Account *string `json:"account,optional"`
  1410. }
  1411. // The response data of chatroom member list | ChatroomMember列表数据
  1412. // swagger:model ChatroomMemberListResp
  1413. type ChatroomMemberListResp struct {
  1414. BaseDataInfo
  1415. // chatroom member list data | chatroom member 列表数据
  1416. Data ChatroomMemberListInfo `json:"data"`
  1417. }
  1418. // chatroom member list data | chatroom member列表数据
  1419. // swagger:model ChatroomMemberListInfo
  1420. type ChatroomMemberListInfo struct {
  1421. BaseListInfo
  1422. // The API list data | chatroom member列表数据
  1423. Data []ChatroomMemberInfo `json:"data"`
  1424. }
  1425. // Get chatroom member list request params | ChatroomMember列表请求参数
  1426. // swagger:model ChatroomMemberListReq
  1427. type ChatroomMemberListReq struct {
  1428. PageInfo
  1429. // 属主Wxid
  1430. OwnerWxid *string `json:"ownerWxid,optional"`
  1431. // 群组
  1432. ChatRoom *string `json:"chatRoom,optional"`
  1433. }
  1434. // chatroom member information response | ChatroomMember信息返回体
  1435. // swagger:model ChatroomMemberInfoResp
  1436. type ChatroomMemberInfoResp struct {
  1437. BaseDataInfo
  1438. // Server information | Server数据
  1439. Data ChatroomMemberInfo `json:"data"`
  1440. }
  1441. // The response data of user information | 用户信息
  1442. // swagger:model UserInfo
  1443. type UserInfo struct {
  1444. BaseUUIDInfo
  1445. // Status | 状态
  1446. // max : 20
  1447. Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"`
  1448. // Username | 用户名
  1449. // max length : 50
  1450. Username *string `json:"username,optional" validate:"omitempty,max=50"`
  1451. // Nickname | 昵称
  1452. // max length : 40
  1453. Nickname *string `json:"nickname,optional" validate:"omitempty,max=40"`
  1454. // Password | 密码
  1455. // min length : 6
  1456. Password *string `json:"password,optional" validate:"omitempty,min=6"`
  1457. // Description | 描述
  1458. // max length : 100
  1459. Description *string `json:"description,optional" validate:"omitempty,max=100"`
  1460. // HomePath | 首页
  1461. // max length : 70
  1462. HomePath *string `json:"homePath,optional" validate:"omitempty,max=70"`
  1463. // RoleId | 角色ID
  1464. RoleIds []uint64 `json:"roleIds,optional"`
  1465. // Mobile | 手机号
  1466. // max length : 18
  1467. Mobile *string `json:"mobile,optional" validate:"omitempty,max=18"`
  1468. // Email | 邮箱
  1469. // max length : 80
  1470. Email *string `json:"email,optional" validate:"omitempty,max=80"`
  1471. // Avatar | 头像地址
  1472. // max length : 300
  1473. Avatar *string `json:"avatar,optional" validate:"omitempty,max=300"`
  1474. // Department ID | 部门ID
  1475. DepartmentId *uint64 `json:"departmentId,optional,omitempty"`
  1476. // Position ID | 职位ID
  1477. PositionIds []uint64 `json:"positionId,optional,omitempty"`
  1478. }
  1479. // User information response | 用户信息返回体
  1480. // swagger:model UserInfoResp
  1481. type UserInfoResp struct {
  1482. BaseDataInfo
  1483. // User information | User数据
  1484. Data UserInfo `json:"data"`
  1485. }
  1486. // The response data of user's basic information | 用户基本信息返回数据
  1487. // swagger:model UserBaseIDInfoResp
  1488. type UserBaseIDInfoResp struct {
  1489. BaseDataInfo
  1490. // The data of user's basic information | 用户基本信息
  1491. Data UserBaseIDInfo `json:"data"`
  1492. }
  1493. // The data of user's basic information | 用户基本信息
  1494. // swagger:model UserBaseIDInfo
  1495. type UserBaseIDInfo struct {
  1496. // User's UUID | 用户的UUID
  1497. UUID *string `json:"userId"`
  1498. // User's name | 用户名
  1499. Username *string `json:"username"`
  1500. // User's nickname | 用户的昵称
  1501. Nickname *string `json:"nickname"`
  1502. // The user's avatar path | 用户的头像路径
  1503. Avatar *string `json:"avatar"`
  1504. // The home page that the user enters after logging in | 用户登陆后进入的首页
  1505. HomePath *string `json:"homePath"`
  1506. // The description of user | 用户的描述信息
  1507. Description *string `json:"desc"`
  1508. // User's Role Name | 用户的角色名称
  1509. RoleName []string `json:"roleName"`
  1510. // Department Name | 部门名称
  1511. DepartmentName string `json:"departmentName,optional"`
  1512. // Department Name | 部门备注
  1513. DepartmentRemark string `json:"departmentRemark,optional"`
  1514. }
  1515. // swagger:model UserLoginReq
  1516. type UserLoginReq struct {
  1517. JsCode *string `json:"js_code,optional"`
  1518. }
  1519. // swagger:model UserLoginResp
  1520. type UserLoginResp struct {
  1521. BaseDataInfo
  1522. Data UserToken `json:"data,optional"`
  1523. }
  1524. type UserToken struct {
  1525. Token *string `json:"token,optional"`
  1526. ID *uint64 `json:"id,optional"`
  1527. Avatar *string `json:"avatar,optional"`
  1528. Nickname *string `json:"nickname,optional"`
  1529. IsVip *bool `json:"isVip,optional"`
  1530. }
  1531. // swagger:model UserVipResp
  1532. type UserVipResp struct {
  1533. BaseDataInfo
  1534. Data UserVip `json:"data,optional"`
  1535. }
  1536. type UserVip struct {
  1537. IsVip *bool `json:"isVip,optional"`
  1538. WechatAccount *string `json:"wechatAccount"`
  1539. }
  1540. // swagger:model WxidReq
  1541. type WxidReq struct {
  1542. Wxid string `json:"wxid"`
  1543. }
  1544. // The data of batch msg information | BatchMsg信息
  1545. // swagger:model BatchMsgInfo
  1546. type BatchMsgInfo struct {
  1547. BaseIDInfo
  1548. // 状态 0 未开始 1 开始发送 2 发送完成 3 发送中止
  1549. Status *uint8 `json:"status,optional"`
  1550. // 批次号
  1551. BatchNo *string `json:"batchNo,optional"`
  1552. // 任务名称
  1553. TaskName *string `json:"taskName,optional"`
  1554. // 发送方微信ID
  1555. Fromwxid *string `json:"fromwxid,optional"`
  1556. // 内容
  1557. Msg *string `json:"msg,optional"`
  1558. // 发送规则 all 全部 tag1,tag2 按tag发送
  1559. Tag *string `json:"tag,optional"`
  1560. // 总数
  1561. Total *int32 `json:"total,optional"`
  1562. // 成功数量
  1563. Success *int32 `json:"success,optional"`
  1564. // 失败数量
  1565. Fail *int32 `json:"fail,optional"`
  1566. // 开始时间
  1567. StartTime *int64 `json:"startTime,optional"`
  1568. StartTimeStr *string `json:"startTimeStr,optional"`
  1569. // 结束时间
  1570. StopTime *int64 `json:"stopTime,optional"`
  1571. // 发送时间
  1572. SendTime *int64 `json:"sendTime,optional"`
  1573. // 标签列表
  1574. Labels []uint64 `json:"labels,optional"`
  1575. GroupLabels []uint64 `json:"groupLabels,optional"`
  1576. // 标签列表
  1577. Type *int32 `json:"type,optional"`
  1578. }
  1579. // The response data of batch msg list | BatchMsg列表数据
  1580. // swagger:model BatchMsgListResp
  1581. type BatchMsgListResp struct {
  1582. BaseDataInfo
  1583. // BatchMsg list data | BatchMsg列表数据
  1584. Data BatchMsgListInfo `json:"data"`
  1585. }
  1586. // BatchMsg list data | BatchMsg列表数据
  1587. // swagger:model BatchMsgListInfo
  1588. type BatchMsgListInfo struct {
  1589. BaseListInfo
  1590. // The API list data | BatchMsg列表数据
  1591. Data []BatchMsgInfo `json:"data"`
  1592. }
  1593. // Get batch msg list request params | BatchMsg列表请求参数
  1594. // swagger:model BatchMsgListReq
  1595. type BatchMsgListReq struct {
  1596. PageInfo
  1597. // 批次号
  1598. BatchNo *string `json:"batchNo,optional"`
  1599. // 发送方微信ID
  1600. Fromwxid *string `json:"fromwxid,optional"`
  1601. // 内容
  1602. Msg *string `json:"msg,optional"`
  1603. // 任务名称
  1604. TaskName *string `json:"taskName,optional"`
  1605. // 群发类型
  1606. Type *int32 `json:"type"`
  1607. }
  1608. // BatchMsg information response | BatchMsg信息返回体
  1609. // swagger:model BatchMsgInfoResp
  1610. type BatchMsgInfoResp struct {
  1611. BaseDataInfo
  1612. // BatchMsg information | BatchMsg数据
  1613. Data BatchMsgInfo `json:"data"`
  1614. }
  1615. // The data of msg information | Msg信息
  1616. // swagger:model MsgInfo
  1617. type MsgInfo struct {
  1618. BaseIDInfo
  1619. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1620. Status *uint8 `json:"status,optional"`
  1621. // 发送方微信ID
  1622. Fromwxid *string `json:"fromwxid,optional"`
  1623. // 接收人微信ID/群ID
  1624. Toid *string `json:"toid,optional"`
  1625. // 消息类型
  1626. Msgtype *int32 `json:"msgtype,optional"`
  1627. // 消息
  1628. Msg *string `json:"msg,optional"`
  1629. // 批次号
  1630. BatchNo *string `json:"batchNo,optional"`
  1631. }
  1632. // The response data of msg list | Msg列表数据
  1633. // swagger:model MsgListResp
  1634. type MsgListResp struct {
  1635. BaseDataInfo
  1636. // Msg list data | Msg列表数据
  1637. Data MsgListInfo `json:"data"`
  1638. }
  1639. // Msg list data | Msg列表数据
  1640. // swagger:model MsgListInfo
  1641. type MsgListInfo struct {
  1642. BaseListInfo
  1643. // The API list data | Msg列表数据
  1644. Data []MsgInfo `json:"data"`
  1645. }
  1646. // Get msg list request params | Msg列表请求参数
  1647. // swagger:model MsgListReq
  1648. type MsgListReq struct {
  1649. PageInfo
  1650. // 状态
  1651. Status *uint8 `json:"status,optional"`
  1652. // 接收人微信ID/群ID
  1653. Toid *string `json:"toid,optional"`
  1654. // 群发消息ID
  1655. BatchId *uint64 `json:"batchId"`
  1656. }
  1657. // Msg information response | Msg信息返回体
  1658. // swagger:model MsgInfoResp
  1659. type MsgInfoResp struct {
  1660. BaseDataInfo
  1661. // Msg information | Msg数据
  1662. Data MsgInfo `json:"data"`
  1663. }
  1664. // The data of employee information | Employee信息
  1665. // swagger:model EmployeeInfo
  1666. type EmployeeInfo struct {
  1667. BaseIDInfo
  1668. // title | 标题
  1669. Title *string `json:"title,optional"`
  1670. // avatar | 头像
  1671. Avatar *string `json:"avatar,optional"`
  1672. // tags | 个人标签
  1673. Tags *string `json:"tags,optional"`
  1674. // hire_count | 被雇佣次数
  1675. HireCount *int `json:"hireCount,optional"`
  1676. // service_count | 已服务次数
  1677. ServiceCount *int `json:"serviceCount,optional"`
  1678. // achievement_count | 业绩单数
  1679. AchievementCount *int `json:"achievementCount,optional"`
  1680. // category_id | 分类ID
  1681. CategoryId *uint64 `json:"categoryId,optional"`
  1682. // intro | 个人介绍
  1683. Intro *string `json:"intro,optional"`
  1684. // estimate | 自我评价
  1685. Estimate *string `json:"estimate,optional"`
  1686. // skill | 技能卡
  1687. Skill *string `json:"skill,optional"`
  1688. // ability_type | 能力类型
  1689. AbilityType *string `json:"abilityType,optional"`
  1690. // scene | 使用场景
  1691. Scene *string `json:"scene,optional"`
  1692. SceneList []EmployeeConfigInfo `json:"sceneList,optional"`
  1693. // switch_in | 支持介入
  1694. SwitchIn *string `json:"switchIn,optional"`
  1695. SwitchInList []EmployeeConfigInfo `json:"switchInList,optional"`
  1696. Tutorial []TutorialInfo `json:"tutorial,optional"`
  1697. // video_url | 视频地址
  1698. VideoUrl *string `json:"videoUrl,optional"`
  1699. // work_experience | 工作经验
  1700. WorkExperience []WorkExperienceInfo `json:"workExperience,optional"`
  1701. ApiBase *string `json:"apiBase,optional"`
  1702. ApiKey *string `json:"apiKey,optional"`
  1703. // AI信息
  1704. AiInfo *string `json:"aiInfo,optional"`
  1705. ShowChat *bool `json:"showChat,optional"`
  1706. IsVip *bool `json:"isVip,optional"`
  1707. ChatUrl *string `json:"chatUrl,optional"`
  1708. }
  1709. // The response data of employee list | Employee列表数据
  1710. // swagger:model EmployeeListResp
  1711. type EmployeeListResp struct {
  1712. BaseDataInfo
  1713. // Employee list data | Employee列表数据
  1714. Data EmployeeListInfo `json:"data"`
  1715. }
  1716. // Employee list data | Employee列表数据
  1717. // swagger:model EmployeeListInfo
  1718. type EmployeeListInfo struct {
  1719. BaseListInfo
  1720. // The API list data | Employee列表数据
  1721. Data []EmployeeInfo `json:"data"`
  1722. }
  1723. // Get employee list request params | Employee列表请求参数
  1724. // swagger:model EmployeeListReq
  1725. type EmployeeListReq struct {
  1726. PageInfo
  1727. // title | 标题
  1728. Title *string `json:"title,optional"`
  1729. // tags | 个人标签
  1730. Tags *string `json:"tags,optional"`
  1731. // category_id | 分类ID
  1732. CategoryId *uint64 `json:"categoryId,optional"`
  1733. }
  1734. // Employee information response | Employee信息返回体
  1735. // swagger:model EmployeeInfoResp
  1736. type EmployeeInfoResp struct {
  1737. BaseDataInfo
  1738. // Employee information | Employee数据
  1739. Data EmployeeInfo `json:"data"`
  1740. }
  1741. // swagger:model AuthReq
  1742. type AuthReq struct {
  1743. Token *string `json:"token,optional"`
  1744. Data uint64 `json:"data,optional"`
  1745. }
  1746. // swagger:model AuthResp
  1747. type AuthResp struct {
  1748. Token *string `json:"token,optional"`
  1749. Data *uint64 `json:"data,optional"`
  1750. Original interface{} `json:"original,optional"`
  1751. OK interface{} `json:"ok,optional"`
  1752. SecretKey string `json:"secretKey,optional"`
  1753. }
  1754. // The data of work experience information | WorkExperience信息
  1755. // swagger:model WorkExperienceInfo
  1756. type WorkExperienceInfo struct {
  1757. BaseIDInfo
  1758. // employee_id | 员工ID
  1759. EmployeeId *uint64 `json:"employeeId,optional"`
  1760. // start_date | 开始时间
  1761. StartDate *int64 `json:"startDate,optional"`
  1762. StartDateStr *string `json:"startDateStr,optional"`
  1763. // end_date | 结束时间
  1764. EndDate *int64 `json:"endDate,optional"`
  1765. EndDateStr *string `json:"endDateStr,optional"`
  1766. // company | 公司名
  1767. Company *string `json:"company,optional"`
  1768. // experience | 工作内容
  1769. Experience *string `json:"experience,optional"`
  1770. }
  1771. // The response data of work experience list | WorkExperience列表数据
  1772. // swagger:model WorkExperienceListResp
  1773. type WorkExperienceListResp struct {
  1774. BaseDataInfo
  1775. // WorkExperience list data | WorkExperience列表数据
  1776. Data WorkExperienceListInfo `json:"data"`
  1777. }
  1778. // WorkExperience list data | WorkExperience列表数据
  1779. // swagger:model WorkExperienceListInfo
  1780. type WorkExperienceListInfo struct {
  1781. BaseListInfo
  1782. // The API list data | WorkExperience列表数据
  1783. Data []WorkExperienceInfo `json:"data"`
  1784. }
  1785. // Get work experience list request params | WorkExperience列表请求参数
  1786. // swagger:model WorkExperienceListReq
  1787. type WorkExperienceListReq struct {
  1788. PageInfo
  1789. // company | 公司名
  1790. Company *string `json:"company,optional"`
  1791. }
  1792. // WorkExperience information response | WorkExperience信息返回体
  1793. // swagger:model WorkExperienceInfoResp
  1794. type WorkExperienceInfoResp struct {
  1795. BaseDataInfo
  1796. // WorkExperience information | WorkExperience数据
  1797. Data WorkExperienceInfo `json:"data"`
  1798. }
  1799. // The data of tutorial information | Tutorial信息
  1800. // swagger:model TutorialInfo
  1801. type TutorialInfo struct {
  1802. BaseIDInfo
  1803. // employee_id | 员工ID
  1804. EmployeeId *uint64 `json:"employeeId,optional"`
  1805. // index | 序号
  1806. Index *int `json:"index,optional"`
  1807. // title | 标题
  1808. Title *string `json:"title,optional"`
  1809. // content | 内容
  1810. Content *string `json:"content,optional"`
  1811. }
  1812. // The response data of tutorial list | Tutorial列表数据
  1813. // swagger:model TutorialListResp
  1814. type TutorialListResp struct {
  1815. BaseDataInfo
  1816. // Tutorial list data | Tutorial列表数据
  1817. Data TutorialListInfo `json:"data"`
  1818. }
  1819. // Tutorial list data | Tutorial列表数据
  1820. // swagger:model TutorialListInfo
  1821. type TutorialListInfo struct {
  1822. BaseListInfo
  1823. // The API list data | Tutorial列表数据
  1824. Data []TutorialInfo `json:"data"`
  1825. }
  1826. // Get tutorial list request params | Tutorial列表请求参数
  1827. // swagger:model TutorialListReq
  1828. type TutorialListReq struct {
  1829. PageInfo
  1830. // title | 标题
  1831. Title *string `json:"title,optional"`
  1832. // content | 内容
  1833. Content *string `json:"content,optional"`
  1834. }
  1835. // Tutorial information response | Tutorial信息返回体
  1836. // swagger:model TutorialInfoResp
  1837. type TutorialInfoResp struct {
  1838. BaseDataInfo
  1839. // Tutorial information | Tutorial数据
  1840. Data TutorialInfo `json:"data"`
  1841. }
  1842. // The data of employee config information | EmployeeConfig信息
  1843. // swagger:model EmployeeConfigInfo
  1844. type EmployeeConfigInfo struct {
  1845. BaseIDInfo
  1846. // 类型:scene-场景 switch_in-接入方式
  1847. Stype *string `json:"stype,optional"`
  1848. // 标题
  1849. Title *string `json:"title,optional"`
  1850. // 图片地址
  1851. Photo *string `json:"photo,optional"`
  1852. }
  1853. // EmployeeConfig list data | EmployeeConfig列表数据
  1854. // swagger:model EmployeeConfigListInfo
  1855. type EmployeeConfigListInfo struct {
  1856. BaseListInfo
  1857. // The API list data | EmployeeConfig列表数据
  1858. Data []EmployeeConfigInfo `json:"data"`
  1859. }
  1860. // Employee config response | Employee配置信息返回体
  1861. // swagger:model EmployeeConfigListReq
  1862. type EmployeeConfigListReq struct {
  1863. /// 类型:scene-场景 switch_in-接入方式
  1864. Stype *string `json:"stype,optional"`
  1865. }
  1866. // EmployeeConfig information response | EmployeeConfig信息返回体
  1867. type EmployeeConfig struct {
  1868. Scene []EmployeeConfigInfo `json:"scene"`
  1869. SwitchIn []EmployeeConfigInfo `json:"switchIn"`
  1870. }
  1871. // Employee config response | Employee配置信息返回体
  1872. // swagger:model EmployeeConfigListResp
  1873. type EmployeeConfigListResp struct {
  1874. BaseDataInfo
  1875. // Employee information | Employee数据
  1876. Data EmployeeConfig `json:"data"`
  1877. }
  1878. // The data of token information | Token信息
  1879. // swagger:model TokenInfo
  1880. type TokenInfo struct {
  1881. BaseIDInfo
  1882. // 过期时间
  1883. ExpireAt *int64 `json:"expireAt,optional"`
  1884. ExpireAtStr *string `json:"expireAtStr,optional"`
  1885. // Token
  1886. Token *string `json:"token,optional"`
  1887. // Mac地址
  1888. Mac *string `json:"mac,optional"`
  1889. // 租户ID
  1890. OrganizationId *uint64 `json:"organization_id,optional"`
  1891. OrganizationName *string `json:"organizationName,optional"`
  1892. AgentId *uint64 `json:"agent_id,optional"`
  1893. AgentInfo *AgentInfo `json:"agent_info,optional"`
  1894. CustomAgentBase *string `json:"custom_agent_base,optional"`
  1895. CustomAgentKey *string `json:"custom_agent_key,optional"`
  1896. OpenaiBase *string `json:"openai_base,optional"`
  1897. OpenaiKey *string `json:"openai_key,optional"`
  1898. }
  1899. // The response data of token list | Token列表数据
  1900. // swagger:model TokenListResp
  1901. type TokenListResp struct {
  1902. BaseDataInfo
  1903. // Token list data | Token列表数据
  1904. Data TokenListInfo `json:"data"`
  1905. }
  1906. // Token list data | Token列表数据
  1907. // swagger:model TokenListInfo
  1908. type TokenListInfo struct {
  1909. BaseListInfo
  1910. // The API list data | Token列表数据
  1911. Data []TokenInfo `json:"data"`
  1912. }
  1913. // Get token list request params | Token列表请求参数
  1914. // swagger:model TokenListReq
  1915. type TokenListReq struct {
  1916. PageInfo
  1917. // Token
  1918. Token *string `json:"token,optional"`
  1919. // Mac地址
  1920. Mac *string `json:"mac,optional"`
  1921. OrganizationId *uint64 `json:"organization_id,optional"`
  1922. OrganizationName *string `json:"organizationName,optional"`
  1923. }
  1924. // Token information response | Token信息返回体
  1925. // swagger:model TokenInfoResp
  1926. type TokenInfoResp struct {
  1927. BaseDataInfo
  1928. // Token information | Token数据
  1929. Data TokenInfo `json:"data"`
  1930. }
  1931. // swagger:model CheckTokenReq
  1932. type CheckTokenReq struct {
  1933. // Token
  1934. Token *string `json:"token"`
  1935. // Mac地址
  1936. Mac *string `json:"mac"`
  1937. }
  1938. // swagger:model CheckTokenResp
  1939. type CheckTokenResp struct {
  1940. // 是否合法
  1941. Valid *bool `json:"valid"`
  1942. // Sign 签名内容
  1943. Sign *string `json:"sign"`
  1944. // Timestamp 时间戳
  1945. Timestamp *int64 `json:"timestamp"`
  1946. AgentInfo *AgentInfo `json:"agent_info"`
  1947. CustomAgentBase *string `json:"custom_agent_base"`
  1948. CustomAgentKey *string `json:"custom_agent_key"`
  1949. OpenaiBase *string `json:"openai_base"`
  1950. OpenaiKey *string `json:"openai_key"`
  1951. DatasetBase *string `json:"dataset_base"`
  1952. DatasetKey *string `json:"dataset_key"`
  1953. }
  1954. // The data of category information | Category信息
  1955. // swagger:model CategoryInfo
  1956. type CategoryInfo struct {
  1957. BaseIDInfo
  1958. // name | 角色名称
  1959. Name *string `json:"name,optional"`
  1960. // organization_id | 租户ID
  1961. OrganizationId *uint64 `json:"organizationId,optional"`
  1962. }
  1963. // The response data of category list | Category列表数据
  1964. // swagger:model CategoryListResp
  1965. type CategoryListResp struct {
  1966. BaseDataInfo
  1967. // Category list data | Category列表数据
  1968. Data CategoryListInfo `json:"data"`
  1969. }
  1970. // Category list data | Category列表数据
  1971. // swagger:model CategoryListInfo
  1972. type CategoryListInfo struct {
  1973. BaseListInfo
  1974. // The API list data | Category列表数据
  1975. Data []CategoryInfo `json:"data"`
  1976. }
  1977. // Get category list request params | Category列表请求参数
  1978. // swagger:model CategoryListReq
  1979. type CategoryListReq struct {
  1980. PageInfo
  1981. // name | 角色名称
  1982. Name *string `json:"name,optional"`
  1983. }
  1984. // Category information response | Category信息返回体
  1985. // swagger:model CategoryInfoResp
  1986. type CategoryInfoResp struct {
  1987. BaseDataInfo
  1988. // Category information | Category数据
  1989. Data CategoryInfo `json:"data"`
  1990. }
  1991. // The data of agent base information | AgentBase信息
  1992. // swagger:model AgentBaseInfo
  1993. type AgentBaseInfo struct {
  1994. Id *string `json:"id,optional"`
  1995. }
  1996. // The response data of agent base list | AgentBase列表数据
  1997. // swagger:model AgentBaseListResp
  1998. type AgentBaseListResp struct {
  1999. BaseDataInfo
  2000. // AgentBase list data | AgentBase列表数据
  2001. Data AgentBaseListInfo `json:"data"`
  2002. }
  2003. // AgentBase list data | AgentBase列表数据
  2004. // swagger:model AgentBaseListInfo
  2005. type AgentBaseListInfo struct {
  2006. BaseListInfo
  2007. // The API list data | AgentBase列表数据
  2008. Data []AgentBaseInfo `json:"data"`
  2009. }
  2010. // Get agent base list request params | AgentBase列表请求参数
  2011. // swagger:model AgentBaseListReq
  2012. type AgentBaseListReq struct {
  2013. PageInfo
  2014. // q
  2015. Q *string `json:"q,optional"`
  2016. // a
  2017. A *string `json:"a,optional"`
  2018. // dataset_id
  2019. DatasetId *string `json:"datasetId,optional"`
  2020. }
  2021. // AgentBase information response | AgentBase信息返回体
  2022. // swagger:model AgentBaseInfoResp
  2023. type AgentBaseInfoResp struct {
  2024. BaseDataInfo
  2025. // AgentBase information | AgentBase数据
  2026. Data AgentBaseInfo `json:"data"`
  2027. }
  2028. // The data of chat records information | ChatRecords信息
  2029. // swagger:model ChatRecordsInfo
  2030. type ChatRecordsInfo struct {
  2031. BaseIDInfo
  2032. // 内容
  2033. Content *string `json:"content,optional"`
  2034. // 内容类型:1-提问 2-回答
  2035. ContentType *uint8 `json:"contentType,optional"`
  2036. // 角色类型:1-用户 2-智能体
  2037. RoleType *string `json:"roleType,optional"`
  2038. // 会话ID
  2039. SessionId *uint64 `json:"sessionId,optional"`
  2040. // 用户ID
  2041. UserId *uint64 `json:"userId,optional"`
  2042. // 聊天ID
  2043. BotId *uint64 `json:"botId,optional"`
  2044. // 类型:1-微信 2-小程序card 3-智能体
  2045. BotType *uint8 `json:"botType,optional,options=1|2|3"`
  2046. Finish bool `json:"finish,optional"`
  2047. }
  2048. // The response data of chat records list | ChatRecords列表数据
  2049. // swagger:model ChatRecordsListResp
  2050. type ChatRecordsListResp struct {
  2051. BaseDataInfo
  2052. // ChatRecords list data | ChatRecords列表数据
  2053. Data ChatRecordsListInfo `json:"data"`
  2054. }
  2055. // ChatRecords list data | ChatRecords列表数据
  2056. // swagger:model ChatRecordsListInfo
  2057. type ChatRecordsListInfo struct {
  2058. BaseListInfo
  2059. // The API list data | ChatRecords列表数据
  2060. Data []ChatRecordsInfo `json:"data"`
  2061. }
  2062. // Get chat records list request params | ChatRecords列表请求参数
  2063. // swagger:model ChatRecordsListReq
  2064. type ChatRecordsListReq struct {
  2065. PageInfo
  2066. SessionId *uint64 `json:"sessionId"`
  2067. BotId *uint64 `json:"botId,optional"`
  2068. BotType *uint8 `json:"botType,optional"`
  2069. }
  2070. // ChatRecords information response | ChatRecords信息返回体
  2071. // swagger:model ChatRecordsInfoResp
  2072. type ChatRecordsInfoResp struct {
  2073. BaseDataInfo
  2074. // ChatRecords information | ChatRecords数据
  2075. Data ChatRecordsInfo `json:"data"`
  2076. }
  2077. // swagger:model ChatRecommendReq
  2078. type ChatRecommendReq struct {
  2079. SessionId *uint64 `json:"sessionId"`
  2080. }
  2081. // swagger:model ChatRecommendResp
  2082. type ChatRecommendResp struct {
  2083. BaseDataInfo
  2084. // The API list data | ChatRecords列表数据
  2085. Data ChatRecommend `json:"data"`
  2086. }
  2087. type ChatRecommend struct {
  2088. Data []string `json:"data"`
  2089. SessionId uint64 `json:"sessionId"`
  2090. }
  2091. // swagger:model ChatAskReq
  2092. type ChatAskReq struct {
  2093. CardId *uint64 `json:"cardId"`
  2094. Question *string `json:"question"`
  2095. SessionId *int `json:"sessionId"`
  2096. }
  2097. // swagger:model ChatAskResp
  2098. type ChatAskResp struct {
  2099. BaseDataInfo
  2100. Data *string `json:"data"`
  2101. }
  2102. // The data of chat session information | ChatSession信息
  2103. // swagger:model ChatSessionInfo
  2104. type ChatSessionInfo struct {
  2105. BaseIDInfo
  2106. // 名称
  2107. Name *string `json:"name,optional"`
  2108. // 用户ID
  2109. UserId *uint64 `json:"userId,optional"`
  2110. UserName *string `json:"userName,optional"`
  2111. // 聊天ID
  2112. BotId *uint64 `json:"botId,optional"`
  2113. // 主体名称
  2114. BotName *string `json:"botName,optional"`
  2115. // 类型:1-微信 2-小程序card 3-智能体
  2116. BotType *uint8 `json:"botType,optional"`
  2117. // 类型:1-微信 2-小程序card 3-智能体
  2118. BotTypeStr *string `json:"botTypeStr,optional"`
  2119. }
  2120. // The response data of chat session list | ChatSession列表数据
  2121. // swagger:model ChatSessionListResp
  2122. type ChatSessionListResp struct {
  2123. BaseDataInfo
  2124. // ChatSession list data | ChatSession列表数据
  2125. Data ChatSessionListInfo `json:"data"`
  2126. }
  2127. // ChatSession list data | ChatSession列表数据
  2128. // swagger:model ChatSessionListInfo
  2129. type ChatSessionListInfo struct {
  2130. BaseListInfo
  2131. // The API list data | ChatSession列表数据
  2132. Data []ChatSessionInfo `json:"data"`
  2133. }
  2134. // Get chat session list request params | ChatSession列表请求参数
  2135. // swagger:model ChatSessionListReq
  2136. type ChatSessionListReq struct {
  2137. PageInfo
  2138. BotId *uint64 `json:"botId,optional"`
  2139. BotType *uint8 `json:"botType,optional"`
  2140. BotName *string `json:"botName,optional"`
  2141. }
  2142. // ChatSession information response | ChatSession信息返回体
  2143. // swagger:model ChatSessionInfoResp
  2144. type ChatSessionInfoResp struct {
  2145. BaseDataInfo
  2146. // ChatSession information | ChatSession数据
  2147. Data ChatSessionInfo `json:"data"`
  2148. }
  2149. // The data of wx card information | WxCard信息
  2150. // swagger:model WxCardInfo
  2151. type WxCardInfo struct {
  2152. BaseIDInfo
  2153. // user表ID
  2154. UserId *uint64 `json:"userId,optional"`
  2155. // wx表ID
  2156. WxUserId *uint64 `json:"wxUserId,optional"`
  2157. // 头像
  2158. Avatar *string `json:"avatar,optional"`
  2159. // logo
  2160. Logo *string `json:"logo,optional"`
  2161. // 名称
  2162. Name *string `json:"name,optional"`
  2163. // 公司
  2164. Company *string `json:"company,optional"`
  2165. // 地址
  2166. Address *string `json:"address,optional"`
  2167. // 手机号
  2168. Phone *string `json:"phone,optional"`
  2169. // 公众号
  2170. OfficialAccount *string `json:"officialAccount,optional"`
  2171. // 微信号
  2172. WechatAccount *string `json:"wechatAccount,optional"`
  2173. // 邮箱
  2174. Email *string `json:"email,optional"`
  2175. // 聊天信息
  2176. ApiBase *string `json:"apiBase,optional"`
  2177. ApiKey *string `json:"apiKey,optional"`
  2178. // AI信息
  2179. AiInfo *string `json:"aiInfo,optional"`
  2180. // 个人介绍
  2181. Intro *string `json:"intro,optional"`
  2182. ShowChat *bool `json:"showChat,optional"`
  2183. ShowAi *bool `json:"showAi,optional"`
  2184. IsVip *bool `json:"isVip,optional"`
  2185. }
  2186. // swagger:model WxCardSimpleInfo
  2187. type WxCardSimpleInfo struct {
  2188. ID *uint64 `json:"id,optional"`
  2189. // 头像
  2190. Avatar *string `json:"avatar,optional"`
  2191. // 名称
  2192. Name *string `json:"name,optional"`
  2193. Type *string `json:"type,optional"`
  2194. }
  2195. // The response data of wx card list | WxCard列表数据
  2196. // swagger:model WxCardListResp
  2197. type WxCardListResp struct {
  2198. BaseDataInfo
  2199. // WxCard list data | WxCard列表数据
  2200. Data WxCardListInfo `json:"data"`
  2201. }
  2202. // WxCard list data | WxCard列表数据
  2203. // swagger:model WxCardListInfo
  2204. type WxCardListInfo struct {
  2205. BaseListInfo
  2206. // The API list data | WxCard列表数据
  2207. Data []WxCardInfo `json:"data"`
  2208. }
  2209. // Get wx card list request params | WxCard列表请求参数
  2210. // swagger:model WxCardListReq
  2211. type WxCardListReq struct {
  2212. PageInfo
  2213. // 头像
  2214. Avatar *string `json:"avatar,optional"`
  2215. // logo
  2216. Logo *string `json:"logo,optional"`
  2217. // 名称
  2218. Name *string `json:"name,optional"`
  2219. }
  2220. // WxCard information response | WxCard信息返回体
  2221. // swagger:model WxCardInfoResp
  2222. type WxCardInfoResp struct {
  2223. BaseDataInfo
  2224. // WxCard information | WxCard数据
  2225. Data WxCardInfo `json:"data"`
  2226. }
  2227. // swagger:model QrcodeReq
  2228. type QrcodeReq struct {
  2229. Path string `form:"path"`
  2230. Width int64 `form:"width"`
  2231. EnvVersion string `form:"envVersion"`
  2232. }
  2233. // The data of wx card user information | WxCardUser信息
  2234. // swagger:model WxCardUserInfo
  2235. type WxCardUserInfo struct {
  2236. BaseIDInfo
  2237. // 微信id
  2238. Wxid *string `json:"wxid,optional"`
  2239. // 微信号
  2240. Account *string `json:"account,optional"`
  2241. // 头像
  2242. Avatar *string `json:"avatar,optional"`
  2243. // 昵称
  2244. Nickname *string `json:"nickname,optional"`
  2245. // 备注名
  2246. Remark *string `json:"remark,optional"`
  2247. // 手机号
  2248. Phone *string `json:"phone,optional"`
  2249. // OpenID
  2250. OpenId *string `json:"openId,optional"`
  2251. // UnionID
  2252. UnionId *string `json:"unionId,optional"`
  2253. // SessionKey
  2254. SessionKey *string `json:"sessionKey,optional"`
  2255. // IsVip
  2256. IsVip *string `json:"isVip,optional"`
  2257. }
  2258. // The response data of wx card user list | WxCardUser列表数据
  2259. // swagger:model WxCardUserListResp
  2260. type WxCardUserListResp struct {
  2261. BaseDataInfo
  2262. // WxCardUser list data | WxCardUser列表数据
  2263. Data WxCardUserListInfo `json:"data"`
  2264. }
  2265. // WxCardUser list data | WxCardUser列表数据
  2266. // swagger:model WxCardUserListInfo
  2267. type WxCardUserListInfo struct {
  2268. BaseListInfo
  2269. // The API list data | WxCardUser列表数据
  2270. Data []WxCardUserInfo `json:"data"`
  2271. }
  2272. // Get wx card user list request params | WxCardUser列表请求参数
  2273. // swagger:model WxCardUserListReq
  2274. type WxCardUserListReq struct {
  2275. PageInfo
  2276. // 微信id
  2277. Wxid *string `json:"wxid,optional"`
  2278. // 微信号
  2279. Account *string `json:"account,optional"`
  2280. // 头像
  2281. Avatar *string `json:"avatar,optional"`
  2282. // 昵称
  2283. Nickname *string `json:"nickname,optional"`
  2284. }
  2285. // WxCardUser information response | WxCardUser信息返回体
  2286. // swagger:model WxCardUserInfoResp
  2287. type WxCardUserInfoResp struct {
  2288. BaseDataInfo
  2289. // WxCardUser information | WxCardUser数据
  2290. Data WxCardUserInfo `json:"data"`
  2291. }
  2292. // The data of wx card visit information | WxCardVisit信息
  2293. // swagger:model WxCardVisitInfo
  2294. type WxCardVisitInfo struct {
  2295. BaseIDInfo
  2296. // user表ID
  2297. UserId *uint64 `json:"userId,optional"`
  2298. // user名
  2299. UserName *string `json:"userName,optional"`
  2300. // 被访ID
  2301. BotId *uint64 `json:"botId,optional"`
  2302. // 类型:1-微信 2-小程序 3-智能体
  2303. BotType *uint8 `json:"botType,optional"`
  2304. // 类型:1-微信 2-小程序 3-智能体
  2305. BotTypeStr *string `json:"botTypeStr,optional"`
  2306. CardInfo WxCardSimpleInfo `json:"cardInfo,optional,omitempty"`
  2307. }
  2308. // swagger:model WxCardVisitReq
  2309. type WxCardVisitReq struct {
  2310. BaseIDInfo
  2311. // user表ID
  2312. UserId *uint64 `json:"userId,optional"`
  2313. // 被访ID
  2314. BotId *uint64 `json:"botId,optional"`
  2315. // 类型:1-微信 2-小程序 3-智能体
  2316. BotType *uint8 `json:"botType,optional"`
  2317. }
  2318. // swagger:model WxCardVisitSingleInfo
  2319. type WxCardVisitSingleInfo struct {
  2320. BaseIDInfo
  2321. // user表ID
  2322. UserId *uint64 `json:"userId,optional"`
  2323. // 被访ID
  2324. BotId *uint64 `json:"botId,optional"`
  2325. // 类型:1-微信 2-小程序 3-智能体
  2326. BotType *uint8 `json:"botType,optional"`
  2327. CardInfo WxCardInfo `json:"cardInfo,optional"`
  2328. }
  2329. // The response data of wx card visit list | WxCardVisit列表数据
  2330. // swagger:model WxCardVisitListResp
  2331. type WxCardVisitListResp struct {
  2332. BaseDataInfo
  2333. // WxCardVisit list data | WxCardVisit列表数据
  2334. Data WxCardVisitListInfo `json:"data"`
  2335. }
  2336. // WxCardVisit list data | WxCardVisit列表数据
  2337. // swagger:model WxCardVisitListInfo
  2338. type WxCardVisitListInfo struct {
  2339. BaseListInfo
  2340. // The API list data | WxCardVisit列表数据
  2341. Data []WxCardVisitInfo `json:"data"`
  2342. }
  2343. // Get wx card visit list request params | WxCardVisit列表请求参数
  2344. // swagger:model WxCardVisitListReq
  2345. type WxCardVisitListReq struct {
  2346. PageInfo
  2347. BotId *uint64 `json:"botId,optional"`
  2348. BotType *uint8 `json:"botType,optional"`
  2349. BotName *string `json:"botName,optional"`
  2350. }
  2351. // WxCardVisit information response | WxCardVisit信息返回体
  2352. // swagger:model WxCardVisitInfoResp
  2353. type WxCardVisitInfoResp struct {
  2354. BaseDataInfo
  2355. // WxCardVisit information | WxCardVisit数据
  2356. Data WxCardVisitInfo `json:"data"`
  2357. }
  2358. // swagger:model AvatarInfo
  2359. type AvatarInfo struct {
  2360. RequestId *string `json:"requestId"`
  2361. SessionId *string `json:"SessionId"`
  2362. Token *string `json:"token"`
  2363. Channel Channel `json:"channel"`
  2364. }
  2365. type Channel struct {
  2366. ChannelId *string `json:"channelId"`
  2367. Token *string `json:"token"`
  2368. Type *string `json:"type"`
  2369. ExpiredTime *string `json:"expiredTime"`
  2370. Nonce *string `json:"nonce"`
  2371. UserId *string `json:"userId"`
  2372. AppId *string `json:"appId"`
  2373. UserInfoInChannel *string `json:"userInfoInChannel"`
  2374. Gslb []*string `json:"gslb"`
  2375. }
  2376. // start avatar request | 启动数字人
  2377. // swagger:model AvatarConfigReq
  2378. type AvatarConfigReq struct {
  2379. // 名片 ID
  2380. CardId *uint64 `json:"card_id,optional"`
  2381. }
  2382. // start avatar response | 启动数字人
  2383. // swagger:model AvatarConfigResp
  2384. type AvatarConfigResp struct {
  2385. BaseDataInfo
  2386. // Agent information | Agent数据
  2387. Data AvatarInfo `json:"data"`
  2388. Extra Extra `json:"extra"`
  2389. }
  2390. type Extra struct {
  2391. Live int64 `json:"live"`
  2392. Total int64 `json:"total"`
  2393. }
  2394. // swagger:model AvatarStsResp
  2395. type AvatarStsResp struct {
  2396. BaseDataInfo
  2397. // Sts information | Sts 数据
  2398. Data StsInfo `json:"data"`
  2399. }
  2400. // swagger:model StsInfo
  2401. type StsInfo struct {
  2402. Expiration *string `json:"expiration"`
  2403. AccessKeyId *string `json:"accessKeyId"`
  2404. AccessKeySecret *string `json:"accessKeySecret"`
  2405. SecurityToken *string `json:"securityToken"`
  2406. RequestId *string `json:"requestId"`
  2407. }
  2408. // swagger:model AvatarSignatureResp
  2409. type AvatarSignatureResp struct {
  2410. BaseDataInfo
  2411. // Sts information | Sts 数据
  2412. Data SignatureInfo `json:"data"`
  2413. }
  2414. // swagger:model SignatureInfo
  2415. type SignatureInfo struct {
  2416. Key *string `json:"key"`
  2417. OSSAccessKeyId *string `json:"OSSAccessKeyId"`
  2418. Policy *string `json:"policy"`
  2419. Signature *string `json:"signature"`
  2420. }
  2421. // send text | 数字人-发送消息
  2422. // swagger:model SendTextReq
  2423. type SendTextReq struct {
  2424. CardId *uint64 `json:"cardId"`
  2425. SessionId *string `json:"sessionId"`
  2426. Text *string `json:"text"`
  2427. IsStream *bool `json:"isStream,optional"`
  2428. Index *int32 `json:"index,optional"`
  2429. Position *string `json:"position,optional"`
  2430. }
  2431. // swagger:model SendTextResp
  2432. type SendTextResp struct {
  2433. BaseDataInfo
  2434. Data SendText `json:"data"`
  2435. }
  2436. type SendText struct {
  2437. SessionId *string `json:"sessionId"`
  2438. UniqueCode *string `json:"uniqueCode"`
  2439. }
  2440. // stop instance | 数字人-停止实例
  2441. // swagger:model StopInstanceReq
  2442. type StopInstanceReq struct {
  2443. CardId *uint64 `json:"cardId"`
  2444. SessionId *string `json:"sessionId"`
  2445. }
  2446. // swagger:model StopInstanceResp
  2447. type StopInstanceResp struct {
  2448. BaseDataInfo
  2449. Data StopInstance `json:"data"`
  2450. }
  2451. type StopInstance struct {
  2452. SessionId *string `json:"sessionId"`
  2453. RequestId *string `json:"requestId"`
  2454. }
  2455. // The data of aliyun avatar information | AliyunAvatar信息
  2456. // swagger:model AliyunAvatarInfo
  2457. type AliyunAvatarInfo struct {
  2458. BaseIDInfo
  2459. // user_id | wx_card_user_id
  2460. UserId *uint64 `json:"userId,optional"`
  2461. // biz_id | BizId
  2462. BizId *string `json:"bizId,optional"`
  2463. // access_key_id | AccessKeyId
  2464. AccessKeyId *string `json:"accessKeyId,optional"`
  2465. // access_key_secret | AccessKeySecret
  2466. AccessKeySecret *string `json:"accessKeySecret,optional"`
  2467. // app_id | AppId
  2468. AppId *string `json:"appId,optional"`
  2469. // tenant_id | TenantId
  2470. TenantId *uint64 `json:"TenantId,optional"`
  2471. // response | 阿里云avatar响应
  2472. Response *string `json:"response,optional"`
  2473. // token | Token
  2474. Token *string `json:"token,optional"`
  2475. // session_id | SessionId
  2476. SessionId *string `json:"sessionId,optional"`
  2477. }
  2478. // The response data of aliyun avatar list | AliyunAvatar列表数据
  2479. // swagger:model AliyunAvatarListResp
  2480. type AliyunAvatarListResp struct {
  2481. BaseDataInfo
  2482. // AliyunAvatar list data | AliyunAvatar列表数据
  2483. Data AliyunAvatarListInfo `json:"data"`
  2484. }
  2485. // AliyunAvatar list data | AliyunAvatar列表数据
  2486. // swagger:model AliyunAvatarListInfo
  2487. type AliyunAvatarListInfo struct {
  2488. BaseListInfo
  2489. // The API list data | AliyunAvatar列表数据
  2490. Data []AliyunAvatarInfo `json:"data"`
  2491. }
  2492. // Get aliyun avatar list request params | AliyunAvatar列表请求参数
  2493. // swagger:model AliyunAvatarListReq
  2494. type AliyunAvatarListReq struct {
  2495. PageInfo
  2496. // biz_id | BizId
  2497. BizId *string `json:"bizId,optional"`
  2498. // access_key_id | AccessKeyId
  2499. AccessKeyId *string `json:"accessKeyId,optional"`
  2500. // access_key_secret | AccessKeySecret
  2501. AccessKeySecret *string `json:"accessKeySecret,optional"`
  2502. }
  2503. // AliyunAvatar information response | AliyunAvatar信息返回体
  2504. // swagger:model AliyunAvatarInfoResp
  2505. type AliyunAvatarInfoResp struct {
  2506. BaseDataInfo
  2507. // AliyunAvatar information | AliyunAvatar数据
  2508. Data AliyunAvatarInfo `json:"data"`
  2509. }
  2510. // The response data of UsageDetail information | UsageDetail信息
  2511. // swagger:model UsageDetailInfo
  2512. type UsageDetailInfo struct {
  2513. BaseIDInfo
  2514. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  2515. Status *uint8 `json:"status,optional"`
  2516. // 1 微信 2 名片
  2517. Type *int
  2518. // 微信id
  2519. BotId *string `json:"botId,optional"`
  2520. // 微信id或open_id
  2521. ReceiverId *string `json:"receiverId,optional"`
  2522. // 1 cow-basic 2 cow-agent 3 cow-sop 4 mp-card 5 mp-employee
  2523. App *string
  2524. // 名片会话id
  2525. SessionId *uint64 `json:"sessionId,optional"`
  2526. // 请求内容
  2527. Request *string `json:"request,optional"`
  2528. // 响应内容
  2529. Response *string `json:"response,optional"`
  2530. // 使用token总数
  2531. TotalTokens *uint64 `json:"totalTokens,optional"`
  2532. // 请求token数
  2533. PromptTokens *uint64 `json:"promptTokens,optional"`
  2534. // 响应token数
  2535. CompletionTokens *uint64 `json:"completionTokens,optional"`
  2536. // 组织ID
  2537. OrganizationId *uint64 `json:"organizationId,optional"`
  2538. }
  2539. // The response data of UsageDetail list | UsageDetail列表数据
  2540. // swagger:model UsageDetailListResp
  2541. type UsageDetailListResp struct {
  2542. BaseDataInfo
  2543. // UsageDetail list data | UsageDetail列表数据
  2544. Data UsageDetailListInfo `json:"data"`
  2545. }
  2546. // UsageDetail list data | UsageDetail列表数据
  2547. // swagger:model UsageDetailListInfo
  2548. type UsageDetailListInfo struct {
  2549. BaseListInfo
  2550. // The API list data | UsageDetail列表数据
  2551. Data []UsageDetailInfo `json:"data"`
  2552. }
  2553. // Get wx list request params | Wx列表请求参数
  2554. // swagger:model UsageDetailListReq
  2555. type UsageDetailListReq struct {
  2556. PageInfo
  2557. // 租户id
  2558. BotId *string `json:"botId,optional"`
  2559. }
  2560. // The response data of UsageTotal information | UsageTotal信息
  2561. // swagger:model UsageTotalInfo
  2562. type UsageTotalInfo struct {
  2563. BaseIDInfo
  2564. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  2565. Status *uint8 `json:"status,optional"`
  2566. // 1 微信 2 名片
  2567. Type *int
  2568. // 微信或名片id
  2569. BotId *string `json:"botId,optional"`
  2570. // 使用token总数
  2571. TotalTokens *uint64 `json:"totalTokens,optional"`
  2572. // 重制后的起始usage_detail 索引
  2573. StartIndex *uint64 `json:"startIndex,optional"`
  2574. // usage_detail 索引
  2575. EndIndex *uint64 `json:"endIndex,optional"`
  2576. // 组织ID
  2577. OrganizationId *uint64 `json:"organizationId,optional"`
  2578. }
  2579. // The response data of UsageTotal list | UsageTotal列表数据
  2580. // swagger:model UsageTotalListResp
  2581. type UsageTotalListResp struct {
  2582. BaseDataInfo
  2583. // UsageTotal list data | UsageTotal列表数据
  2584. Data UsageTotalListInfo `json:"data"`
  2585. }
  2586. // UsageTotal list data | UsageTotal列表数据
  2587. // swagger:model UsageTotalListInfo
  2588. type UsageTotalListInfo struct {
  2589. BaseListInfo
  2590. // The API list data | UsageTotal列表数据
  2591. Data []UsageTotalInfo `json:"data"`
  2592. }
  2593. // Get wx list request params | Wx列表请求参数
  2594. // swagger:model UsageTotalListReq
  2595. type UsageTotalListReq struct {
  2596. PageInfo
  2597. // 租户id
  2598. OrganizationId *uint64 `json:"organizationId,optional"`
  2599. }