types.go 82 KB

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