types.go 75 KB

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