types.go 88 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166
  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 data of label tagging information | LabelTagging信息
  1002. // swagger:model LabelTaggingInfo
  1003. type LabelTaggingInfo struct {
  1004. BaseIDInfo
  1005. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1006. Status *uint8 `json:"status,optional"`
  1007. // 机构 ID
  1008. OrganizationId *uint64 `json:"organizationId,optional"`
  1009. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  1010. Type *int `json:"type,optional"`
  1011. // 关键词
  1012. Conditions string `json:"conditions,optional"`
  1013. // 命中后需要打的标签
  1014. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1015. // 命中后需要移除的标签
  1016. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1017. }
  1018. // The response data of label tagging list | LabelTagging信息列表数据
  1019. // swagger:model LabelTaggingListResp
  1020. type LabelTaggingListResp struct {
  1021. BaseDataInfo
  1022. // The label tagging list data | LabelTagging信息列表数据
  1023. Data LabelTaggingListInfo `json:"data"`
  1024. }
  1025. // The label tagging list data | LabelTagging信息列表数据
  1026. // swagger:model LabelTaggingListInfo
  1027. type LabelTaggingListInfo struct {
  1028. BaseListInfo
  1029. // The label tagging list data | LabelTagging信息列表数据
  1030. Data []LabelTaggingInfo `json:"data"`
  1031. }
  1032. // Get label tagging list request params | LabelTagging信息列表请求参数
  1033. // swagger:model LabelTaggingListReq
  1034. type LabelTaggingListReq struct {
  1035. PageInfo
  1036. }
  1037. // The label tagging information response | LabelTagging信息返回体
  1038. // swagger:model LabelTaggingInfoResp
  1039. type LabelTaggingInfoResp struct {
  1040. BaseDataInfo
  1041. // label tagging information | LabelTagging信息数据
  1042. Data LabelTaggingInfo `json:"data"`
  1043. }
  1044. // The response data of sop task list | SopTask列表数据
  1045. // swagger:model SopTaskListResp
  1046. type SopTaskListResp struct {
  1047. BaseDataInfo
  1048. // SopTask list data | SopTask列表数据
  1049. Data SopTaskListInfo `json:"data"`
  1050. }
  1051. // The response data of sop task record list | SopTask列表数据
  1052. // swagger:model SopTaskRecordListResp
  1053. type SopTaskRecordListResp struct {
  1054. BaseDataInfo
  1055. // SopTask list data | SopTask列表数据
  1056. Data []SopTaskRecordInfo `json:"data"`
  1057. }
  1058. // SopTask list data | SopTask列表数据
  1059. // swagger:model SopTaskRecordInfo
  1060. type SopTaskRecordInfo struct {
  1061. // NodeId 节点ID
  1062. SourceType *int `json:"sourceType,optional"`
  1063. // NodeId 节点ID
  1064. SourceId *uint64 `json:"sourceId,optional"`
  1065. // 节点名称
  1066. Name *string `json:"name,optional"`
  1067. // 消息总数
  1068. TotalCount *int64 `json:"totalCount,optional"`
  1069. // 成功数
  1070. SuccessCount *int64 `json:"successCount,optional"`
  1071. // 失败数
  1072. FailureCount *int64 `json:"failureCount,optional"`
  1073. // 成功率
  1074. SuccessRate *int64 `json:"successRate,optional"`
  1075. }
  1076. // SopTask list data | SopTask列表数据
  1077. // swagger:model SopTaskListInfo
  1078. type SopTaskListInfo struct {
  1079. BaseListInfo
  1080. // The API list data | SopTask列表数据
  1081. Data []SopTaskInfo `json:"data"`
  1082. }
  1083. // Get sop task list request params | SopTask列表请求参数
  1084. // swagger:model SopTaskListReq
  1085. type SopTaskListReq struct {
  1086. PageInfo
  1087. // SOP 任务名称
  1088. Name *string `json:"name,optional"`
  1089. // 创建者 id
  1090. CreatorId *string `json:"creatorId,optional"`
  1091. }
  1092. // SopTask information response | SopTask信息返回体
  1093. // swagger:model SopTaskInfoResp
  1094. type SopTaskInfoResp struct {
  1095. BaseDataInfo
  1096. // SopTask information | SopTask数据
  1097. Data SopTaskInfo `json:"data"`
  1098. }
  1099. // SopTask create response | SopTask创建回体
  1100. // swagger:model SopTaskCreateResp
  1101. type SopTaskCreateResp struct {
  1102. BaseDataInfo
  1103. // SopTask id | SopTask id
  1104. Data uint64 `json:"data"`
  1105. }
  1106. // swagger:model CopyReq
  1107. type CopyReq struct {
  1108. // SopTask id | SopTask id
  1109. Id uint64 `json:"id"`
  1110. // SOP 任务名称
  1111. Name *string `json:"name,optional"`
  1112. // Organization id | Organization id
  1113. OrganizationId uint64 `json:"organizationId,optional"`
  1114. }
  1115. // swagger:model MessageVarResp
  1116. type MessageVarResp struct {
  1117. BaseDataInfo
  1118. Data MessageVarRespData `json:"data"`
  1119. }
  1120. type MessageVarRespData struct {
  1121. // 消息变量
  1122. MessageVar []MessageVarInfo `json:"messageVar"`
  1123. // 转发变量
  1124. ForwardVar []MessageVarInfo `json:"forwardVar"`
  1125. }
  1126. // swagger:model MessageVarInfo
  1127. type MessageVarInfo struct {
  1128. // 显示名称
  1129. Label string `json:"label"`
  1130. // 变量
  1131. Value string `json:"value"`
  1132. }
  1133. // swagger:model SopTaskOutlineResp
  1134. type SopTaskOutlineResp struct {
  1135. BaseDataInfo
  1136. Data []SopTaskOutlineInfo `json:"data"`
  1137. }
  1138. // swagger:model SopTaskOutlineInfo
  1139. type SopTaskOutlineInfo struct {
  1140. // 标题
  1141. Title string `json:"title,optional"`
  1142. // key
  1143. Key string `json:"key,optional"`
  1144. // 子节点
  1145. Children []SopTaskOutlineInfo `json:"children,optional"`
  1146. }
  1147. // swagger:model TestNodeReq
  1148. type TestNodeReq struct {
  1149. Type int `json:"type"`
  1150. Id uint64 `json:"id"`
  1151. Content string `json:"content"`
  1152. }
  1153. // swagger:model TestNodeResp
  1154. type TestNodeResp struct {
  1155. BaseDataInfo
  1156. Data []string `json:"data"`
  1157. }
  1158. // swagger:model SopApiListReq
  1159. type SopApiListReq struct {
  1160. // required : true
  1161. // min : 0
  1162. Page uint64 `json:"page" validate:"required,number,gt=0"`
  1163. // required : true
  1164. // max : 2000
  1165. PageSize uint64 `json:"pageSize" validate:"required,number,lt=2000"`
  1166. }
  1167. // swagger:model GenerateAiAnswerReq
  1168. type GenerateAiAnswerReq struct {
  1169. Content string `json:"content"`
  1170. }
  1171. // swagger:model GenerateAiAnswerResp
  1172. type GenerateAiAnswerResp struct {
  1173. BaseDataInfo
  1174. Data string `json:"data"`
  1175. }
  1176. // The response data of sop stage information | SopStage信息
  1177. // swagger:model SopStageInfo
  1178. type SopStageInfo struct {
  1179. BaseIDInfo
  1180. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1181. Status *uint8 `json:"status,optional"`
  1182. // SOP 任务 ID
  1183. TaskId *uint64 `json:"taskId,optional"`
  1184. // 阶段名称
  1185. Name *string `json:"name,optional"`
  1186. // 客群筛选条件类型 1 按标签筛选 2 按客户基本信息筛选
  1187. ConditionType *int `json:"conditionType,optional"`
  1188. // 筛选条件关系 1 满足所有条件(and) 2 满足任意条件(or)
  1189. ConditionOperator *int `json:"conditionOperator,optional"`
  1190. // 筛选条件列表
  1191. ConditionList []Condition `json:"conditionList,optional"`
  1192. // 命中后发送的消息内容
  1193. ActionMessage []Action `json:"actionMessage,optional"`
  1194. // 命中后需要打的标签
  1195. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1196. // 命中后需要移除的标签
  1197. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1198. // 命中后转发的消息内容
  1199. ActionForward *ActionForward `json:"actionForward,optional"`
  1200. // 阶段顺序
  1201. IndexSort *int `json:"indexSort,optional"`
  1202. // sop 任务信息
  1203. TaskInfo *SopTaskInfo `json:"taskInfo,optional"`
  1204. // node 信息
  1205. NodeList []SopNodeInfo `json:"nodeList,optional"`
  1206. }
  1207. // The response data of sop task information | SopTask信息
  1208. // swagger:model SopTaskInfo
  1209. type SopTaskInfo struct {
  1210. BaseIDInfo
  1211. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1212. Status *uint8 `json:"status,optional"`
  1213. // SOP 任务名称
  1214. Name *string `json:"name,optional"`
  1215. // 机器人微信 id 列表
  1216. BotWxidList []string `json:"botWxidList,optional"`
  1217. // 标签类型:1好友,2群组,3企业微信联系人
  1218. Type *int `json:"type,optional"`
  1219. // 任务计划开始时间
  1220. PlanStartTime *int64 `json:"planStartTime,optional"`
  1221. // 任务计划结束时间
  1222. PlanEndTime *int64 `json:"planEndTime,optional"`
  1223. // 创建者 id
  1224. CreatorId *string `json:"creatorId,optional"`
  1225. // 阶段信息
  1226. StageList []SopStageInfo `json:"stageList,optional"`
  1227. // 组织ID
  1228. OrganizationId *uint64 `json:"organizationId,optional"`
  1229. // Token
  1230. Token []string `json:"token,optional"`
  1231. }
  1232. // The response data of sop node information | SopNode信息
  1233. // swagger:model SopNodeInfo
  1234. type SopNodeInfo struct {
  1235. BaseIDInfo
  1236. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1237. Status *uint8 `json:"status,optional"`
  1238. // 阶段 ID
  1239. StageId *uint64 `json:"stageId,optional"`
  1240. // 父节点 ID
  1241. ParentId *uint64 `json:"parentId,optional"`
  1242. // 节点名称
  1243. Name *string `json:"name,optional"`
  1244. // 触发条件类型 1 客户回复后触发 2 超时后触发
  1245. ConditionType *int `json:"conditionType,optional"`
  1246. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  1247. ConditionList []string `json:"conditionList,optional"`
  1248. // 超时触发时间(分钟)
  1249. NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
  1250. // 超时触发时间单位
  1251. NoReplyUnit *string `json:"noReplyUnit,optional"`
  1252. // 命中后发送的消息内容
  1253. ActionMessage []Action `json:"actionMessage,optional"`
  1254. // 命中后需要打的标签
  1255. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1256. // 命中后需要移除的标签
  1257. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1258. // 命中后转发的消息内容
  1259. ActionForward *ActionForward `json:"actionForward,optional"`
  1260. // 阶段信息
  1261. StageInfo *SopStageInfo `json:"stageInfo,optional"`
  1262. }
  1263. // The response data of sop node information | SopNode信息
  1264. type SopNodeInfoWithLable struct {
  1265. BaseIDInfo
  1266. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1267. Status *uint8 `json:"status,optional"`
  1268. // 阶段 ID
  1269. StageId *uint64 `json:"stageId,optional"`
  1270. // 父节点 ID
  1271. ParentId *uint64 `json:"parentId,optional"`
  1272. // 节点名称
  1273. Name *string `json:"name,optional"`
  1274. // 触发条件类型 1 客户回复后触发 2 超时后触发
  1275. ConditionType *int `json:"conditionType,optional"`
  1276. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  1277. ConditionList []string `json:"conditionList,optional"`
  1278. // 超时触发时间(分钟)
  1279. NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
  1280. // 超时触发时间单位
  1281. NoReplyUnit *string `json:"noReplyUnit,optional"`
  1282. // 命中后发送的消息内容
  1283. ActionMessage []Action `json:"actionMessage,optional"`
  1284. // 命中后需要打的标签
  1285. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1286. // 命中后需要移除的标签
  1287. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1288. // 命中后转发的消息内容
  1289. ActionForward *ActionForward `json:"actionForward,optional"`
  1290. ActionLabelAddList []string `json:"actionLabelAddList"`
  1291. ActionLabelDelList []string `json:"actionLabelDelList"`
  1292. }
  1293. // The response data of sop stage list | SopStage列表数据
  1294. // swagger:model SopStageListResp
  1295. type SopStageListResp struct {
  1296. BaseDataInfo
  1297. // SopStage list data | SopStage列表数据
  1298. Data SopStageListInfo `json:"data"`
  1299. }
  1300. // SopStage list data | SopStage列表数据
  1301. // swagger:model SopStageListInfo
  1302. type SopStageListInfo struct {
  1303. BaseListInfo
  1304. // The API list data | SopStage列表数据
  1305. Data []SopStageInfo `json:"data"`
  1306. }
  1307. // Get sop stage list request params | SopStage列表请求参数
  1308. // swagger:model SopStageListReq
  1309. type SopStageListReq struct {
  1310. TaskId *uint64 `json:"taskId"`
  1311. }
  1312. // Batch get sop stage list request params | SopStage列表请求参数
  1313. // swagger:model BatchSopStageListReq
  1314. type BatchSopStageListReq struct {
  1315. TaskIds []uint64 `json:"taskIds"`
  1316. }
  1317. // SopStage information response | SopStage信息返回体
  1318. // swagger:model SopStageInfoResp
  1319. type SopStageInfoResp struct {
  1320. BaseDataInfo
  1321. // SopStage information | SopStage数据
  1322. Data SopStageInfo `json:"data"`
  1323. }
  1324. // SopStage create response | SopStage创建回体
  1325. // swagger:model SopStageCreateResp
  1326. type SopStageCreateResp struct {
  1327. BaseDataInfo
  1328. // SopStage id | SopStage id
  1329. Data uint64 `json:"data"`
  1330. }
  1331. // Move sop stage request params | 移动阶段请求参数
  1332. // swagger:model SopStageMoveReq
  1333. type SopStageMoveReq struct {
  1334. BaseIDInfo
  1335. // 阶段名称
  1336. Offset *int `json:"offset,optional"`
  1337. }
  1338. // The response data of sop node list | SopNode列表数据
  1339. // swagger:model SopNodeListResp
  1340. type SopNodeListResp struct {
  1341. BaseDataInfo
  1342. // SopNode list data | SopNode列表数据
  1343. Data []*SopChildNodeInfo `json:"data"`
  1344. }
  1345. // The response data of sop node list | SopNode列表数据
  1346. type SopNodeListResp2 struct {
  1347. BaseDataInfo
  1348. // SopNode list data | SopNode列表数据
  1349. Data []*SopNodeInfoWithLable `json:"data"`
  1350. }
  1351. // SopNode list data | SopNode列表数据
  1352. // swagger:model SopChildNodeInfo
  1353. type SopChildNodeInfo struct {
  1354. NodeName *string `json:"nodeName,optional"`
  1355. ChildNode *SopChildNodeInfo `json:"childNode,optional"`
  1356. // The API list data | SopNode列表数据
  1357. ConditionNodes []*SopChildNodeInfo `json:"conditionNodes"`
  1358. SopNodeInfo
  1359. }
  1360. // SopNode list data | SopNode列表数据
  1361. // swagger:model SopNodeListInfo
  1362. type SopNodeListInfo struct {
  1363. BaseListInfo
  1364. // The API list data | SopNode列表数据
  1365. Data []SopNodeInfo `json:"data"`
  1366. }
  1367. // Get sop node list request params | SopNode列表请求参数
  1368. // swagger:model SopNodeListReq
  1369. type SopNodeListReq struct {
  1370. StageId *uint64 `json:"stageId"`
  1371. }
  1372. // Get sop node list request params | SopNode列表请求参数
  1373. // swagger:model BatchSopNodeListReq
  1374. type BatchSopNodeListReq struct {
  1375. StageIds []uint64 `json:"stageIds"`
  1376. }
  1377. // SopNode information response | SopNode信息返回体
  1378. // swagger:model SopNodeInfoResp
  1379. type SopNodeInfoResp struct {
  1380. BaseDataInfo
  1381. // SopNode information | SopNode数据
  1382. Data SopNodeInfo `json:"data"`
  1383. }
  1384. // SopNode create response | SopNode创建返回体
  1385. // swagger:model SopNodeCreateResp
  1386. type SopNodeCreateResp struct {
  1387. BaseDataInfo
  1388. // SopNode id | SopNode id
  1389. Data uint64 `json:"data"`
  1390. }
  1391. // The response data of message records information | MessageRecords信息
  1392. // swagger:model MessageRecordsInfo
  1393. type MessageRecordsInfo struct {
  1394. BaseIDInfo
  1395. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1396. Status *uint8 `json:"status,optional"`
  1397. // 机器人微信 id
  1398. BotWxid *string `json:"botWxid,optional"`
  1399. // 联系人 id
  1400. ContactId *uint64 `json:"contactId,optional"`
  1401. // 类型:1好友,2群组,3企业微信联系人
  1402. ContactType *int `json:"contactType,optional"`
  1403. // 接收方微信 id
  1404. ContactWxid *string `json:"contactWxid,optional"`
  1405. // 内容类型 1 文本 2 文件
  1406. ContentType *int `json:"contentType,optional"`
  1407. // 发送内容
  1408. Content *string `json:"content,optional"`
  1409. // 元数据
  1410. Meta *Meta `json:"meta,optional"`
  1411. // 异常原因
  1412. ErrorDetail *string `json:"errorDetail,optional"`
  1413. // 发送时间
  1414. SendTime *int64 `json:"sendTime,optional"`
  1415. // 源类型 1 点发 2 群发 3 SOP
  1416. SourceType *int `json:"sourceType,optional"`
  1417. // 源 ID
  1418. SourceId *uint64 `json:"sourceId,optional"`
  1419. // 次源 ID
  1420. SubSourceId *uint64 `json:"subSourceId,optional"`
  1421. // 组织ID
  1422. OrganizationId *uint64 `json:"organizationId,optional"`
  1423. }
  1424. // The response data of message records list | MessageRecords列表数据
  1425. // swagger:model MessageRecordsListResp
  1426. type MessageRecordsListResp struct {
  1427. BaseDataInfo
  1428. // MessageRecords list data | MessageRecords列表数据
  1429. Data MessageRecordsListInfo `json:"data"`
  1430. }
  1431. // MessageRecords list data | MessageRecords列表数据
  1432. // swagger:model MessageRecordsListInfo
  1433. type MessageRecordsListInfo struct {
  1434. BaseListInfo
  1435. // The API list data | MessageRecords列表数据
  1436. Data []MessageRecordsInfo `json:"data"`
  1437. }
  1438. // Get message records list request params | MessageRecords列表请求参数
  1439. // swagger:model MessageRecordsListReq
  1440. type MessageRecordsListReq struct {
  1441. PageInfo
  1442. // 群发消息ID
  1443. BatchMsgId *uint64 `json:"batchMsgId,optional"`
  1444. // 机器人微信 id
  1445. BotWxid *string `json:"botWxid,optional"`
  1446. // 消息类型:源类型 1 点发 2 群发 3 SOP 阶段 4 SOP 节点
  1447. SourceType *int `json:"sourceType,optional"`
  1448. // 消息源ID:
  1449. SourceId *uint64 `json:"sourceId,optional"`
  1450. // 接收方微信 id
  1451. ContactWxid *string `json:"contactWxid,optional"`
  1452. // 发送内容
  1453. Status *uint8 `json:"status,optional"`
  1454. }
  1455. // MessageRecords information response | MessageRecords信息返回体
  1456. // swagger:model MessageRecordsInfoResp
  1457. type MessageRecordsInfoResp struct {
  1458. BaseDataInfo
  1459. // MessageRecords information | MessageRecords数据
  1460. Data MessageRecordsInfo `json:"data"`
  1461. }
  1462. // The response data of chatroom member information | ChatroomMember信息
  1463. // swagger:model ChatroomMemberInfo
  1464. type ChatroomMemberInfo struct {
  1465. // 名称
  1466. Wxid *string `json:"wxid,optional"`
  1467. // 群组
  1468. ChatRoom *string `json:"chatRoom,optional"`
  1469. // 属主Wxid
  1470. OwnerWxid *string `json:"ownerWxid,optional"`
  1471. // 账号
  1472. Account *string `json:"account,optional"`
  1473. }
  1474. // The response data of chatroom member list | ChatroomMember列表数据
  1475. // swagger:model ChatroomMemberListResp
  1476. type ChatroomMemberListResp struct {
  1477. BaseDataInfo
  1478. // chatroom member list data | chatroom member 列表数据
  1479. Data ChatroomMemberListInfo `json:"data"`
  1480. }
  1481. // chatroom member list data | chatroom member列表数据
  1482. // swagger:model ChatroomMemberListInfo
  1483. type ChatroomMemberListInfo struct {
  1484. BaseListInfo
  1485. // The API list data | chatroom member列表数据
  1486. Data []ChatroomMemberInfo `json:"data"`
  1487. }
  1488. // Get chatroom member list request params | ChatroomMember列表请求参数
  1489. // swagger:model ChatroomMemberListReq
  1490. type ChatroomMemberListReq struct {
  1491. PageInfo
  1492. // 属主Wxid
  1493. OwnerWxid *string `json:"ownerWxid,optional"`
  1494. // 群组
  1495. ChatRoom *string `json:"chatRoom,optional"`
  1496. }
  1497. // chatroom member information response | ChatroomMember信息返回体
  1498. // swagger:model ChatroomMemberInfoResp
  1499. type ChatroomMemberInfoResp struct {
  1500. BaseDataInfo
  1501. // Server information | Server数据
  1502. Data ChatroomMemberInfo `json:"data"`
  1503. }
  1504. // The response data of user information | 用户信息
  1505. // swagger:model UserInfo
  1506. type UserInfo struct {
  1507. BaseUUIDInfo
  1508. // Status | 状态
  1509. // max : 20
  1510. Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"`
  1511. // Username | 用户名
  1512. // max length : 50
  1513. Username *string `json:"username,optional" validate:"omitempty,max=50"`
  1514. // Nickname | 昵称
  1515. // max length : 40
  1516. Nickname *string `json:"nickname,optional" validate:"omitempty,max=40"`
  1517. // Password | 密码
  1518. // min length : 6
  1519. Password *string `json:"password,optional" validate:"omitempty,min=6"`
  1520. // Description | 描述
  1521. // max length : 100
  1522. Description *string `json:"description,optional" validate:"omitempty,max=100"`
  1523. // HomePath | 首页
  1524. // max length : 70
  1525. HomePath *string `json:"homePath,optional" validate:"omitempty,max=70"`
  1526. // RoleId | 角色ID
  1527. RoleIds []uint64 `json:"roleIds,optional"`
  1528. // Mobile | 手机号
  1529. // max length : 18
  1530. Mobile *string `json:"mobile,optional" validate:"omitempty,max=18"`
  1531. // Email | 邮箱
  1532. // max length : 80
  1533. Email *string `json:"email,optional" validate:"omitempty,max=80"`
  1534. // Avatar | 头像地址
  1535. // max length : 300
  1536. Avatar *string `json:"avatar,optional" validate:"omitempty,max=300"`
  1537. // Department ID | 部门ID
  1538. DepartmentId *uint64 `json:"departmentId,optional,omitempty"`
  1539. // Position ID | 职位ID
  1540. PositionIds []uint64 `json:"positionId,optional,omitempty"`
  1541. }
  1542. // User information response | 用户信息返回体
  1543. // swagger:model UserInfoResp
  1544. type UserInfoResp struct {
  1545. BaseDataInfo
  1546. // User information | User数据
  1547. Data UserInfo `json:"data"`
  1548. }
  1549. // The response data of user's basic information | 用户基本信息返回数据
  1550. // swagger:model UserBaseIDInfoResp
  1551. type UserBaseIDInfoResp struct {
  1552. BaseDataInfo
  1553. // The data of user's basic information | 用户基本信息
  1554. Data UserBaseIDInfo `json:"data"`
  1555. }
  1556. // The data of user's basic information | 用户基本信息
  1557. // swagger:model UserBaseIDInfo
  1558. type UserBaseIDInfo struct {
  1559. // User's UUID | 用户的UUID
  1560. UUID *string `json:"userId"`
  1561. // User's name | 用户名
  1562. Username *string `json:"username"`
  1563. // User's nickname | 用户的昵称
  1564. Nickname *string `json:"nickname"`
  1565. // The user's avatar path | 用户的头像路径
  1566. Avatar *string `json:"avatar"`
  1567. // The home page that the user enters after logging in | 用户登陆后进入的首页
  1568. HomePath *string `json:"homePath"`
  1569. // The description of user | 用户的描述信息
  1570. Description *string `json:"desc"`
  1571. // User's Role Name | 用户的角色名称
  1572. RoleName []string `json:"roleName"`
  1573. // Department Name | 部门名称
  1574. DepartmentName string `json:"departmentName,optional"`
  1575. // Department Name | 部门备注
  1576. DepartmentRemark string `json:"departmentRemark,optional"`
  1577. }
  1578. // swagger:model UserLoginReq
  1579. type UserLoginReq struct {
  1580. JsCode *string `json:"js_code,optional"`
  1581. }
  1582. // swagger:model UserLoginResp
  1583. type UserLoginResp struct {
  1584. BaseDataInfo
  1585. Data UserToken `json:"data,optional"`
  1586. }
  1587. // swagger:model GptsUserLoginReq
  1588. type GptsUserLoginReq struct {
  1589. Username *string `json:"username"`
  1590. Password *string `json:"password"`
  1591. }
  1592. // swagger:model GptsUserLoginResp
  1593. type GptsUserLoginResp struct {
  1594. BaseDataInfo
  1595. Data GptsUserToken `json:"data,optional"`
  1596. }
  1597. type GptsUserToken struct {
  1598. ID string `json:"id,optional"`
  1599. Token string `json:"token,optional"`
  1600. Username string `json:"username,optional"`
  1601. ExpireTime uint64 `json:"expireTime,optional"`
  1602. }
  1603. // swagger:model PasswordReq
  1604. type PasswordReq struct {
  1605. Password *string `json:"password"`
  1606. Password2 *string `json:"password2"`
  1607. }
  1608. type UserToken struct {
  1609. Token *string `json:"token,optional"`
  1610. ID *uint64 `json:"id,optional"`
  1611. Avatar *string `json:"avatar,optional"`
  1612. Nickname *string `json:"nickname,optional"`
  1613. IsVip *bool `json:"isVip,optional"`
  1614. }
  1615. // swagger:model UserVipResp
  1616. type UserVipResp struct {
  1617. BaseDataInfo
  1618. Data UserVip `json:"data,optional"`
  1619. }
  1620. type UserVip struct {
  1621. IsVip *bool `json:"isVip,optional"`
  1622. WechatAccount *string `json:"wechatAccount"`
  1623. }
  1624. // swagger:model WxidReq
  1625. type WxidReq struct {
  1626. Wxid string `json:"wxid"`
  1627. }
  1628. // The data of batch msg information | BatchMsg信息
  1629. // swagger:model BatchMsgInfo
  1630. type BatchMsgInfo struct {
  1631. BaseIDInfo
  1632. // 状态 0 未开始 1 开始发送 2 发送完成 3 发送中止
  1633. Status *uint8 `json:"status,optional"`
  1634. // 批次号
  1635. BatchNo *string `json:"batchNo,optional"`
  1636. // 任务名称
  1637. TaskName *string `json:"taskName,optional"`
  1638. // 发送方微信ID
  1639. Fromwxid *string `json:"fromwxid,optional"`
  1640. // 内容
  1641. Msg *string `json:"msg,optional"`
  1642. // 发送规则 all 全部 tag1,tag2 按tag发送
  1643. Tag *string `json:"tag,optional"`
  1644. // 总数
  1645. Total *int32 `json:"total,optional"`
  1646. // 成功数量
  1647. Success *int32 `json:"success,optional"`
  1648. // 失败数量
  1649. Fail *int32 `json:"fail,optional"`
  1650. // 开始时间
  1651. StartTime *int64 `json:"startTime,optional"`
  1652. StartTimeStr *string `json:"startTimeStr,optional"`
  1653. // 结束时间
  1654. StopTime *int64 `json:"stopTime,optional"`
  1655. // 发送时间
  1656. SendTime *int64 `json:"sendTime,optional"`
  1657. // 标签列表
  1658. Labels []uint64 `json:"labels,optional"`
  1659. GroupLabels []uint64 `json:"groupLabels,optional"`
  1660. // 标签列表
  1661. Type *int32 `json:"type,optional"`
  1662. }
  1663. // The response data of batch msg list | BatchMsg列表数据
  1664. // swagger:model BatchMsgListResp
  1665. type BatchMsgListResp struct {
  1666. BaseDataInfo
  1667. // BatchMsg list data | BatchMsg列表数据
  1668. Data BatchMsgListInfo `json:"data"`
  1669. }
  1670. // BatchMsg list data | BatchMsg列表数据
  1671. // swagger:model BatchMsgListInfo
  1672. type BatchMsgListInfo struct {
  1673. BaseListInfo
  1674. // The API list data | BatchMsg列表数据
  1675. Data []BatchMsgInfo `json:"data"`
  1676. }
  1677. // Get batch msg list request params | BatchMsg列表请求参数
  1678. // swagger:model BatchMsgListReq
  1679. type BatchMsgListReq struct {
  1680. PageInfo
  1681. // 批次号
  1682. BatchNo *string `json:"batchNo,optional"`
  1683. // 发送方微信ID
  1684. Fromwxid *string `json:"fromwxid,optional"`
  1685. // 内容
  1686. Msg *string `json:"msg,optional"`
  1687. // 任务名称
  1688. TaskName *string `json:"taskName,optional"`
  1689. // 群发类型
  1690. Type *int32 `json:"type"`
  1691. }
  1692. // BatchMsg information response | BatchMsg信息返回体
  1693. // swagger:model BatchMsgInfoResp
  1694. type BatchMsgInfoResp struct {
  1695. BaseDataInfo
  1696. // BatchMsg information | BatchMsg数据
  1697. Data BatchMsgInfo `json:"data"`
  1698. }
  1699. // The data of msg information | Msg信息
  1700. // swagger:model MsgInfo
  1701. type MsgInfo struct {
  1702. BaseIDInfo
  1703. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1704. Status *uint8 `json:"status,optional"`
  1705. // 发送方微信ID
  1706. Fromwxid *string `json:"fromwxid,optional"`
  1707. // 接收人微信ID/群ID
  1708. Toid *string `json:"toid,optional"`
  1709. // 消息类型
  1710. Msgtype *int32 `json:"msgtype,optional"`
  1711. // 消息
  1712. Msg *string `json:"msg,optional"`
  1713. // 批次号
  1714. BatchNo *string `json:"batchNo,optional"`
  1715. }
  1716. // The response data of msg list | Msg列表数据
  1717. // swagger:model MsgListResp
  1718. type MsgListResp struct {
  1719. BaseDataInfo
  1720. // Msg list data | Msg列表数据
  1721. Data MsgListInfo `json:"data"`
  1722. }
  1723. // Msg list data | Msg列表数据
  1724. // swagger:model MsgListInfo
  1725. type MsgListInfo struct {
  1726. BaseListInfo
  1727. // The API list data | Msg列表数据
  1728. Data []MsgInfo `json:"data"`
  1729. }
  1730. // Get msg list request params | Msg列表请求参数
  1731. // swagger:model MsgListReq
  1732. type MsgListReq struct {
  1733. PageInfo
  1734. // 状态
  1735. Status *uint8 `json:"status,optional"`
  1736. // 接收人微信ID/群ID
  1737. Toid *string `json:"toid,optional"`
  1738. // 群发消息ID
  1739. BatchId *uint64 `json:"batchId"`
  1740. }
  1741. // Msg information response | Msg信息返回体
  1742. // swagger:model MsgInfoResp
  1743. type MsgInfoResp struct {
  1744. BaseDataInfo
  1745. // Msg information | Msg数据
  1746. Data MsgInfo `json:"data"`
  1747. }
  1748. // The data of employee information | Employee信息
  1749. // swagger:model EmployeeInfo
  1750. type EmployeeInfo struct {
  1751. BaseIDInfo
  1752. // title | 标题
  1753. Title *string `json:"title,optional"`
  1754. // avatar | 头像
  1755. Avatar *string `json:"avatar,optional"`
  1756. // tags | 个人标签
  1757. Tags *string `json:"tags,optional"`
  1758. // hire_count | 被雇佣次数
  1759. HireCount *int `json:"hireCount,optional"`
  1760. // service_count | 已服务次数
  1761. ServiceCount *int `json:"serviceCount,optional"`
  1762. // achievement_count | 业绩单数
  1763. AchievementCount *int `json:"achievementCount,optional"`
  1764. // category_id | 分类ID
  1765. CategoryId *uint64 `json:"categoryId,optional"`
  1766. // intro | 个人介绍
  1767. Intro *string `json:"intro,optional"`
  1768. // estimate | 自我评价
  1769. Estimate *string `json:"estimate,optional"`
  1770. // skill | 技能卡
  1771. Skill *string `json:"skill,optional"`
  1772. // ability_type | 能力类型
  1773. AbilityType *string `json:"abilityType,optional"`
  1774. // scene | 使用场景
  1775. Scene *string `json:"scene,optional"`
  1776. SceneList []EmployeeConfigInfo `json:"sceneList,optional"`
  1777. // switch_in | 支持介入
  1778. SwitchIn *string `json:"switchIn,optional"`
  1779. SwitchInList []EmployeeConfigInfo `json:"switchInList,optional"`
  1780. Tutorial []TutorialInfo `json:"tutorial,optional"`
  1781. // video_url | 视频地址
  1782. VideoUrl *string `json:"videoUrl,optional"`
  1783. // work_experience | 工作经验
  1784. WorkExperience []WorkExperienceInfo `json:"workExperience,optional"`
  1785. ApiBase *string `json:"apiBase,optional"`
  1786. ApiKey *string `json:"apiKey,optional"`
  1787. // AI信息
  1788. AiInfo *string `json:"aiInfo,optional"`
  1789. ShowChat *bool `json:"showChat,optional"`
  1790. IsVip *bool `json:"isVip,optional"`
  1791. ChatUrl *string `json:"chatUrl,optional"`
  1792. }
  1793. // The response data of employee list | Employee列表数据
  1794. // swagger:model EmployeeListResp
  1795. type EmployeeListResp struct {
  1796. BaseDataInfo
  1797. // Employee list data | Employee列表数据
  1798. Data EmployeeListInfo `json:"data"`
  1799. }
  1800. // Employee list data | Employee列表数据
  1801. // swagger:model EmployeeListInfo
  1802. type EmployeeListInfo struct {
  1803. BaseListInfo
  1804. // The API list data | Employee列表数据
  1805. Data []EmployeeInfo `json:"data"`
  1806. }
  1807. // Get employee list request params | Employee列表请求参数
  1808. // swagger:model EmployeeListReq
  1809. type EmployeeListReq struct {
  1810. PageInfo
  1811. // title | 标题
  1812. Title *string `json:"title,optional"`
  1813. // tags | 个人标签
  1814. Tags *string `json:"tags,optional"`
  1815. // category_id | 分类ID
  1816. CategoryId *uint64 `json:"categoryId,optional"`
  1817. }
  1818. // Employee information response | Employee信息返回体
  1819. // swagger:model EmployeeInfoResp
  1820. type EmployeeInfoResp struct {
  1821. BaseDataInfo
  1822. // Employee information | Employee数据
  1823. Data EmployeeInfo `json:"data"`
  1824. }
  1825. // swagger:model AuthReq
  1826. type AuthReq struct {
  1827. Token *string `json:"token,optional"`
  1828. Data uint64 `json:"data,optional"`
  1829. }
  1830. // swagger:model AuthResp
  1831. type AuthResp struct {
  1832. Token *string `json:"token,optional"`
  1833. Data *uint64 `json:"data,optional"`
  1834. Original interface{} `json:"original,optional"`
  1835. OK interface{} `json:"ok,optional"`
  1836. SecretKey string `json:"secretKey,optional"`
  1837. }
  1838. // The data of work experience information | WorkExperience信息
  1839. // swagger:model WorkExperienceInfo
  1840. type WorkExperienceInfo struct {
  1841. BaseIDInfo
  1842. // employee_id | 员工ID
  1843. EmployeeId *uint64 `json:"employeeId,optional"`
  1844. // start_date | 开始时间
  1845. StartDate *int64 `json:"startDate,optional"`
  1846. StartDateStr *string `json:"startDateStr,optional"`
  1847. // end_date | 结束时间
  1848. EndDate *int64 `json:"endDate,optional"`
  1849. EndDateStr *string `json:"endDateStr,optional"`
  1850. // company | 公司名
  1851. Company *string `json:"company,optional"`
  1852. // experience | 工作内容
  1853. Experience *string `json:"experience,optional"`
  1854. }
  1855. // The response data of work experience list | WorkExperience列表数据
  1856. // swagger:model WorkExperienceListResp
  1857. type WorkExperienceListResp struct {
  1858. BaseDataInfo
  1859. // WorkExperience list data | WorkExperience列表数据
  1860. Data WorkExperienceListInfo `json:"data"`
  1861. }
  1862. // WorkExperience list data | WorkExperience列表数据
  1863. // swagger:model WorkExperienceListInfo
  1864. type WorkExperienceListInfo struct {
  1865. BaseListInfo
  1866. // The API list data | WorkExperience列表数据
  1867. Data []WorkExperienceInfo `json:"data"`
  1868. }
  1869. // Get work experience list request params | WorkExperience列表请求参数
  1870. // swagger:model WorkExperienceListReq
  1871. type WorkExperienceListReq struct {
  1872. PageInfo
  1873. // company | 公司名
  1874. Company *string `json:"company,optional"`
  1875. }
  1876. // WorkExperience information response | WorkExperience信息返回体
  1877. // swagger:model WorkExperienceInfoResp
  1878. type WorkExperienceInfoResp struct {
  1879. BaseDataInfo
  1880. // WorkExperience information | WorkExperience数据
  1881. Data WorkExperienceInfo `json:"data"`
  1882. }
  1883. // The data of tutorial information | Tutorial信息
  1884. // swagger:model TutorialInfo
  1885. type TutorialInfo struct {
  1886. BaseIDInfo
  1887. // employee_id | 员工ID
  1888. EmployeeId *uint64 `json:"employeeId,optional"`
  1889. // index | 序号
  1890. Index *int `json:"index,optional"`
  1891. // title | 标题
  1892. Title *string `json:"title,optional"`
  1893. // content | 内容
  1894. Content *string `json:"content,optional"`
  1895. }
  1896. // The response data of tutorial list | Tutorial列表数据
  1897. // swagger:model TutorialListResp
  1898. type TutorialListResp struct {
  1899. BaseDataInfo
  1900. // Tutorial list data | Tutorial列表数据
  1901. Data TutorialListInfo `json:"data"`
  1902. }
  1903. // Tutorial list data | Tutorial列表数据
  1904. // swagger:model TutorialListInfo
  1905. type TutorialListInfo struct {
  1906. BaseListInfo
  1907. // The API list data | Tutorial列表数据
  1908. Data []TutorialInfo `json:"data"`
  1909. }
  1910. // Get tutorial list request params | Tutorial列表请求参数
  1911. // swagger:model TutorialListReq
  1912. type TutorialListReq struct {
  1913. PageInfo
  1914. // title | 标题
  1915. Title *string `json:"title,optional"`
  1916. // content | 内容
  1917. Content *string `json:"content,optional"`
  1918. }
  1919. // Tutorial information response | Tutorial信息返回体
  1920. // swagger:model TutorialInfoResp
  1921. type TutorialInfoResp struct {
  1922. BaseDataInfo
  1923. // Tutorial information | Tutorial数据
  1924. Data TutorialInfo `json:"data"`
  1925. }
  1926. // The data of employee config information | EmployeeConfig信息
  1927. // swagger:model EmployeeConfigInfo
  1928. type EmployeeConfigInfo struct {
  1929. BaseIDInfo
  1930. // 类型:scene-场景 switch_in-接入方式
  1931. Stype *string `json:"stype,optional"`
  1932. // 标题
  1933. Title *string `json:"title,optional"`
  1934. // 图片地址
  1935. Photo *string `json:"photo,optional"`
  1936. }
  1937. // EmployeeConfig list data | EmployeeConfig列表数据
  1938. // swagger:model EmployeeConfigListInfo
  1939. type EmployeeConfigListInfo struct {
  1940. BaseListInfo
  1941. // The API list data | EmployeeConfig列表数据
  1942. Data []EmployeeConfigInfo `json:"data"`
  1943. }
  1944. // Employee config response | Employee配置信息返回体
  1945. // swagger:model EmployeeConfigListReq
  1946. type EmployeeConfigListReq struct {
  1947. /// 类型:scene-场景 switch_in-接入方式
  1948. Stype *string `json:"stype,optional"`
  1949. }
  1950. // EmployeeConfig information response | EmployeeConfig信息返回体
  1951. type EmployeeConfig struct {
  1952. Scene []EmployeeConfigInfo `json:"scene"`
  1953. SwitchIn []EmployeeConfigInfo `json:"switchIn"`
  1954. }
  1955. // Employee config response | Employee配置信息返回体
  1956. // swagger:model EmployeeConfigListResp
  1957. type EmployeeConfigListResp struct {
  1958. BaseDataInfo
  1959. // Employee information | Employee数据
  1960. Data EmployeeConfig `json:"data"`
  1961. }
  1962. // The data of token information | Token信息
  1963. // swagger:model TokenInfo
  1964. type TokenInfo struct {
  1965. BaseIDInfo
  1966. // 过期时间
  1967. ExpireAt *int64 `json:"expireAt,optional"`
  1968. ExpireAtStr *string `json:"expireAtStr,optional"`
  1969. // Token
  1970. Token *string `json:"token,optional"`
  1971. // Mac地址
  1972. Mac *string `json:"mac,optional"`
  1973. // 租户ID
  1974. OrganizationId *uint64 `json:"organization_id,optional"`
  1975. OrganizationName *string `json:"organizationName,optional"`
  1976. AgentId *uint64 `json:"agent_id,optional"`
  1977. AgentInfo *AgentInfo `json:"agent_info,optional"`
  1978. CustomAgentBase *string `json:"custom_agent_base,optional"`
  1979. CustomAgentKey *string `json:"custom_agent_key,optional"`
  1980. OpenaiBase *string `json:"openai_base,optional"`
  1981. OpenaiKey *string `json:"openai_key,optional"`
  1982. }
  1983. // The response data of token list | Token列表数据
  1984. // swagger:model TokenListResp
  1985. type TokenListResp struct {
  1986. BaseDataInfo
  1987. // Token list data | Token列表数据
  1988. Data TokenListInfo `json:"data"`
  1989. }
  1990. // Token list data | Token列表数据
  1991. // swagger:model TokenListInfo
  1992. type TokenListInfo struct {
  1993. BaseListInfo
  1994. // The API list data | Token列表数据
  1995. Data []TokenInfo `json:"data"`
  1996. }
  1997. // Get token list request params | Token列表请求参数
  1998. // swagger:model TokenListReq
  1999. type TokenListReq struct {
  2000. PageInfo
  2001. // Token
  2002. Token *string `json:"token,optional"`
  2003. // Mac地址
  2004. Mac *string `json:"mac,optional"`
  2005. OrganizationId *uint64 `json:"organization_id,optional"`
  2006. OrganizationName *string `json:"organizationName,optional"`
  2007. }
  2008. // Token information response | Token信息返回体
  2009. // swagger:model TokenInfoResp
  2010. type TokenInfoResp struct {
  2011. BaseDataInfo
  2012. // Token information | Token数据
  2013. Data TokenInfo `json:"data"`
  2014. }
  2015. // swagger:model CheckTokenReq
  2016. type CheckTokenReq struct {
  2017. // Token
  2018. Token *string `json:"token"`
  2019. // Mac地址
  2020. Mac *string `json:"mac"`
  2021. }
  2022. // swagger:model CheckTokenResp
  2023. type CheckTokenResp struct {
  2024. // 是否合法
  2025. Valid *bool `json:"valid"`
  2026. // Sign 签名内容
  2027. Sign *string `json:"sign"`
  2028. // Timestamp 时间戳
  2029. Timestamp *int64 `json:"timestamp"`
  2030. AgentInfo *AgentInfo `json:"agent_info"`
  2031. CustomAgentBase *string `json:"custom_agent_base"`
  2032. CustomAgentKey *string `json:"custom_agent_key"`
  2033. OpenaiBase *string `json:"openai_base"`
  2034. OpenaiKey *string `json:"openai_key"`
  2035. DatasetBase *string `json:"dataset_base"`
  2036. DatasetKey *string `json:"dataset_key"`
  2037. }
  2038. // The data of category information | Category信息
  2039. // swagger:model CategoryInfo
  2040. type CategoryInfo struct {
  2041. BaseIDInfo
  2042. // name | 角色名称
  2043. Name *string `json:"name,optional"`
  2044. // organization_id | 租户ID
  2045. OrganizationId *uint64 `json:"organizationId,optional"`
  2046. }
  2047. // The response data of category list | Category列表数据
  2048. // swagger:model CategoryListResp
  2049. type CategoryListResp struct {
  2050. BaseDataInfo
  2051. // Category list data | Category列表数据
  2052. Data CategoryListInfo `json:"data"`
  2053. }
  2054. // Category list data | Category列表数据
  2055. // swagger:model CategoryListInfo
  2056. type CategoryListInfo struct {
  2057. BaseListInfo
  2058. // The API list data | Category列表数据
  2059. Data []CategoryInfo `json:"data"`
  2060. }
  2061. // Get category list request params | Category列表请求参数
  2062. // swagger:model CategoryListReq
  2063. type CategoryListReq struct {
  2064. PageInfo
  2065. // name | 角色名称
  2066. Name *string `json:"name,optional"`
  2067. }
  2068. // Category information response | Category信息返回体
  2069. // swagger:model CategoryInfoResp
  2070. type CategoryInfoResp struct {
  2071. BaseDataInfo
  2072. // Category information | Category数据
  2073. Data CategoryInfo `json:"data"`
  2074. }
  2075. // The data of agent base information | AgentBase信息
  2076. // swagger:model AgentBaseInfo
  2077. type AgentBaseInfo struct {
  2078. Id *string `json:"id,optional"`
  2079. }
  2080. // The response data of agent base list | AgentBase列表数据
  2081. // swagger:model AgentBaseListResp
  2082. type AgentBaseListResp struct {
  2083. BaseDataInfo
  2084. // AgentBase list data | AgentBase列表数据
  2085. Data AgentBaseListInfo `json:"data"`
  2086. }
  2087. // AgentBase list data | AgentBase列表数据
  2088. // swagger:model AgentBaseListInfo
  2089. type AgentBaseListInfo struct {
  2090. BaseListInfo
  2091. // The API list data | AgentBase列表数据
  2092. Data []AgentBaseInfo `json:"data"`
  2093. }
  2094. // Get agent base list request params | AgentBase列表请求参数
  2095. // swagger:model AgentBaseListReq
  2096. type AgentBaseListReq struct {
  2097. PageInfo
  2098. // q
  2099. Q *string `json:"q,optional"`
  2100. // a
  2101. A *string `json:"a,optional"`
  2102. // dataset_id
  2103. DatasetId *string `json:"datasetId,optional"`
  2104. }
  2105. // AgentBase information response | AgentBase信息返回体
  2106. // swagger:model AgentBaseInfoResp
  2107. type AgentBaseInfoResp struct {
  2108. BaseDataInfo
  2109. // AgentBase information | AgentBase数据
  2110. Data AgentBaseInfo `json:"data"`
  2111. }
  2112. // The data of chat records information | ChatRecords信息
  2113. // swagger:model ChatRecordsInfo
  2114. type ChatRecordsInfo struct {
  2115. BaseIDInfo
  2116. // 内容
  2117. Content *string `json:"content,optional"`
  2118. // 内容类型:1-提问 2-回答
  2119. ContentType *uint8 `json:"contentType,optional"`
  2120. // 角色类型:1-用户 2-智能体
  2121. RoleType *string `json:"roleType,optional"`
  2122. // 会话ID
  2123. SessionId *uint64 `json:"sessionId,optional"`
  2124. // 用户ID
  2125. UserId *uint64 `json:"userId,optional"`
  2126. // 聊天ID
  2127. BotId *uint64 `json:"botId,optional"`
  2128. // 类型:1-微信 2-小程序card 3-智能体
  2129. BotType *uint8 `json:"botType,optional,options=1|2|3"`
  2130. Finish bool `json:"finish,optional"`
  2131. }
  2132. // The response data of chat records list | ChatRecords列表数据
  2133. // swagger:model ChatRecordsListResp
  2134. type ChatRecordsListResp struct {
  2135. BaseDataInfo
  2136. // ChatRecords list data | ChatRecords列表数据
  2137. Data ChatRecordsListInfo `json:"data"`
  2138. }
  2139. // ChatRecords list data | ChatRecords列表数据
  2140. // swagger:model ChatRecordsListInfo
  2141. type ChatRecordsListInfo struct {
  2142. BaseListInfo
  2143. // The API list data | ChatRecords列表数据
  2144. Data []ChatRecordsInfo `json:"data"`
  2145. }
  2146. // Get chat records list request params | ChatRecords列表请求参数
  2147. // swagger:model ChatRecordsListReq
  2148. type ChatRecordsListReq struct {
  2149. PageInfo
  2150. SessionId *uint64 `json:"sessionId"`
  2151. BotId *uint64 `json:"botId,optional"`
  2152. BotType *uint8 `json:"botType,optional"`
  2153. }
  2154. // ChatRecords information response | ChatRecords信息返回体
  2155. // swagger:model ChatRecordsInfoResp
  2156. type ChatRecordsInfoResp struct {
  2157. BaseDataInfo
  2158. // ChatRecords information | ChatRecords数据
  2159. Data ChatRecordsInfo `json:"data"`
  2160. }
  2161. // swagger:model ChatRecommendReq
  2162. type ChatRecommendReq struct {
  2163. SessionId *uint64 `json:"sessionId"`
  2164. }
  2165. // swagger:model ChatRecommendResp
  2166. type ChatRecommendResp struct {
  2167. BaseDataInfo
  2168. // The API list data | ChatRecords列表数据
  2169. Data ChatRecommend `json:"data"`
  2170. }
  2171. type ChatRecommend struct {
  2172. Data []string `json:"data"`
  2173. SessionId uint64 `json:"sessionId"`
  2174. }
  2175. // swagger:model ChatAskReq
  2176. type ChatAskReq struct {
  2177. CardId *uint64 `json:"cardId"`
  2178. Question *string `json:"question"`
  2179. SessionId *int `json:"sessionId"`
  2180. }
  2181. // swagger:model ChatAskResp
  2182. type ChatAskResp struct {
  2183. BaseDataInfo
  2184. Data *string `json:"data"`
  2185. }
  2186. // swagger:model GptChatReq
  2187. type GptChatReq struct {
  2188. ConversationId *string `json:"conversationId,optional"`
  2189. Content *string `json:"content"`
  2190. AgentId *uint64 `json:"agentId"`
  2191. }
  2192. // swagger:model GptMessageReq
  2193. type GptMessageReq struct {
  2194. ConversationId *string `json:"conversationId,optional"`
  2195. FirstId *string `json:"firstId,optional"`
  2196. Limit *int `json:"limit"`
  2197. }
  2198. // swagger:model GptMessageResp
  2199. type GptMessageResp struct {
  2200. BaseDataInfo
  2201. Data GptMessageList `json:"data"`
  2202. }
  2203. type GptMessageList struct {
  2204. HasMore bool `json:"hasMore"`
  2205. Data []Message `json:"data"`
  2206. }
  2207. type Message struct {
  2208. Id *string `json:"id"`
  2209. ConversationId *string `json:"conversationId,optional"`
  2210. Query *string `json:"query"`
  2211. Answer *string `json:"answer"`
  2212. Inputs interface{} `json:"inputs"`
  2213. CreatedAt *int `json:"createdAt"`
  2214. }
  2215. // swagger:model GptsSessionReq
  2216. type GptsSessionReq struct {
  2217. Limit *int `json:"limit"`
  2218. LastId *string `json:"lastId,optional"`
  2219. }
  2220. // swagger:model GptsSessionResp
  2221. type GptsSessionResp struct {
  2222. BaseDataInfo
  2223. Data GptsSessionList `json:"data"`
  2224. }
  2225. type GptsSessionList struct {
  2226. HasMore bool `json:"hasMore"`
  2227. Data []Session `json:"data"`
  2228. }
  2229. type Session struct {
  2230. Id *string `json:"id"`
  2231. Name *string `json:"name"`
  2232. CreatedAt *int `json:"createdAt"`
  2233. Inputs interface{} `json:"inputs"`
  2234. }
  2235. // The data of chat session information | ChatSession信息
  2236. // swagger:model ChatSessionInfo
  2237. type ChatSessionInfo struct {
  2238. BaseIDInfo
  2239. // 名称
  2240. Name *string `json:"name,optional"`
  2241. // 用户ID
  2242. UserId *uint64 `json:"userId,optional"`
  2243. UserName *string `json:"userName,optional"`
  2244. // 聊天ID
  2245. BotId *uint64 `json:"botId,optional"`
  2246. // 主体名称
  2247. BotName *string `json:"botName,optional"`
  2248. // 类型:1-微信 2-小程序card 3-智能体
  2249. BotType *uint8 `json:"botType,optional"`
  2250. // 类型:1-微信 2-小程序card 3-智能体
  2251. BotTypeStr *string `json:"botTypeStr,optional"`
  2252. }
  2253. // The response data of chat session list | ChatSession列表数据
  2254. // swagger:model ChatSessionListResp
  2255. type ChatSessionListResp struct {
  2256. BaseDataInfo
  2257. // ChatSession list data | ChatSession列表数据
  2258. Data ChatSessionListInfo `json:"data"`
  2259. }
  2260. // ChatSession list data | ChatSession列表数据
  2261. // swagger:model ChatSessionListInfo
  2262. type ChatSessionListInfo struct {
  2263. BaseListInfo
  2264. // The API list data | ChatSession列表数据
  2265. Data []ChatSessionInfo `json:"data"`
  2266. }
  2267. // Get chat session list request params | ChatSession列表请求参数
  2268. // swagger:model ChatSessionListReq
  2269. type ChatSessionListReq struct {
  2270. PageInfo
  2271. BotId *uint64 `json:"botId,optional"`
  2272. BotType *uint8 `json:"botType,optional"`
  2273. BotName *string `json:"botName,optional"`
  2274. }
  2275. // ChatSession information response | ChatSession信息返回体
  2276. // swagger:model ChatSessionInfoResp
  2277. type ChatSessionInfoResp struct {
  2278. BaseDataInfo
  2279. // ChatSession information | ChatSession数据
  2280. Data ChatSessionInfo `json:"data"`
  2281. }
  2282. // The data of wx card information | WxCard信息
  2283. // swagger:model WxCardInfo
  2284. type WxCardInfo struct {
  2285. BaseIDInfo
  2286. // user表ID
  2287. UserId *uint64 `json:"userId,optional"`
  2288. // wx表ID
  2289. WxUserId *uint64 `json:"wxUserId,optional"`
  2290. // 头像
  2291. Avatar *string `json:"avatar,optional"`
  2292. // logo
  2293. Logo *string `json:"logo,optional"`
  2294. // 名称
  2295. Name *string `json:"name,optional"`
  2296. // 公司
  2297. Company *string `json:"company,optional"`
  2298. // 地址
  2299. Address *string `json:"address,optional"`
  2300. // 手机号
  2301. Phone *string `json:"phone,optional"`
  2302. // 公众号
  2303. OfficialAccount *string `json:"officialAccount,optional"`
  2304. // 微信号
  2305. WechatAccount *string `json:"wechatAccount,optional"`
  2306. // 邮箱
  2307. Email *string `json:"email,optional"`
  2308. // 聊天信息
  2309. ApiBase *string `json:"apiBase,optional"`
  2310. ApiKey *string `json:"apiKey,optional"`
  2311. // AI信息
  2312. AiInfo *string `json:"aiInfo,optional"`
  2313. // 个人介绍
  2314. Intro *string `json:"intro,optional"`
  2315. ShowChat *bool `json:"showChat,optional"`
  2316. ShowAi *bool `json:"showAi,optional"`
  2317. IsVip *bool `json:"isVip,optional"`
  2318. }
  2319. // swagger:model WxCardSimpleInfo
  2320. type WxCardSimpleInfo struct {
  2321. ID *uint64 `json:"id,optional"`
  2322. // 头像
  2323. Avatar *string `json:"avatar,optional"`
  2324. // 名称
  2325. Name *string `json:"name,optional"`
  2326. Type *string `json:"type,optional"`
  2327. }
  2328. // The response data of wx card list | WxCard列表数据
  2329. // swagger:model WxCardListResp
  2330. type WxCardListResp struct {
  2331. BaseDataInfo
  2332. // WxCard list data | WxCard列表数据
  2333. Data WxCardListInfo `json:"data"`
  2334. }
  2335. // WxCard list data | WxCard列表数据
  2336. // swagger:model WxCardListInfo
  2337. type WxCardListInfo struct {
  2338. BaseListInfo
  2339. // The API list data | WxCard列表数据
  2340. Data []WxCardInfo `json:"data"`
  2341. }
  2342. // Get wx card list request params | WxCard列表请求参数
  2343. // swagger:model WxCardListReq
  2344. type WxCardListReq struct {
  2345. PageInfo
  2346. // 头像
  2347. Avatar *string `json:"avatar,optional"`
  2348. // logo
  2349. Logo *string `json:"logo,optional"`
  2350. // 名称
  2351. Name *string `json:"name,optional"`
  2352. }
  2353. // WxCard information response | WxCard信息返回体
  2354. // swagger:model WxCardInfoResp
  2355. type WxCardInfoResp struct {
  2356. BaseDataInfo
  2357. // WxCard information | WxCard数据
  2358. Data WxCardInfo `json:"data"`
  2359. }
  2360. // swagger:model QrcodeReq
  2361. type QrcodeReq struct {
  2362. Path string `form:"path"`
  2363. Width int64 `form:"width"`
  2364. EnvVersion string `form:"envVersion"`
  2365. }
  2366. // The data of wx card user information | WxCardUser信息
  2367. // swagger:model WxCardUserInfo
  2368. type WxCardUserInfo struct {
  2369. BaseIDInfo
  2370. // 微信id
  2371. Wxid *string `json:"wxid,optional"`
  2372. // 微信号
  2373. Account *string `json:"account,optional"`
  2374. // 头像
  2375. Avatar *string `json:"avatar,optional"`
  2376. // 昵称
  2377. Nickname *string `json:"nickname,optional"`
  2378. // 备注名
  2379. Remark *string `json:"remark,optional"`
  2380. // 手机号
  2381. Phone *string `json:"phone,optional"`
  2382. // OpenID
  2383. OpenId *string `json:"openId,optional"`
  2384. // UnionID
  2385. UnionId *string `json:"unionId,optional"`
  2386. // SessionKey
  2387. SessionKey *string `json:"sessionKey,optional"`
  2388. // IsVip
  2389. IsVip *string `json:"isVip,optional"`
  2390. }
  2391. // The response data of wx card user list | WxCardUser列表数据
  2392. // swagger:model WxCardUserListResp
  2393. type WxCardUserListResp struct {
  2394. BaseDataInfo
  2395. // WxCardUser list data | WxCardUser列表数据
  2396. Data WxCardUserListInfo `json:"data"`
  2397. }
  2398. // WxCardUser list data | WxCardUser列表数据
  2399. // swagger:model WxCardUserListInfo
  2400. type WxCardUserListInfo struct {
  2401. BaseListInfo
  2402. // The API list data | WxCardUser列表数据
  2403. Data []WxCardUserInfo `json:"data"`
  2404. }
  2405. // Get wx card user list request params | WxCardUser列表请求参数
  2406. // swagger:model WxCardUserListReq
  2407. type WxCardUserListReq struct {
  2408. PageInfo
  2409. // 微信id
  2410. Wxid *string `json:"wxid,optional"`
  2411. // 微信号
  2412. Account *string `json:"account,optional"`
  2413. // 头像
  2414. Avatar *string `json:"avatar,optional"`
  2415. // 昵称
  2416. Nickname *string `json:"nickname,optional"`
  2417. }
  2418. // WxCardUser information response | WxCardUser信息返回体
  2419. // swagger:model WxCardUserInfoResp
  2420. type WxCardUserInfoResp struct {
  2421. BaseDataInfo
  2422. // WxCardUser information | WxCardUser数据
  2423. Data WxCardUserInfo `json:"data"`
  2424. }
  2425. // The data of wx card visit information | WxCardVisit信息
  2426. // swagger:model WxCardVisitInfo
  2427. type WxCardVisitInfo struct {
  2428. BaseIDInfo
  2429. // user表ID
  2430. UserId *uint64 `json:"userId,optional"`
  2431. // user名
  2432. UserName *string `json:"userName,optional"`
  2433. // 被访ID
  2434. BotId *uint64 `json:"botId,optional"`
  2435. // 类型:1-微信 2-小程序 3-智能体
  2436. BotType *uint8 `json:"botType,optional"`
  2437. // 类型:1-微信 2-小程序 3-智能体
  2438. BotTypeStr *string `json:"botTypeStr,optional"`
  2439. CardInfo WxCardSimpleInfo `json:"cardInfo,optional,omitempty"`
  2440. }
  2441. // swagger:model WxCardVisitReq
  2442. type WxCardVisitReq struct {
  2443. BaseIDInfo
  2444. // user表ID
  2445. UserId *uint64 `json:"userId,optional"`
  2446. // 被访ID
  2447. BotId *uint64 `json:"botId,optional"`
  2448. // 类型:1-微信 2-小程序 3-智能体
  2449. BotType *uint8 `json:"botType,optional"`
  2450. }
  2451. // swagger:model WxCardVisitSingleInfo
  2452. type WxCardVisitSingleInfo struct {
  2453. BaseIDInfo
  2454. // user表ID
  2455. UserId *uint64 `json:"userId,optional"`
  2456. // 被访ID
  2457. BotId *uint64 `json:"botId,optional"`
  2458. // 类型:1-微信 2-小程序 3-智能体
  2459. BotType *uint8 `json:"botType,optional"`
  2460. CardInfo WxCardInfo `json:"cardInfo,optional"`
  2461. }
  2462. // The response data of wx card visit list | WxCardVisit列表数据
  2463. // swagger:model WxCardVisitListResp
  2464. type WxCardVisitListResp struct {
  2465. BaseDataInfo
  2466. // WxCardVisit list data | WxCardVisit列表数据
  2467. Data WxCardVisitListInfo `json:"data"`
  2468. }
  2469. // WxCardVisit list data | WxCardVisit列表数据
  2470. // swagger:model WxCardVisitListInfo
  2471. type WxCardVisitListInfo struct {
  2472. BaseListInfo
  2473. // The API list data | WxCardVisit列表数据
  2474. Data []WxCardVisitInfo `json:"data"`
  2475. }
  2476. // Get wx card visit list request params | WxCardVisit列表请求参数
  2477. // swagger:model WxCardVisitListReq
  2478. type WxCardVisitListReq struct {
  2479. PageInfo
  2480. BotId *uint64 `json:"botId,optional"`
  2481. BotType *uint8 `json:"botType,optional"`
  2482. BotName *string `json:"botName,optional"`
  2483. }
  2484. // WxCardVisit information response | WxCardVisit信息返回体
  2485. // swagger:model WxCardVisitInfoResp
  2486. type WxCardVisitInfoResp struct {
  2487. BaseDataInfo
  2488. // WxCardVisit information | WxCardVisit数据
  2489. Data WxCardVisitInfo `json:"data"`
  2490. }
  2491. // swagger:model AvatarInfo
  2492. type AvatarInfo struct {
  2493. RequestId *string `json:"requestId"`
  2494. SessionId *string `json:"SessionId"`
  2495. Token *string `json:"token"`
  2496. Channel Channel `json:"channel"`
  2497. }
  2498. type Channel struct {
  2499. ChannelId *string `json:"channelId"`
  2500. Token *string `json:"token"`
  2501. Type *string `json:"type"`
  2502. ExpiredTime *string `json:"expiredTime"`
  2503. Nonce *string `json:"nonce"`
  2504. UserId *string `json:"userId"`
  2505. AppId *string `json:"appId"`
  2506. UserInfoInChannel *string `json:"userInfoInChannel"`
  2507. Gslb []*string `json:"gslb"`
  2508. }
  2509. // start avatar request | 启动数字人
  2510. // swagger:model AvatarConfigReq
  2511. type AvatarConfigReq struct {
  2512. // 名片 ID
  2513. CardId *uint64 `json:"card_id,optional"`
  2514. }
  2515. // start avatar response | 启动数字人
  2516. // swagger:model AvatarConfigResp
  2517. type AvatarConfigResp struct {
  2518. BaseDataInfo
  2519. // Agent information | Agent数据
  2520. Data AvatarInfo `json:"data"`
  2521. Extra Extra `json:"extra"`
  2522. }
  2523. type Extra struct {
  2524. Live int64 `json:"live"`
  2525. Total int64 `json:"total"`
  2526. }
  2527. // swagger:model AvatarStsResp
  2528. type AvatarStsResp struct {
  2529. BaseDataInfo
  2530. // Sts information | Sts 数据
  2531. Data StsInfo `json:"data"`
  2532. }
  2533. // swagger:model StsInfo
  2534. type StsInfo struct {
  2535. Expiration *string `json:"expiration"`
  2536. AccessKeyId *string `json:"accessKeyId"`
  2537. AccessKeySecret *string `json:"accessKeySecret"`
  2538. SecurityToken *string `json:"securityToken"`
  2539. RequestId *string `json:"requestId"`
  2540. }
  2541. // swagger:model AvatarSignatureResp
  2542. type AvatarSignatureResp struct {
  2543. BaseDataInfo
  2544. // Sts information | Sts 数据
  2545. Data SignatureInfo `json:"data"`
  2546. }
  2547. // swagger:model SignatureInfo
  2548. type SignatureInfo struct {
  2549. Key *string `json:"key"`
  2550. OSSAccessKeyId *string `json:"OSSAccessKeyId"`
  2551. Policy *string `json:"policy"`
  2552. Signature *string `json:"signature"`
  2553. }
  2554. // send text | 数字人-发送消息
  2555. // swagger:model SendTextReq
  2556. type SendTextReq struct {
  2557. CardId *uint64 `json:"cardId"`
  2558. SessionId *string `json:"sessionId"`
  2559. Text *string `json:"text"`
  2560. IsStream *bool `json:"isStream,optional"`
  2561. Index *int32 `json:"index,optional"`
  2562. Position *string `json:"position,optional"`
  2563. }
  2564. // swagger:model SendTextResp
  2565. type SendTextResp struct {
  2566. BaseDataInfo
  2567. Data SendText `json:"data"`
  2568. }
  2569. type SendText struct {
  2570. SessionId *string `json:"sessionId"`
  2571. UniqueCode *string `json:"uniqueCode"`
  2572. }
  2573. // stop instance | 数字人-停止实例
  2574. // swagger:model StopInstanceReq
  2575. type StopInstanceReq struct {
  2576. CardId *uint64 `json:"cardId"`
  2577. SessionId *string `json:"sessionId"`
  2578. }
  2579. // swagger:model StopInstanceResp
  2580. type StopInstanceResp struct {
  2581. BaseDataInfo
  2582. Data StopInstance `json:"data"`
  2583. }
  2584. type StopInstance struct {
  2585. SessionId *string `json:"sessionId"`
  2586. RequestId *string `json:"requestId"`
  2587. }
  2588. // The data of aliyun avatar information | AliyunAvatar信息
  2589. // swagger:model AliyunAvatarInfo
  2590. type AliyunAvatarInfo struct {
  2591. BaseIDInfo
  2592. // user_id | wx_card_user_id
  2593. UserId *uint64 `json:"userId,optional"`
  2594. // biz_id | BizId
  2595. BizId *string `json:"bizId,optional"`
  2596. // access_key_id | AccessKeyId
  2597. AccessKeyId *string `json:"accessKeyId,optional"`
  2598. // access_key_secret | AccessKeySecret
  2599. AccessKeySecret *string `json:"accessKeySecret,optional"`
  2600. // app_id | AppId
  2601. AppId *string `json:"appId,optional"`
  2602. // tenant_id | TenantId
  2603. TenantId *uint64 `json:"TenantId,optional"`
  2604. // response | 阿里云avatar响应
  2605. Response *string `json:"response,optional"`
  2606. // token | Token
  2607. Token *string `json:"token,optional"`
  2608. // session_id | SessionId
  2609. SessionId *string `json:"sessionId,optional"`
  2610. }
  2611. // The response data of aliyun avatar list | AliyunAvatar列表数据
  2612. // swagger:model AliyunAvatarListResp
  2613. type AliyunAvatarListResp struct {
  2614. BaseDataInfo
  2615. // AliyunAvatar list data | AliyunAvatar列表数据
  2616. Data AliyunAvatarListInfo `json:"data"`
  2617. }
  2618. // AliyunAvatar list data | AliyunAvatar列表数据
  2619. // swagger:model AliyunAvatarListInfo
  2620. type AliyunAvatarListInfo struct {
  2621. BaseListInfo
  2622. // The API list data | AliyunAvatar列表数据
  2623. Data []AliyunAvatarInfo `json:"data"`
  2624. }
  2625. // Get aliyun avatar list request params | AliyunAvatar列表请求参数
  2626. // swagger:model AliyunAvatarListReq
  2627. type AliyunAvatarListReq struct {
  2628. PageInfo
  2629. // biz_id | BizId
  2630. BizId *string `json:"bizId,optional"`
  2631. // access_key_id | AccessKeyId
  2632. AccessKeyId *string `json:"accessKeyId,optional"`
  2633. // access_key_secret | AccessKeySecret
  2634. AccessKeySecret *string `json:"accessKeySecret,optional"`
  2635. }
  2636. // AliyunAvatar information response | AliyunAvatar信息返回体
  2637. // swagger:model AliyunAvatarInfoResp
  2638. type AliyunAvatarInfoResp struct {
  2639. BaseDataInfo
  2640. // AliyunAvatar information | AliyunAvatar数据
  2641. Data AliyunAvatarInfo `json:"data"`
  2642. }
  2643. // The response data of UsageDetail information | UsageDetail信息
  2644. // swagger:model UsageDetailInfo
  2645. type UsageDetailInfo struct {
  2646. BaseIDInfo
  2647. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  2648. Status *uint8 `json:"status,optional"`
  2649. // 1 微信 2 名片
  2650. Type *int
  2651. // 微信id
  2652. BotId *string `json:"botId,optional"`
  2653. // 微信id或open_id
  2654. ReceiverId *string `json:"receiverId,optional"`
  2655. // 1 cow-basic 2 cow-agent 3 cow-sop 4 mp-card 5 mp-employee
  2656. App *string
  2657. // 名片会话id
  2658. SessionId *uint64 `json:"sessionId,optional"`
  2659. // 请求内容
  2660. Request *string `json:"request,optional"`
  2661. // 响应内容
  2662. Response *string `json:"response,optional"`
  2663. // 使用token总数
  2664. TotalTokens *uint64 `json:"totalTokens,optional"`
  2665. // 请求token数
  2666. PromptTokens *uint64 `json:"promptTokens,optional"`
  2667. // 响应token数
  2668. CompletionTokens *uint64 `json:"completionTokens,optional"`
  2669. // 组织ID
  2670. OrganizationId *uint64 `json:"organizationId,optional"`
  2671. }
  2672. // The response data of UsageDetail list | UsageDetail列表数据
  2673. // swagger:model UsageDetailListResp
  2674. type UsageDetailListResp struct {
  2675. BaseDataInfo
  2676. // UsageDetail list data | UsageDetail列表数据
  2677. Data UsageDetailListInfo `json:"data"`
  2678. }
  2679. // UsageDetail list data | UsageDetail列表数据
  2680. // swagger:model UsageDetailListInfo
  2681. type UsageDetailListInfo struct {
  2682. BaseListInfo
  2683. // The API list data | UsageDetail列表数据
  2684. Data []UsageDetailInfo `json:"data"`
  2685. }
  2686. // Get wx list request params | Wx列表请求参数
  2687. // swagger:model UsageDetailListReq
  2688. type UsageDetailListReq struct {
  2689. PageInfo
  2690. // 租户id
  2691. BotId *string `json:"botId,optional"`
  2692. }
  2693. // The response data of UsageTotal information | UsageTotal信息
  2694. // swagger:model UsageTotalInfo
  2695. type UsageTotalInfo struct {
  2696. BaseIDInfo
  2697. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  2698. Status *uint8 `json:"status,optional"`
  2699. // 1 微信 2 名片
  2700. Type *int
  2701. // 微信或名片id
  2702. BotId *string `json:"botId,optional"`
  2703. // 使用token总数
  2704. TotalTokens *uint64 `json:"totalTokens,optional"`
  2705. // 重制后的起始usage_detail 索引
  2706. StartIndex *uint64 `json:"startIndex,optional"`
  2707. // usage_detail 索引
  2708. EndIndex *uint64 `json:"endIndex,optional"`
  2709. // 组织ID
  2710. OrganizationId *uint64 `json:"organizationId,optional"`
  2711. }
  2712. // The response data of UsageTotal list | UsageTotal列表数据
  2713. // swagger:model UsageTotalListResp
  2714. type UsageTotalListResp struct {
  2715. BaseDataInfo
  2716. // UsageTotal list data | UsageTotal列表数据
  2717. Data UsageTotalListInfo `json:"data"`
  2718. }
  2719. // UsageTotal list data | UsageTotal列表数据
  2720. // swagger:model UsageTotalListInfo
  2721. type UsageTotalListInfo struct {
  2722. BaseListInfo
  2723. // The API list data | UsageTotal列表数据
  2724. Data []UsageTotalInfo `json:"data"`
  2725. }
  2726. // Get wx list request params | Wx列表请求参数
  2727. // swagger:model UsageTotalListReq
  2728. type UsageTotalListReq struct {
  2729. PageInfo
  2730. // 租户id
  2731. OrganizationId *uint64 `json:"organizationId,optional"`
  2732. }
  2733. // The data of alloc agent information | AllocAgent信息
  2734. // swagger:model AllocAgentInfo
  2735. type AllocAgentInfo struct {
  2736. BaseIDInfo
  2737. // user_id | 前台用户ID
  2738. UserId *string `json:"userId,optional"`
  2739. // organization_id | 租户ID
  2740. OrganizationId *uint64 `json:"organizationId,optional"`
  2741. // agents | 分配的智能体IDs
  2742. Agents []uint64 `json:"agents,optional"`
  2743. // status | 状态 1-正常 2-禁用
  2744. Status *int `json:"status,optional"`
  2745. }
  2746. type AllocAgentQuery struct {
  2747. // user_id | 前台用户ID
  2748. UserId *string `json:"userId,optional"`
  2749. // organization_id | 租户ID
  2750. OrganizationId *uint64 `json:"organizationId,optional"`
  2751. }
  2752. // The response data of alloc agent list | AllocAgent列表数据
  2753. // swagger:model AllocAgentListResp
  2754. type AllocAgentListResp struct {
  2755. BaseDataInfo
  2756. // AllocAgent list data | AllocAgent列表数据
  2757. Data AllocAgentListInfo `json:"data"`
  2758. }
  2759. // AllocAgent list data | AllocAgent列表数据
  2760. // swagger:model AllocAgentListInfo
  2761. type AllocAgentListInfo struct {
  2762. BaseListInfo
  2763. // The API list data | AllocAgent列表数据
  2764. Data []AllocAgentInfo `json:"data"`
  2765. }
  2766. // Get alloc agent list request params | AllocAgent列表请求参数
  2767. // swagger:model AllocAgentListReq
  2768. type AllocAgentListReq struct {
  2769. PageInfo
  2770. // agents | 分配的智能体IDs
  2771. Agents *string `json:"agents,optional"`
  2772. }
  2773. // AllocAgent information response | AllocAgent信息返回体
  2774. // swagger:model AllocAgentInfoResp
  2775. type AllocAgentInfoResp struct {
  2776. BaseDataInfo
  2777. // AllocAgent information | AllocAgent数据
  2778. Data AllocAgentInfo `json:"data"`
  2779. }
  2780. // swagger:model SignatureResp
  2781. type SignatureResp struct {
  2782. BaseDataInfo
  2783. // 临时签名
  2784. Data *string `json:"data"`
  2785. }
  2786. // swagger:model MessageReq
  2787. type MessageReq struct {
  2788. // 大模型生成内容
  2789. UserId *uint64 `json:"user_id"`
  2790. Text *string `json:"text"`
  2791. }
  2792. // swagger:model DashboardInfo
  2793. type DashboardInfo struct {
  2794. BaseIDInfo
  2795. }
  2796. // swagger:model ChartsReq
  2797. type ChartsReq struct {
  2798. StartDate *string `json:"start_date"`
  2799. EndDate *string `json:"end_date"`
  2800. // 租户id
  2801. OrganizationId *uint64 `json:"organizationId,optional"`
  2802. }
  2803. // swagger:model ChartsResp
  2804. type ChartsResp struct {
  2805. BaseDataInfo
  2806. Data *ChartsData `json:"data"`
  2807. }
  2808. type ChartsData struct {
  2809. AiResponse *ChartsUint `json:"ai_response"`
  2810. SopRun *ChartsUint `json:"sop_run"`
  2811. TotalFriend *ChartsUint `json:"total_friend"`
  2812. TotalGroup *ChartsUint `json:"total_group"`
  2813. AccountBalance *ChartsUint `json:"account_balance"`
  2814. ConsumeToken *ChartsUint `json:"consume_token"`
  2815. ActiveUser *ChartsUint `json:"active_user"`
  2816. NewUser *ChartsInt `json:"new_user"`
  2817. LabelDist []LabelsData `json:"label_dist"`
  2818. }
  2819. type ChartsUint struct {
  2820. Count uint64 `json:"count"`
  2821. Rate float32 `json:"rate"`
  2822. Label []string `json:"label"`
  2823. Val []uint64 `json:"val"`
  2824. }
  2825. type ChartsInt struct {
  2826. Count int64 `json:"count"`
  2827. Rate float32 `json:"rate"`
  2828. Label []string `json:"label"`
  2829. Val []int64 `json:"val"`
  2830. }
  2831. type LabelsData struct {
  2832. Value uint64 `json:"value"`
  2833. Name string `json:"name"`
  2834. }
  2835. // swagger:model WxReq
  2836. type WxReq struct {
  2837. PageInfo
  2838. EndDate *string `json:"end_date"`
  2839. // 租户id
  2840. OrganizationId *uint64 `json:"organizationId,optional"`
  2841. }
  2842. // swagger:model WxResp
  2843. type WxResp struct {
  2844. BaseDataInfo
  2845. Data WxList `json:"data"`
  2846. }
  2847. type WxList struct {
  2848. BaseListInfo
  2849. Data []WxData `json:"data"`
  2850. }
  2851. type WxData struct {
  2852. Nickname string `json:"nickname"`
  2853. TotalFriend uint64 `json:"total_friend"`
  2854. TotalGroup uint64 `json:"total_group"`
  2855. InteractionRate float32 `json:"interaction_rate"`
  2856. }