types.go 77 KB

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