types.go 95 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397
  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. // Get wx list request params | Wx列表请求参数
  354. // swagger:model WxSelectListReq
  355. type WxSelectListReq struct {
  356. // 租户id
  357. OrganizationId *uint64 `json:"organizationId,optional"`
  358. }
  359. // The response data of wx list | Wx列表数据
  360. // swagger:model WxSelectListResp
  361. type WxSelectListResp struct {
  362. BaseDataInfo
  363. // Wx list data | Wx列表数据
  364. Data []WxSelectListInfo `json:"data"`
  365. }
  366. // swagger:model WxSelectListInfo
  367. type WxSelectListInfo struct {
  368. BaseIDInfo
  369. // 微信id
  370. Wxid *string `json:"wxid,optional"`
  371. // 微信昵称
  372. Nickname *string `json:"nickname,optional"`
  373. }
  374. // Wx information response | Wx信息返回体
  375. // swagger:model WxInfoResp
  376. type WxInfoResp struct {
  377. BaseDataInfo
  378. // Wx information | Wx数据
  379. Data WxInfo `json:"data"`
  380. }
  381. // 获取黑白名单列表返回体
  382. // swagger:model AllowBlockListResp
  383. type AllowBlockListResp struct {
  384. BaseDataInfo
  385. // Wx information | Wx数据
  386. Data AllowBlockListRespData `json:"data"`
  387. }
  388. // AllowBlockListRespData
  389. type AllowBlockListRespData struct {
  390. // 白名单
  391. AllowList []*AllowBlockData `json:"allowList,optional"`
  392. // 群白名单
  393. GroupAllowList []*AllowBlockData `json:"groupAllowList,optional"`
  394. // 黑名单
  395. BlockList []*AllowBlockData `json:"blockList,optional"`
  396. // 群黑名单
  397. GroupBlockList []*AllowBlockData `json:"groupBlockList,optional"`
  398. }
  399. // AllowBlockData
  400. type AllowBlockData struct {
  401. // 微信id 公众号微信ID
  402. Wxid string `json:"wxid,optional"`
  403. // 微信昵称 群备注名称
  404. Nickname string `json:"nickname,optional"`
  405. }
  406. // The data of agent information | Agent信息
  407. // swagger:model AgentInfo
  408. type AgentInfo struct {
  409. BaseIDInfo
  410. // name | 角色名称
  411. Name *string `json:"name,optional"`
  412. // role | 角色设定
  413. Role *string `json:"role,optional"`
  414. // status | 状态 1-正常 2-禁用
  415. Status *int `json:"status,optional"`
  416. // background | 背景介绍
  417. Background *string `json:"background,optional"`
  418. // examples | 对话案例
  419. Examples *string `json:"examples,optional"`
  420. DatasetId *string `json:"dataset_id,optional"`
  421. CollectionId *string `json:"collection_id,optional"`
  422. }
  423. // The response data of agent list | Agent列表数据
  424. // swagger:model AgentListResp
  425. type AgentListResp struct {
  426. BaseDataInfo
  427. // Agent list data | Agent列表数据
  428. Data AgentListInfo `json:"data"`
  429. }
  430. // Agent list data | Agent列表数据
  431. // swagger:model AgentListInfo
  432. type AgentListInfo struct {
  433. BaseListInfo
  434. // The API list data | Agent列表数据
  435. Data []AgentInfo `json:"data"`
  436. }
  437. // Get agent list request params | Agent列表请求参数
  438. // swagger:model AgentListReq
  439. type AgentListReq struct {
  440. PageInfo
  441. // name | 角色名称
  442. Name *string `json:"name,optional"`
  443. // role | 角色设定
  444. Role *string `json:"role,optional"`
  445. // background | 背景介绍
  446. Background *string `json:"background,optional"`
  447. // status | 状态 1-可用 2-不可用
  448. Status *int `json:"status,optional"`
  449. // 租户id
  450. OrganizationId *uint64 `json:"organizationId,optional"`
  451. }
  452. // Agent information response | Agent信息返回体
  453. // swagger:model AgentInfoResp
  454. type AgentInfoResp struct {
  455. BaseDataInfo
  456. // Agent information | Agent数据
  457. Data AgentInfo `json:"data"`
  458. }
  459. type VectorModel struct {
  460. Model *string `json:"model"`
  461. Name *string `json:"name"`
  462. CharsPointsPrice *uint64 `json:"charsPointsPrice"`
  463. DefaultToken *uint64 `json:"defaultToken"`
  464. MaxToken *uint64 `json:"maxToken"`
  465. Weight *uint64 `json:"weight"`
  466. }
  467. type AgentModel struct {
  468. Model *string `json:"model"`
  469. Name *string `json:"name"`
  470. MaxContext *uint64 `json:"maxContext"`
  471. MaxResponse *uint64 `json:"maxResponse"`
  472. CharsPointsPrice *uint64 `json:"charsPointsPrice"`
  473. }
  474. type DatasetId struct {
  475. ID *string `json:"id"`
  476. ParentID *string `json:"parentId"`
  477. TeamId *string `json:"teamId"`
  478. TmbId *string `json:"tmbId"`
  479. Type *string `json:"type"`
  480. Status *string `json:"status"`
  481. Avatar *string `json:"avatar"`
  482. Name *string `json:"name"`
  483. VectorModel *string `json:"vectorModel"`
  484. AgentModel *string `json:"agentModel"`
  485. Intro *string `json:"intro"`
  486. }
  487. // Dataset info | 知识库详情
  488. // swagger:model DatasetInfo
  489. type DatasetInfo struct {
  490. ID *string `json:"id"`
  491. ParentID *string `json:"parentId"`
  492. TeamId *string `json:"teamId"`
  493. TmbId *string `json:"tmbId"`
  494. Type *string `json:"type"`
  495. Name *string `json:"name"`
  496. Intro *string `json:"intro"`
  497. Status *string `json:"status"`
  498. Avatar *string `json:"avatar"`
  499. VectorModel VectorModel `json:"vectorModel"`
  500. AgentModel AgentModel `json:"agentModel"`
  501. Permission *string `json:"permission"`
  502. CanWrite *bool `json:"canWrite"`
  503. IsOwner *bool `json:"isOwner"`
  504. }
  505. type Index struct {
  506. DefaultIndex *bool `json:"defaultIndex"`
  507. Type *string `json:"type"`
  508. DataId *string `json:"dataId"`
  509. Text *string `json:"text"`
  510. ID *string `json:"id"`
  511. }
  512. // Collection Info | 集合详情
  513. // swagger:model CollectionInfo
  514. type CollectionInfo struct {
  515. ID *string `json:"id"`
  516. ParentID *string `json:"parentId"`
  517. TmbId *string `json:"tmbId,optional"`
  518. Type *string `json:"type"`
  519. Name *string `json:"name"`
  520. DataAmount *uint64 `json:"dataAmount,optional"`
  521. TrainingAmount *uint64 `json:"trainingAmount,optional"`
  522. TrainingType *string `json:"trainingType,optional"`
  523. ChunkSize *uint64 `json:"chunkSize,optional"`
  524. ChunkSplitter *string `json:"chunkSplitter,optional"`
  525. QaPrompt *string `json:"qaPrompt,optional"`
  526. RawTextLength *uint64 `json:"rawTextLength,optional"`
  527. CanWrite *bool `json:"canWrite,optional"`
  528. SourceName *string `json:"sourceName,optional"`
  529. DatasetId DatasetId `json:"datasetId,optional"`
  530. }
  531. // swagger:model CollectionDetailReq
  532. type CollectionDetailReq struct {
  533. ID *string `json:"id"`
  534. }
  535. // swagger:model CollectionInfoResp
  536. type CollectionInfoResp struct {
  537. BaseDataInfo
  538. Data CollectionInfo `json:"data"`
  539. }
  540. // swagger:model DataDetailReq
  541. type DataDetailReq struct {
  542. ID *string `json:"id"`
  543. }
  544. // swagger:model DataDetailResp
  545. type DataDetailResp struct {
  546. BaseDataInfo
  547. Data DataInfo `json:"data"`
  548. }
  549. // swagger:model CollectionSimpleInfo
  550. type CollectionSimpleInfo struct {
  551. ID *string `json:"id"`
  552. ParentID *string `json:"parentId"`
  553. TmbId *string `json:"tmbId,optional"`
  554. Type *string `json:"type"`
  555. Name *string `json:"name"`
  556. DataAmount *uint64 `json:"dataAmount,optional"`
  557. TrainingAmount *uint64 `json:"trainingAmount,optional"`
  558. }
  559. // swagger:model DataInfo
  560. type DataInfo struct {
  561. ID *string `json:"id"`
  562. Q *string `json:"q"`
  563. A *string `json:"a"`
  564. ChunkIndex *uint64 `json:"chunkIndex"`
  565. Indexes []Index `json:"indexes"`
  566. DatasetId *string `json:"datasetId"`
  567. CollectionId *string `json:"collectionId"`
  568. SourceName *string `json:"sourceName"`
  569. CanWrite *bool `json:"canWrite"`
  570. IsOwner *bool `json:"isOwner"`
  571. }
  572. // swagger:model DataSimpleInfo
  573. type DataSimpleInfo struct {
  574. ID *string `json:"id"`
  575. Q *string `json:"q"`
  576. A *string `json:"a"`
  577. ChunkIndex *uint64 `json:"chunkIndex"`
  578. DatasetId *string `json:"datasetId"`
  579. CollectionId *string `json:"collectionId"`
  580. }
  581. // Get collection list request params | Collection列表请求参数
  582. // swagger:model CollectionListReq
  583. type CollectionListReq struct {
  584. // required : true
  585. // min : 0
  586. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  587. // required : true
  588. // max : 100000
  589. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  590. // required : true
  591. DatasetId *string `json:"datasetId" validate:"required"`
  592. }
  593. // Collection list response | Collection List信息返回体
  594. // swagger:model CollectionListResp
  595. type CollectionListResp struct {
  596. BaseDataInfo
  597. // Agent information | Agent数据
  598. Data []CollectionSimpleInfo `json:"data"`
  599. // required : true
  600. // min : 0
  601. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  602. // required : true
  603. // max : 100000
  604. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  605. Total *int `json:"total"`
  606. }
  607. // Get collection list request params | Collection列表请求参数
  608. // swagger:model DataListReq
  609. type DataListReq struct {
  610. // required : true
  611. // min : 0
  612. Page *int `json:"page" validate:"required,number,gt=0"`
  613. // required : true
  614. // max : 100000
  615. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  616. // required : true
  617. CollectionId *string `json:"collectionId" validate:"required"`
  618. }
  619. // Data list response | Data List信息返回体
  620. // swagger:model DataListResp
  621. type DataListResp struct {
  622. BaseDataInfo
  623. // Agent information | Agent数据
  624. Data BatchSimpleInfo `json:"data"`
  625. }
  626. // swagger:model BatchSimpleInfo
  627. type BatchSimpleInfo struct {
  628. BaseListInfo
  629. // The API list data | BatchMsg列表数据
  630. Data []DataSimpleInfo `json:"data"`
  631. }
  632. // Data create request | 信息请求体
  633. // swagger:model CreateDataInfoReq
  634. type CreateDataInfoReq struct {
  635. // required : true
  636. CollectionId *string `json:"collectionId" validate:"required"`
  637. // Q
  638. // required : true
  639. Q *string `json:"q" validate:"required"`
  640. // A
  641. // required : true
  642. A *string `json:"a" validate:"required"`
  643. }
  644. // IndexSingle {
  645. // Text A *string `json:"text"`
  646. // }
  647. //
  648. // Data create request | 信息返回体
  649. // swagger:model UpdateDataInfoReq
  650. type UpdateDataInfoReq struct {
  651. // ID
  652. // required : true
  653. DataId *string `json:"id" validate:"required"`
  654. // Q
  655. // required : true
  656. Q *string `json:"q" validate:"required"`
  657. // A
  658. // required : true
  659. A *string `json:"a" validate:"required"`
  660. }
  661. // swagger:model DeleteDataReq
  662. type DeleteDataReq struct {
  663. // required : true
  664. ID *string `json:"id" validate:"required"`
  665. }
  666. // swagger:model UploadDataReq
  667. type UploadDataReq struct {
  668. AgentId *string `form:"agentId"`
  669. }
  670. type BatchDeleteIds struct {
  671. Ids []string `json:"ids"`
  672. }
  673. // ContactLabelList | Contact标签列表
  674. type ContactLabelList struct {
  675. // label
  676. Label *string `json:"label,optional"`
  677. // value
  678. Value *uint64 `json:"value,optional"`
  679. }
  680. // The response data of contact information | Contact信息
  681. // swagger:model ContactInfo
  682. type ContactInfo struct {
  683. BaseIDInfo
  684. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  685. Status *uint8 `json:"status,optional"`
  686. // 属主微信id
  687. WxWxid *string `json:"wxWxid,optional"`
  688. // 属主微信昵称
  689. WxWxidNickname *string `json:"wxWxidNickname,optional"`
  690. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  691. Type *int `json:"type,optional"`
  692. // 微信id 公众号微信ID
  693. Wxid *string `json:"wxid,optional"`
  694. // 微信账号
  695. Account *string `json:"account,optional"`
  696. // 微信昵称 群备注名称
  697. Nickname *string `json:"nickname,optional"`
  698. // 备注名
  699. Markname *string `json:"markname,optional"`
  700. // 头像
  701. Headimg *string `json:"headimg,optional"`
  702. // 性别 0未知 1男 2女
  703. Sex *int `json:"sex,optional"`
  704. // 星标 65/67=星标 1/3=未星标
  705. Starrole *string `json:"starrole,optional"`
  706. // 不让他看我的朋友圈 0可以看 1不让看
  707. Dontseeit *int `json:"dontseeit,optional"`
  708. // 不看他的朋友圈 0可以看 1不看 1=开启了不看他 128/129=仅聊天
  709. Dontseeme *int `json:"dontseeme,optional"`
  710. // 所属标签id清单,多开会用逗号隔开
  711. Lag *string `json:"lag,optional"`
  712. // 群组id
  713. Gid *string `json:"gid,optional"`
  714. // 群组名称
  715. Gname *string `json:"gname,optional"`
  716. // v3数据
  717. V3 *string `json:"v3,optional"`
  718. // Label Relationships | 标签关系
  719. LabelRelationships []ContactLabelList `json:"labelRelationships,optional"`
  720. // 组织ID
  721. OrganizationId *uint64 `json:"organizationId,optional"`
  722. // 是否在黑名单中
  723. IsInBlockList *bool `json:"isInBlockList,optional"`
  724. }
  725. // The response data of label information | Label信息
  726. // swagger:model LabelInfo
  727. type LabelInfo struct {
  728. BaseIDInfo
  729. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  730. Status *uint8 `json:"status,optional"`
  731. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  732. Type *int `json:"type,optional"`
  733. // 标签名称
  734. Name *string `json:"name,optional"`
  735. // 标签来源:1后台创建 2个微同步
  736. From *int `json:"from,optional"`
  737. // 标签模式:1动态 2静态
  738. Mode *int `json:"mode,optional"`
  739. // 标签的触达条件
  740. Conditions *string `json:"conditions,optional"`
  741. // 组织ID
  742. OrganizationId *uint64 `json:"organizationId,optional"`
  743. // Label Relationships | 标签关系
  744. LabelRelationships []LabelRelationshipInfo `json:"labelRelationships,optional"`
  745. }
  746. // The response data of label relationship information | LabelRelationship信息
  747. // swagger:model LabelRelationshipInfo
  748. type LabelRelationshipInfo struct {
  749. BaseIDInfo
  750. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  751. Status *uint8 `json:"status,optional"`
  752. // 标签 ID
  753. LabelId *uint64 `json:"labelId,optional"`
  754. // 联系人 ID
  755. ContactId *uint64 `json:"contactId,optional"`
  756. // Contact information | 联系人信息
  757. Contact ContactInfo `json:"contact,optional"`
  758. // Label information | 标签信息
  759. Label LabelInfo `json:"label,optional"`
  760. // 组织ID
  761. OrganizationId *uint64 `json:"organizationId,optional"`
  762. }
  763. // The response data of label relationship information | LabelRelationship信息
  764. // swagger:model LabelRelationshipsInfo
  765. type LabelRelationshipsInfo struct {
  766. BaseIDInfo
  767. // 更新类型:为空或“all”时表示全量更新,为 “add” 时表示仅追加
  768. UpdateType *string `json:"updateType,optional"`
  769. // 标签 ID
  770. LabelIds []uint64 `json:"labelIds,optional"`
  771. // 联系人 ID
  772. ContactId *uint64 `json:"contactId,optional"`
  773. }
  774. // swagger:model BatchLabelRelationshipsInfo
  775. type BatchLabelRelationshipsInfo struct {
  776. // 更新类型:为1 时表示增加标签,为 -1 时表示移除标签
  777. UpdateType int `json:"updateType,optional"`
  778. // 标签 ID
  779. LabelIds []uint64 `json:"labelIds,optional"`
  780. // 联系人 ID
  781. ContactIds []uint64 `json:"contactIds,optional"`
  782. }
  783. // The response data of label relationship list | LabelRelationship列表数据
  784. // swagger:model LabelRelationshipListResp
  785. type LabelRelationshipListResp struct {
  786. BaseDataInfo
  787. // LabelRelationship list data | LabelRelationship列表数据
  788. Data LabelRelationshipListInfo `json:"data"`
  789. }
  790. // LabelRelationship list data | LabelRelationship列表数据
  791. // swagger:model LabelRelationshipListInfo
  792. type LabelRelationshipListInfo struct {
  793. BaseListInfo
  794. // The API list data | LabelRelationship列表数据
  795. Data []LabelRelationshipInfo `json:"data"`
  796. }
  797. // Get label relationship list request params | LabelRelationship列表请求参数
  798. // swagger:model LabelRelationshipListReq
  799. type LabelRelationshipListReq struct {
  800. PageInfo
  801. }
  802. // LabelRelationship information response | LabelRelationship信息返回体
  803. // swagger:model LabelRelationshipInfoResp
  804. type LabelRelationshipInfoResp struct {
  805. BaseDataInfo
  806. // LabelRelationship information | LabelRelationship数据
  807. Data LabelRelationshipInfo `json:"data"`
  808. }
  809. type LoginQRStatus struct {
  810. // 登陆二维码
  811. QRCode string `json:"qRCode,optional"`
  812. // 登陆二维码状态
  813. Status string `json:"status,optional"`
  814. // 登陆二维码状态描述
  815. StatusDesc string `json:"statusDesc,optional"`
  816. }
  817. // 刷新登陆二维码请求参数
  818. // swagger:model RefreshLoginQRReq
  819. type RefreshLoginQRReq struct {
  820. // 服务器id
  821. ServerId *uint64 `json:"serverId,optional"`
  822. // 端口号
  823. Port *string `json:"port,optional"`
  824. // 回调地址
  825. Callback *string `json:"callback,optional"`
  826. }
  827. // 刷新登陆二维码返回参数
  828. // swagger:model RefreshLoginQRResp
  829. type RefreshLoginQRResp struct {
  830. BaseDataInfo
  831. // 二维码Base64
  832. Data LoginQRStatus `json:"data,optional"`
  833. }
  834. // 发送微信文本消息请求参数
  835. // swagger:model SendTextMsgReq
  836. type SendTextMsgReq struct {
  837. // 属主微信id
  838. WxWxid *string `json:"senderWxId"`
  839. // 微信id 公众号微信ID
  840. Wxid *string `json:"receiverWxId"`
  841. // 微信文本消息内容
  842. Msg *string `json:"msg"`
  843. }
  844. // 发送微信图片消息请求参数
  845. // swagger:model SendPicMsgReq
  846. type SendPicMsgReq struct {
  847. // 属主微信id
  848. WxWxid *string `json:"wxWxid"`
  849. // 微信id 公众号微信ID
  850. Wxid *string `json:"wxid"`
  851. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  852. Picpath *string `json:"picpath"`
  853. // 微信图片自定义名称(此属性只有网络图片有)
  854. Diyfilename *string `json:"diyfilename,optional"`
  855. }
  856. // 发送微信图片(本地)请求参数
  857. // swagger:model SendPicMsgLocalReq
  858. type SendPicMsgLocalReq struct {
  859. // 属主微信id
  860. WxWxid *string `json:"wxWxid"`
  861. // 微信id 公众号微信ID
  862. Wxid *string `json:"wxid"`
  863. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  864. Picpath *string `json:"picpath"`
  865. }
  866. // The response data of contact list | Contact列表数据
  867. // swagger:model ContactListResp
  868. type ContactListResp struct {
  869. BaseDataInfo
  870. // Contact list data | Contact列表数据
  871. Data ContactListInfo `json:"data"`
  872. }
  873. // Contact list data | Contact列表数据
  874. // swagger:model ContactListInfo
  875. type ContactListInfo struct {
  876. BaseListInfo
  877. // The API list data | Contact列表数据
  878. Data []ContactInfo `json:"data"`
  879. }
  880. // Get contact list request params | Contact列表请求参数
  881. // swagger:model ContactListReq
  882. type ContactListReq struct {
  883. PageInfo
  884. // Label ID list | 标签ID列表
  885. LabelIDs []uint64 `json:"labelIDs,optional"`
  886. // 属主微信id
  887. WxWxid *string `json:"wxWxid,optional"`
  888. // 微信id 公众号微信ID
  889. Wxid *string `json:"wxid,optional"`
  890. // 微信账号
  891. Account *string `json:"account,optional"`
  892. // 昵称
  893. Nickname *string `json:"nickname,optional"`
  894. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  895. Type *int `json:"type,optional"`
  896. }
  897. // Contact information response | Contact信息返回体
  898. // swagger:model ContactInfoResp
  899. type ContactInfoResp struct {
  900. BaseDataInfo
  901. // Contact information | Contact数据
  902. Data ContactInfo `json:"data"`
  903. }
  904. // swagger:model AddNewFriendReq
  905. type AddNewFriendReq struct {
  906. OwnerWxid string `json:"ownerWxid"`
  907. Wxid string `json:"wxid"`
  908. Gid string `json:"gid"`
  909. Desc string `json:"desc"`
  910. AddType string `json:"addType"`
  911. }
  912. // swagger:model changeBlockListReq
  913. type ChangeBlockListReq struct {
  914. OwnerWxid string `json:"ownerWxid"`
  915. Wxid string `json:"wxid"`
  916. Type *int `json:"type,optional"`
  917. Ai *bool `json:"ai,optional"`
  918. }
  919. // The response data of message information | Message信息
  920. // swagger:model MessageInfo
  921. type MessageInfo struct {
  922. BaseIDInfo
  923. // 属主微信id
  924. WxWxid *string `json:"wxWxid"`
  925. // 微信id 公众号微信ID
  926. Wxid *string `json:"wxid"`
  927. // 微信消息内容
  928. Msg *string `json:"msg"`
  929. }
  930. // The response data of message list | Message列表数据
  931. // swagger:model MessageListResp
  932. type MessageListResp struct {
  933. BaseDataInfo
  934. // Message list data | Message列表数据
  935. Data MessageListInfo `json:"data"`
  936. }
  937. // Message list data | Message列表数据
  938. // swagger:model MessageListInfo
  939. type MessageListInfo struct {
  940. BaseListInfo
  941. // The API list data | Message列表数据
  942. Data []MessageInfo `json:"data"`
  943. }
  944. // Get message list request params | Message列表请求参数
  945. // swagger:model MessageListReq
  946. type MessageListReq struct {
  947. PageInfo
  948. // 属主微信id
  949. WxWxid *string `json:"wxWxid,optional"`
  950. // 微信id 公众号微信ID
  951. Wxid *string `json:"wxid,optional"`
  952. }
  953. // Message information response | Message信息返回体
  954. // swagger:model MessageInfoResp
  955. type MessageInfoResp struct {
  956. BaseDataInfo
  957. // Message information | Message数据
  958. Data MessageInfo `json:"data"`
  959. }
  960. // The response data of label list | Label列表数据
  961. // swagger:model LabelSelectListResp
  962. type LabelSelectListResp struct {
  963. BaseDataInfo
  964. // Label list data | Label列表数据
  965. Data []LabelSelectListInfo `json:"data"`
  966. }
  967. // The response data of label list | Label群发列表数据
  968. // swagger:model LabelBatchSelectListResp
  969. type LabelBatchSelectListResp struct {
  970. BaseDataInfo
  971. // Label list data | Label列表数据
  972. Data LabelBatchSelectListData `json:"data"`
  973. }
  974. // The response data of label list | Label群发列表数据
  975. type LabelBatchSelectListData struct {
  976. Contact []LabelSelectListInfo `json:"contact"`
  977. Group []LabelSelectListInfo `json:"group"`
  978. }
  979. // The response data of label list | Label列表数据
  980. // swagger:model LabelListResp
  981. type LabelListResp struct {
  982. BaseDataInfo
  983. // Label list data | Label列表数据
  984. Data LabelListInfo `json:"data"`
  985. }
  986. // Label list data | Label列表数据
  987. // swagger:model LabelListInfo
  988. type LabelListInfo struct {
  989. BaseListInfo
  990. // The API list data | Label列表数据
  991. Data []LabelInfo `json:"data"`
  992. }
  993. // Get label list request params | Label列表请求参数
  994. // swagger:model LabelListReq
  995. type LabelListReq struct {
  996. PageInfo
  997. // Label ID list | Label ID列表
  998. LabelIDs []uint64 `json:"labelIDs,optional"`
  999. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  1000. Type *int `json:"type,optional"`
  1001. // 标签名称
  1002. Name *string `json:"name,optional"`
  1003. // 标签来源:1后台创建 2个微同步
  1004. From *int `json:"from,optional"`
  1005. // 标签模式:1动态 2静态
  1006. Mode *int `json:"mode,optional"`
  1007. }
  1008. // Label information response | Label信息返回体
  1009. // swagger:model LabelInfoResp
  1010. type LabelInfoResp struct {
  1011. BaseDataInfo
  1012. // Label information | Label数据
  1013. Data LabelInfo `json:"data"`
  1014. }
  1015. // swagger:model LabelSelectListInfo
  1016. type LabelSelectListInfo struct {
  1017. // label
  1018. Label *string `json:"label,optional"`
  1019. // value
  1020. Value *uint64 `json:"value,optional"`
  1021. }
  1022. // The data of label tagging information | LabelTagging信息
  1023. // swagger:model LabelTaggingInfo
  1024. type LabelTaggingInfo struct {
  1025. BaseIDInfo
  1026. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1027. Status *uint8 `json:"status,optional"`
  1028. // 机构 ID
  1029. OrganizationId *uint64 `json:"organizationId,optional"`
  1030. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  1031. Type *int `json:"type,optional"`
  1032. // 关键词
  1033. Conditions string `json:"conditions,optional"`
  1034. // 命中后需要打的标签
  1035. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1036. // 命中后需要移除的标签
  1037. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1038. LabelAddInfo []string `json:"labelAddInfo,optional"`
  1039. }
  1040. // The response data of label tagging list | LabelTagging信息列表数据
  1041. // swagger:model LabelTaggingListResp
  1042. type LabelTaggingListResp struct {
  1043. BaseDataInfo
  1044. // The label tagging list data | LabelTagging信息列表数据
  1045. Data LabelTaggingListInfo `json:"data"`
  1046. }
  1047. // The label tagging list data | LabelTagging信息列表数据
  1048. // swagger:model LabelTaggingListInfo
  1049. type LabelTaggingListInfo struct {
  1050. BaseListInfo
  1051. // The label tagging list data | LabelTagging信息列表数据
  1052. Data []LabelTaggingInfo `json:"data"`
  1053. }
  1054. // Get label tagging list request params | LabelTagging信息列表请求参数
  1055. // swagger:model LabelTaggingListReq
  1056. type LabelTaggingListReq struct {
  1057. PageInfo
  1058. }
  1059. // The label tagging information response | LabelTagging信息返回体
  1060. // swagger:model LabelTaggingInfoResp
  1061. type LabelTaggingInfoResp struct {
  1062. BaseDataInfo
  1063. // label tagging information | LabelTagging信息数据
  1064. Data LabelTaggingInfo `json:"data"`
  1065. }
  1066. // The response data of sop task list | SopTask列表数据
  1067. // swagger:model SopTaskListResp
  1068. type SopTaskListResp struct {
  1069. BaseDataInfo
  1070. // SopTask list data | SopTask列表数据
  1071. Data SopTaskListInfo `json:"data"`
  1072. }
  1073. // The response data of sop task record list | SopTask列表数据
  1074. // swagger:model SopTaskRecordListResp
  1075. type SopTaskRecordListResp struct {
  1076. BaseDataInfo
  1077. // SopTask list data | SopTask列表数据
  1078. Data []SopTaskRecordInfo `json:"data"`
  1079. }
  1080. // SopTask list data | SopTask列表数据
  1081. // swagger:model SopTaskRecordInfo
  1082. type SopTaskRecordInfo struct {
  1083. // NodeId 节点ID
  1084. SourceType *int `json:"sourceType,optional"`
  1085. // NodeId 节点ID
  1086. SourceId *uint64 `json:"sourceId,optional"`
  1087. // 节点名称
  1088. Name *string `json:"name,optional"`
  1089. // 消息总数
  1090. TotalCount *int64 `json:"totalCount,optional"`
  1091. // 成功数
  1092. SuccessCount *int64 `json:"successCount,optional"`
  1093. // 失败数
  1094. FailureCount *int64 `json:"failureCount,optional"`
  1095. // 成功率
  1096. SuccessRate *int64 `json:"successRate,optional"`
  1097. }
  1098. // SopTask list data | SopTask列表数据
  1099. // swagger:model SopTaskListInfo
  1100. type SopTaskListInfo struct {
  1101. BaseListInfo
  1102. // The API list data | SopTask列表数据
  1103. Data []SopTaskInfo `json:"data"`
  1104. }
  1105. // Get sop task list request params | SopTask列表请求参数
  1106. // swagger:model SopTaskListReq
  1107. type SopTaskListReq struct {
  1108. PageInfo
  1109. // SOP 任务名称
  1110. Name *string `json:"name,optional"`
  1111. // 创建者 id
  1112. CreatorId *string `json:"creatorId,optional"`
  1113. }
  1114. // SopTask information response | SopTask信息返回体
  1115. // swagger:model SopTaskInfoResp
  1116. type SopTaskInfoResp struct {
  1117. BaseDataInfo
  1118. // SopTask information | SopTask数据
  1119. Data SopTaskInfo `json:"data"`
  1120. }
  1121. // SopTask create response | SopTask创建回体
  1122. // swagger:model SopTaskCreateResp
  1123. type SopTaskCreateResp struct {
  1124. BaseDataInfo
  1125. // SopTask id | SopTask id
  1126. Data uint64 `json:"data"`
  1127. }
  1128. // swagger:model CopyReq
  1129. type CopyReq struct {
  1130. // SopTask id | SopTask id
  1131. Id uint64 `json:"id"`
  1132. // SOP 任务名称
  1133. Name *string `json:"name,optional"`
  1134. // Organization id | Organization id
  1135. OrganizationId uint64 `json:"organizationId,optional"`
  1136. }
  1137. // swagger:model MessageVarResp
  1138. type MessageVarResp struct {
  1139. BaseDataInfo
  1140. Data MessageVarRespData `json:"data"`
  1141. }
  1142. type MessageVarRespData struct {
  1143. // 消息变量
  1144. MessageVar []MessageVarInfo `json:"messageVar"`
  1145. // 转发变量
  1146. ForwardVar []MessageVarInfo `json:"forwardVar"`
  1147. }
  1148. // swagger:model MessageVarInfo
  1149. type MessageVarInfo struct {
  1150. // 显示名称
  1151. Label string `json:"label"`
  1152. // 变量
  1153. Value string `json:"value"`
  1154. }
  1155. // swagger:model SopTaskOutlineResp
  1156. type SopTaskOutlineResp struct {
  1157. BaseDataInfo
  1158. Data []SopTaskOutlineInfo `json:"data"`
  1159. }
  1160. // swagger:model SopTaskOutlineInfo
  1161. type SopTaskOutlineInfo struct {
  1162. // 标题
  1163. Title string `json:"title,optional"`
  1164. // key
  1165. Key string `json:"key,optional"`
  1166. // 子节点
  1167. Children []SopTaskOutlineInfo `json:"children,optional"`
  1168. }
  1169. // swagger:model TestNodeReq
  1170. type TestNodeReq struct {
  1171. Type int `json:"type"`
  1172. Id uint64 `json:"id"`
  1173. Content string `json:"content"`
  1174. }
  1175. // swagger:model TestNodeResp
  1176. type TestNodeResp struct {
  1177. BaseDataInfo
  1178. Data []string `json:"data"`
  1179. }
  1180. // swagger:model SopApiListReq
  1181. type SopApiListReq struct {
  1182. // required : true
  1183. // min : 0
  1184. Page uint64 `json:"page" validate:"required,number,gt=0"`
  1185. // required : true
  1186. // max : 2000
  1187. PageSize uint64 `json:"pageSize" validate:"required,number,lt=2000"`
  1188. }
  1189. // swagger:model GenerateAiAnswerReq
  1190. type GenerateAiAnswerReq struct {
  1191. Content string `json:"content"`
  1192. }
  1193. // swagger:model GenerateAiAnswerResp
  1194. type GenerateAiAnswerResp struct {
  1195. BaseDataInfo
  1196. Data string `json:"data"`
  1197. }
  1198. // The response data of sop stage information | SopStage信息
  1199. // swagger:model SopStageInfo
  1200. type SopStageInfo struct {
  1201. BaseIDInfo
  1202. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1203. Status *uint8 `json:"status,optional"`
  1204. // SOP 任务 ID
  1205. TaskId *uint64 `json:"taskId,optional"`
  1206. // 阶段名称
  1207. Name *string `json:"name,optional"`
  1208. // 客群筛选条件类型 1 按标签筛选 2 按客户基本信息筛选
  1209. ConditionType *int `json:"conditionType,optional"`
  1210. // 筛选条件关系 1 满足所有条件(and) 2 满足任意条件(or)
  1211. ConditionOperator *int `json:"conditionOperator,optional"`
  1212. // 筛选条件列表
  1213. ConditionList []Condition `json:"conditionList,optional"`
  1214. // 命中后发送的消息内容
  1215. ActionMessage []Action `json:"actionMessage,optional"`
  1216. // 命中后需要打的标签
  1217. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1218. // 命中后需要移除的标签
  1219. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1220. // 命中后转发的消息内容
  1221. ActionForward *ActionForward `json:"actionForward,optional"`
  1222. // 阶段顺序
  1223. IndexSort *int `json:"indexSort,optional"`
  1224. // sop 任务信息
  1225. TaskInfo *SopTaskInfo `json:"taskInfo,optional"`
  1226. // node 信息
  1227. NodeList []SopNodeInfo `json:"nodeList,optional"`
  1228. }
  1229. // The response data of sop task information | SopTask信息
  1230. // swagger:model SopTaskInfo
  1231. type SopTaskInfo struct {
  1232. BaseIDInfo
  1233. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1234. Status *uint8 `json:"status,optional"`
  1235. // SOP 任务名称
  1236. Name *string `json:"name,optional"`
  1237. // 机器人微信 id 列表
  1238. BotWxidList []string `json:"botWxidList,optional"`
  1239. // 标签类型:1好友,2群组,3企业微信联系人
  1240. Type *int `json:"type,optional"`
  1241. // 任务计划开始时间
  1242. PlanStartTime *int64 `json:"planStartTime,optional"`
  1243. // 任务计划结束时间
  1244. PlanEndTime *int64 `json:"planEndTime,optional"`
  1245. // 创建者 id
  1246. CreatorId *string `json:"creatorId,optional"`
  1247. // 阶段信息
  1248. StageList []SopStageInfo `json:"stageList,optional"`
  1249. // 组织ID
  1250. OrganizationId *uint64 `json:"organizationId,optional"`
  1251. // Token
  1252. Token []string `json:"token,optional"`
  1253. }
  1254. // The response data of sop node information | SopNode信息
  1255. // swagger:model SopNodeInfo
  1256. type SopNodeInfo struct {
  1257. BaseIDInfo
  1258. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1259. Status *uint8 `json:"status,optional"`
  1260. // 阶段 ID
  1261. StageId *uint64 `json:"stageId,optional"`
  1262. // 父节点 ID
  1263. ParentId *uint64 `json:"parentId,optional"`
  1264. // 节点名称
  1265. Name *string `json:"name,optional"`
  1266. // 触发条件类型 1 客户回复后触发 2 超时后触发
  1267. ConditionType *int `json:"conditionType,optional"`
  1268. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  1269. ConditionList []string `json:"conditionList,optional"`
  1270. // 超时触发时间(分钟)
  1271. NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
  1272. // 超时触发时间单位
  1273. NoReplyUnit *string `json:"noReplyUnit,optional"`
  1274. // 命中后发送的消息内容
  1275. ActionMessage []Action `json:"actionMessage,optional"`
  1276. // 命中后需要打的标签
  1277. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1278. // 命中后需要移除的标签
  1279. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1280. // 命中后转发的消息内容
  1281. ActionForward *ActionForward `json:"actionForward,optional"`
  1282. // 阶段信息
  1283. StageInfo *SopStageInfo `json:"stageInfo,optional"`
  1284. }
  1285. // The response data of sop node information | SopNode信息
  1286. type SopNodeInfoWithLable struct {
  1287. BaseIDInfo
  1288. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1289. Status *uint8 `json:"status,optional"`
  1290. // 阶段 ID
  1291. StageId *uint64 `json:"stageId,optional"`
  1292. // 父节点 ID
  1293. ParentId *uint64 `json:"parentId,optional"`
  1294. // 节点名称
  1295. Name *string `json:"name,optional"`
  1296. // 触发条件类型 1 客户回复后触发 2 超时后触发
  1297. ConditionType *int `json:"conditionType,optional"`
  1298. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  1299. ConditionList []string `json:"conditionList,optional"`
  1300. // 超时触发时间(分钟)
  1301. NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
  1302. // 超时触发时间单位
  1303. NoReplyUnit *string `json:"noReplyUnit,optional"`
  1304. // 命中后发送的消息内容
  1305. ActionMessage []Action `json:"actionMessage,optional"`
  1306. // 命中后需要打的标签
  1307. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1308. // 命中后需要移除的标签
  1309. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1310. // 命中后转发的消息内容
  1311. ActionForward *ActionForward `json:"actionForward,optional"`
  1312. ActionLabelAddList []string `json:"actionLabelAddList"`
  1313. ActionLabelDelList []string `json:"actionLabelDelList"`
  1314. }
  1315. // The response data of sop stage list | SopStage列表数据
  1316. // swagger:model SopStageListResp
  1317. type SopStageListResp struct {
  1318. BaseDataInfo
  1319. // SopStage list data | SopStage列表数据
  1320. Data SopStageListInfo `json:"data"`
  1321. }
  1322. // SopStage list data | SopStage列表数据
  1323. // swagger:model SopStageListInfo
  1324. type SopStageListInfo struct {
  1325. BaseListInfo
  1326. // The API list data | SopStage列表数据
  1327. Data []SopStageInfo `json:"data"`
  1328. }
  1329. // Get sop stage list request params | SopStage列表请求参数
  1330. // swagger:model SopStageListReq
  1331. type SopStageListReq struct {
  1332. TaskId *uint64 `json:"taskId"`
  1333. }
  1334. // Batch get sop stage list request params | SopStage列表请求参数
  1335. // swagger:model BatchSopStageListReq
  1336. type BatchSopStageListReq struct {
  1337. TaskIds []uint64 `json:"taskIds"`
  1338. }
  1339. // SopStage information response | SopStage信息返回体
  1340. // swagger:model SopStageInfoResp
  1341. type SopStageInfoResp struct {
  1342. BaseDataInfo
  1343. // SopStage information | SopStage数据
  1344. Data SopStageInfo `json:"data"`
  1345. }
  1346. // SopStage create response | SopStage创建回体
  1347. // swagger:model SopStageCreateResp
  1348. type SopStageCreateResp struct {
  1349. BaseDataInfo
  1350. // SopStage id | SopStage id
  1351. Data uint64 `json:"data"`
  1352. }
  1353. // Move sop stage request params | 移动阶段请求参数
  1354. // swagger:model SopStageMoveReq
  1355. type SopStageMoveReq struct {
  1356. BaseIDInfo
  1357. // 阶段名称
  1358. Offset *int `json:"offset,optional"`
  1359. }
  1360. // swagger:model StageCopyReq
  1361. type StageCopyReq struct {
  1362. // SopStage id | SopStage id
  1363. Id uint64 `json:"id"`
  1364. }
  1365. // The response data of sop node list | SopNode列表数据
  1366. // swagger:model SopNodeListResp
  1367. type SopNodeListResp struct {
  1368. BaseDataInfo
  1369. // SopNode list data | SopNode列表数据
  1370. Data []*SopChildNodeInfo `json:"data"`
  1371. }
  1372. // The response data of sop node list | SopNode列表数据
  1373. type SopNodeListResp2 struct {
  1374. BaseDataInfo
  1375. // SopNode list data | SopNode列表数据
  1376. Data []*SopNodeInfoWithLable `json:"data"`
  1377. }
  1378. // SopNode list data | SopNode列表数据
  1379. // swagger:model SopChildNodeInfo
  1380. type SopChildNodeInfo struct {
  1381. NodeName *string `json:"nodeName,optional"`
  1382. ChildNode *SopChildNodeInfo `json:"childNode,optional"`
  1383. // The API list data | SopNode列表数据
  1384. ConditionNodes []*SopChildNodeInfo `json:"conditionNodes"`
  1385. SopNodeInfo
  1386. }
  1387. // SopNode list data | SopNode列表数据
  1388. // swagger:model SopNodeListInfo
  1389. type SopNodeListInfo struct {
  1390. BaseListInfo
  1391. // The API list data | SopNode列表数据
  1392. Data []SopNodeInfo `json:"data"`
  1393. }
  1394. // Get sop node list request params | SopNode列表请求参数
  1395. // swagger:model SopNodeListReq
  1396. type SopNodeListReq struct {
  1397. StageId *uint64 `json:"stageId"`
  1398. }
  1399. // Get sop node list request params | SopNode列表请求参数
  1400. // swagger:model BatchSopNodeListReq
  1401. type BatchSopNodeListReq struct {
  1402. StageIds []uint64 `json:"stageIds"`
  1403. }
  1404. // SopNode information response | SopNode信息返回体
  1405. // swagger:model SopNodeInfoResp
  1406. type SopNodeInfoResp struct {
  1407. BaseDataInfo
  1408. // SopNode information | SopNode数据
  1409. Data SopNodeInfo `json:"data"`
  1410. }
  1411. // SopNode create response | SopNode创建返回体
  1412. // swagger:model SopNodeCreateResp
  1413. type SopNodeCreateResp struct {
  1414. BaseDataInfo
  1415. // SopNode id | SopNode id
  1416. Data uint64 `json:"data"`
  1417. }
  1418. // The response data of message records information | MessageRecords信息
  1419. // swagger:model MessageRecordsInfo
  1420. type MessageRecordsInfo struct {
  1421. BaseIDInfo
  1422. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1423. Status *uint8 `json:"status,optional"`
  1424. // 机器人微信 id
  1425. BotWxid *string `json:"botWxid,optional"`
  1426. // 联系人 id
  1427. ContactId *uint64 `json:"contactId,optional"`
  1428. // 类型:1好友,2群组,3企业微信联系人
  1429. ContactType *int `json:"contactType,optional"`
  1430. // 接收方微信 id
  1431. ContactWxid *string `json:"contactWxid,optional"`
  1432. // 内容类型 1 文本 2 文件
  1433. ContentType *int `json:"contentType,optional"`
  1434. // 发送内容
  1435. Content *string `json:"content,optional"`
  1436. // 元数据
  1437. Meta *Meta `json:"meta,optional"`
  1438. // 异常原因
  1439. ErrorDetail *string `json:"errorDetail,optional"`
  1440. // 发送时间
  1441. SendTime *int64 `json:"sendTime,optional"`
  1442. // 源类型 1 点发 2 群发 3 SOP
  1443. SourceType *int `json:"sourceType,optional"`
  1444. // 源 ID
  1445. SourceId *uint64 `json:"sourceId,optional"`
  1446. // 次源 ID
  1447. SubSourceId *uint64 `json:"subSourceId,optional"`
  1448. // 组织ID
  1449. OrganizationId *uint64 `json:"organizationId,optional"`
  1450. }
  1451. // The response data of message records list | MessageRecords列表数据
  1452. // swagger:model MessageRecordsListResp
  1453. type MessageRecordsListResp struct {
  1454. BaseDataInfo
  1455. // MessageRecords list data | MessageRecords列表数据
  1456. Data MessageRecordsListInfo `json:"data"`
  1457. }
  1458. // MessageRecords list data | MessageRecords列表数据
  1459. // swagger:model MessageRecordsListInfo
  1460. type MessageRecordsListInfo struct {
  1461. BaseListInfo
  1462. // The API list data | MessageRecords列表数据
  1463. Data []MessageRecordsInfo `json:"data"`
  1464. }
  1465. // Get message records list request params | MessageRecords列表请求参数
  1466. // swagger:model MessageRecordsListReq
  1467. type MessageRecordsListReq struct {
  1468. PageInfo
  1469. // 群发消息ID
  1470. BatchMsgId *uint64 `json:"batchMsgId,optional"`
  1471. // 机器人微信 id
  1472. BotWxid *string `json:"botWxid,optional"`
  1473. // 消息类型:源类型 1 点发 2 群发 3 SOP 阶段 4 SOP 节点
  1474. SourceType *int `json:"sourceType,optional"`
  1475. // 消息源ID:
  1476. SourceId *uint64 `json:"sourceId,optional"`
  1477. // 接收方微信 id
  1478. ContactWxid *string `json:"contactWxid,optional"`
  1479. // 发送内容
  1480. Status *uint8 `json:"status,optional"`
  1481. }
  1482. // MessageRecords information response | MessageRecords信息返回体
  1483. // swagger:model MessageRecordsInfoResp
  1484. type MessageRecordsInfoResp struct {
  1485. BaseDataInfo
  1486. // MessageRecords information | MessageRecords数据
  1487. Data MessageRecordsInfo `json:"data"`
  1488. }
  1489. // The response data of chatroom member information | ChatroomMember信息
  1490. // swagger:model ChatroomMemberInfo
  1491. type ChatroomMemberInfo struct {
  1492. // 名称
  1493. Wxid *string `json:"wxid,optional"`
  1494. // 群组
  1495. ChatRoom *string `json:"chatRoom,optional"`
  1496. // 属主Wxid
  1497. OwnerWxid *string `json:"ownerWxid,optional"`
  1498. // 账号
  1499. Account *string `json:"account,optional"`
  1500. }
  1501. // The response data of chatroom member list | ChatroomMember列表数据
  1502. // swagger:model ChatroomMemberListResp
  1503. type ChatroomMemberListResp struct {
  1504. BaseDataInfo
  1505. // chatroom member list data | chatroom member 列表数据
  1506. Data ChatroomMemberListInfo `json:"data"`
  1507. }
  1508. // chatroom member list data | chatroom member列表数据
  1509. // swagger:model ChatroomMemberListInfo
  1510. type ChatroomMemberListInfo struct {
  1511. BaseListInfo
  1512. // The API list data | chatroom member列表数据
  1513. Data []ChatroomMemberInfo `json:"data"`
  1514. }
  1515. // Get chatroom member list request params | ChatroomMember列表请求参数
  1516. // swagger:model ChatroomMemberListReq
  1517. type ChatroomMemberListReq struct {
  1518. PageInfo
  1519. // 属主Wxid
  1520. OwnerWxid *string `json:"ownerWxid,optional"`
  1521. // 群组
  1522. ChatRoom *string `json:"chatRoom,optional"`
  1523. }
  1524. // chatroom member information response | ChatroomMember信息返回体
  1525. // swagger:model ChatroomMemberInfoResp
  1526. type ChatroomMemberInfoResp struct {
  1527. BaseDataInfo
  1528. // Server information | Server数据
  1529. Data ChatroomMemberInfo `json:"data"`
  1530. }
  1531. // The response data of user information | 用户信息
  1532. // swagger:model UserInfo
  1533. type UserInfo struct {
  1534. BaseUUIDInfo
  1535. // Status | 状态
  1536. // max : 20
  1537. Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"`
  1538. // Username | 用户名
  1539. // max length : 50
  1540. Username *string `json:"username,optional" validate:"omitempty,max=50"`
  1541. // Nickname | 昵称
  1542. // max length : 40
  1543. Nickname *string `json:"nickname,optional" validate:"omitempty,max=40"`
  1544. // Password | 密码
  1545. // min length : 6
  1546. Password *string `json:"password,optional" validate:"omitempty,min=6"`
  1547. // Description | 描述
  1548. // max length : 100
  1549. Description *string `json:"description,optional" validate:"omitempty,max=100"`
  1550. // HomePath | 首页
  1551. // max length : 70
  1552. HomePath *string `json:"homePath,optional" validate:"omitempty,max=70"`
  1553. // RoleId | 角色ID
  1554. RoleIds []uint64 `json:"roleIds,optional"`
  1555. // Mobile | 手机号
  1556. // max length : 18
  1557. Mobile *string `json:"mobile,optional" validate:"omitempty,max=18"`
  1558. // Email | 邮箱
  1559. // max length : 80
  1560. Email *string `json:"email,optional" validate:"omitempty,max=80"`
  1561. // Avatar | 头像地址
  1562. // max length : 300
  1563. Avatar *string `json:"avatar,optional" validate:"omitempty,max=300"`
  1564. // Department ID | 部门ID
  1565. DepartmentId *uint64 `json:"departmentId,optional,omitempty"`
  1566. // Position ID | 职位ID
  1567. PositionIds []uint64 `json:"positionId,optional,omitempty"`
  1568. }
  1569. // User information response | 用户信息返回体
  1570. // swagger:model UserInfoResp
  1571. type UserInfoResp struct {
  1572. BaseDataInfo
  1573. // User information | User数据
  1574. Data UserInfo `json:"data"`
  1575. }
  1576. // The response data of user's basic information | 用户基本信息返回数据
  1577. // swagger:model UserBaseIDInfoResp
  1578. type UserBaseIDInfoResp struct {
  1579. BaseDataInfo
  1580. // The data of user's basic information | 用户基本信息
  1581. Data UserBaseIDInfo `json:"data"`
  1582. }
  1583. // The data of user's basic information | 用户基本信息
  1584. // swagger:model UserBaseIDInfo
  1585. type UserBaseIDInfo struct {
  1586. // User's UUID | 用户的UUID
  1587. UUID *string `json:"userId"`
  1588. // User's name | 用户名
  1589. Username *string `json:"username"`
  1590. // User's nickname | 用户的昵称
  1591. Nickname *string `json:"nickname"`
  1592. // The user's avatar path | 用户的头像路径
  1593. Avatar *string `json:"avatar"`
  1594. // The home page that the user enters after logging in | 用户登陆后进入的首页
  1595. HomePath *string `json:"homePath"`
  1596. // The description of user | 用户的描述信息
  1597. Description *string `json:"desc"`
  1598. // User's Role Name | 用户的角色名称
  1599. RoleName []string `json:"roleName"`
  1600. // Department Name | 部门名称
  1601. DepartmentName string `json:"departmentName,optional"`
  1602. // Department Name | 部门备注
  1603. DepartmentRemark string `json:"departmentRemark,optional"`
  1604. }
  1605. // swagger:model UserLoginReq
  1606. type UserLoginReq struct {
  1607. JsCode *string `json:"js_code,optional"`
  1608. }
  1609. // swagger:model UserLoginResp
  1610. type UserLoginResp struct {
  1611. BaseDataInfo
  1612. Data UserToken `json:"data,optional"`
  1613. }
  1614. // swagger:model GptsUserLoginReq
  1615. type GptsUserLoginReq struct {
  1616. Username *string `json:"username"`
  1617. Password *string `json:"password"`
  1618. }
  1619. // swagger:model GptsUserLoginResp
  1620. type GptsUserLoginResp struct {
  1621. BaseDataInfo
  1622. Data GptsUserToken `json:"data,optional"`
  1623. }
  1624. type GptsUserToken struct {
  1625. ID string `json:"id,optional"`
  1626. Token string `json:"token,optional"`
  1627. Username string `json:"username,optional"`
  1628. ExpireTime uint64 `json:"expireTime,optional"`
  1629. }
  1630. // swagger:model PasswordReq
  1631. type PasswordReq struct {
  1632. Password *string `json:"password"`
  1633. Password2 *string `json:"password2"`
  1634. }
  1635. type UserToken struct {
  1636. Token *string `json:"token,optional"`
  1637. ID *uint64 `json:"id,optional"`
  1638. Avatar *string `json:"avatar,optional"`
  1639. Nickname *string `json:"nickname,optional"`
  1640. IsVip *bool `json:"isVip,optional"`
  1641. }
  1642. // swagger:model UserVipResp
  1643. type UserVipResp struct {
  1644. BaseDataInfo
  1645. Data UserVip `json:"data,optional"`
  1646. }
  1647. type UserVip struct {
  1648. IsVip *bool `json:"isVip,optional"`
  1649. WechatAccount *string `json:"wechatAccount"`
  1650. }
  1651. // swagger:model UserBalanceResp
  1652. type UserBalanceResp struct {
  1653. BaseDataInfo
  1654. // User information | User数据
  1655. Data BalanceInfo `json:"data"`
  1656. }
  1657. // swagger:model BalanceInfo
  1658. type BalanceInfo struct {
  1659. Balance *float32 `json:"balance"`
  1660. }
  1661. // swagger:model WxidReq
  1662. type WxidReq struct {
  1663. Wxid string `json:"wxid"`
  1664. }
  1665. // The data of batch msg information | BatchMsg信息
  1666. // swagger:model BatchMsgInfo
  1667. type BatchMsgInfo struct {
  1668. BaseIDInfo
  1669. // 状态 0 未开始 1 开始发送 2 发送完成 3 发送中止
  1670. Status *uint8 `json:"status,optional"`
  1671. // 批次号
  1672. BatchNo *string `json:"batchNo,optional"`
  1673. // 任务名称
  1674. TaskName *string `json:"taskName,optional"`
  1675. // 发送方微信ID
  1676. Fromwxid *string `json:"fromwxid,optional"`
  1677. // 内容
  1678. Msg *string `json:"msg,optional"`
  1679. // 发送规则 all 全部 tag1,tag2 按tag发送
  1680. Tag *string `json:"tag,optional"`
  1681. // 总数
  1682. Total *int32 `json:"total,optional"`
  1683. // 成功数量
  1684. Success *int32 `json:"success,optional"`
  1685. // 失败数量
  1686. Fail *int32 `json:"fail,optional"`
  1687. // 开始时间
  1688. StartTime *int64 `json:"startTime,optional"`
  1689. StartTimeStr *string `json:"startTimeStr,optional"`
  1690. // 结束时间
  1691. StopTime *int64 `json:"stopTime,optional"`
  1692. // 发送时间
  1693. SendTime *int64 `json:"sendTime,optional"`
  1694. // 标签列表
  1695. Labels []uint64 `json:"labels,optional"`
  1696. GroupLabels []uint64 `json:"groupLabels,optional"`
  1697. // 标签列表
  1698. Type *int32 `json:"type,optional"`
  1699. }
  1700. // The response data of batch msg list | BatchMsg列表数据
  1701. // swagger:model BatchMsgListResp
  1702. type BatchMsgListResp struct {
  1703. BaseDataInfo
  1704. // BatchMsg list data | BatchMsg列表数据
  1705. Data BatchMsgListInfo `json:"data"`
  1706. }
  1707. // BatchMsg list data | BatchMsg列表数据
  1708. // swagger:model BatchMsgListInfo
  1709. type BatchMsgListInfo struct {
  1710. BaseListInfo
  1711. // The API list data | BatchMsg列表数据
  1712. Data []BatchMsgInfo `json:"data"`
  1713. }
  1714. // Get batch msg list request params | BatchMsg列表请求参数
  1715. // swagger:model BatchMsgListReq
  1716. type BatchMsgListReq struct {
  1717. PageInfo
  1718. // 批次号
  1719. BatchNo *string `json:"batchNo,optional"`
  1720. // 发送方微信ID
  1721. Fromwxid *string `json:"fromwxid,optional"`
  1722. // 内容
  1723. Msg *string `json:"msg,optional"`
  1724. // 任务名称
  1725. TaskName *string `json:"taskName,optional"`
  1726. // 群发类型
  1727. Type *int32 `json:"type"`
  1728. }
  1729. // BatchMsg information response | BatchMsg信息返回体
  1730. // swagger:model BatchMsgInfoResp
  1731. type BatchMsgInfoResp struct {
  1732. BaseDataInfo
  1733. // BatchMsg information | BatchMsg数据
  1734. Data BatchMsgInfo `json:"data"`
  1735. }
  1736. // The data of msg information | Msg信息
  1737. // swagger:model MsgInfo
  1738. type MsgInfo struct {
  1739. BaseIDInfo
  1740. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1741. Status *uint8 `json:"status,optional"`
  1742. // 发送方微信ID
  1743. Fromwxid *string `json:"fromwxid,optional"`
  1744. // 接收人微信ID/群ID
  1745. Toid *string `json:"toid,optional"`
  1746. // 消息类型
  1747. Msgtype *int32 `json:"msgtype,optional"`
  1748. // 消息
  1749. Msg *string `json:"msg,optional"`
  1750. // 批次号
  1751. BatchNo *string `json:"batchNo,optional"`
  1752. }
  1753. // The response data of msg list | Msg列表数据
  1754. // swagger:model MsgListResp
  1755. type MsgListResp struct {
  1756. BaseDataInfo
  1757. // Msg list data | Msg列表数据
  1758. Data MsgListInfo `json:"data"`
  1759. }
  1760. // Msg list data | Msg列表数据
  1761. // swagger:model MsgListInfo
  1762. type MsgListInfo struct {
  1763. BaseListInfo
  1764. // The API list data | Msg列表数据
  1765. Data []MsgInfo `json:"data"`
  1766. }
  1767. // Get msg list request params | Msg列表请求参数
  1768. // swagger:model MsgListReq
  1769. type MsgListReq struct {
  1770. PageInfo
  1771. // 状态
  1772. Status *uint8 `json:"status,optional"`
  1773. // 接收人微信ID/群ID
  1774. Toid *string `json:"toid,optional"`
  1775. // 群发消息ID
  1776. BatchId *uint64 `json:"batchId"`
  1777. }
  1778. // Msg information response | Msg信息返回体
  1779. // swagger:model MsgInfoResp
  1780. type MsgInfoResp struct {
  1781. BaseDataInfo
  1782. // Msg information | Msg数据
  1783. Data MsgInfo `json:"data"`
  1784. }
  1785. // The data of employee information | Employee信息
  1786. // swagger:model EmployeeInfo
  1787. type EmployeeInfo struct {
  1788. BaseIDInfo
  1789. // title | 标题
  1790. Title *string `json:"title,optional"`
  1791. // avatar | 头像
  1792. Avatar *string `json:"avatar,optional"`
  1793. // tags | 个人标签
  1794. Tags *string `json:"tags,optional"`
  1795. // hire_count | 被雇佣次数
  1796. HireCount *int `json:"hireCount,optional"`
  1797. // service_count | 已服务次数
  1798. ServiceCount *int `json:"serviceCount,optional"`
  1799. // achievement_count | 业绩单数
  1800. AchievementCount *int `json:"achievementCount,optional"`
  1801. // category_id | 分类ID
  1802. CategoryId *uint64 `json:"categoryId,optional"`
  1803. // intro | 个人介绍
  1804. Intro *string `json:"intro,optional"`
  1805. // estimate | 自我评价
  1806. Estimate *string `json:"estimate,optional"`
  1807. // skill | 技能卡
  1808. Skill *string `json:"skill,optional"`
  1809. // ability_type | 能力类型
  1810. AbilityType *string `json:"abilityType,optional"`
  1811. // scene | 使用场景
  1812. Scene *string `json:"scene,optional"`
  1813. SceneList []EmployeeConfigInfo `json:"sceneList,optional"`
  1814. // switch_in | 支持介入
  1815. SwitchIn *string `json:"switchIn,optional"`
  1816. SwitchInList []EmployeeConfigInfo `json:"switchInList,optional"`
  1817. Tutorial []TutorialInfo `json:"tutorial,optional"`
  1818. // video_url | 视频地址
  1819. VideoUrl *string `json:"videoUrl,optional"`
  1820. // work_experience | 工作经验
  1821. WorkExperience []WorkExperienceInfo `json:"workExperience,optional"`
  1822. ApiBase *string `json:"apiBase,optional"`
  1823. ApiKey *string `json:"apiKey,optional"`
  1824. // AI信息
  1825. AiInfo *string `json:"aiInfo,optional"`
  1826. ShowChat *bool `json:"showChat,optional"`
  1827. IsVip *bool `json:"isVip,optional"`
  1828. ChatUrl *string `json:"chatUrl,optional"`
  1829. }
  1830. // The response data of employee list | Employee列表数据
  1831. // swagger:model EmployeeListResp
  1832. type EmployeeListResp struct {
  1833. BaseDataInfo
  1834. // Employee list data | Employee列表数据
  1835. Data EmployeeListInfo `json:"data"`
  1836. }
  1837. // Employee list data | Employee列表数据
  1838. // swagger:model EmployeeListInfo
  1839. type EmployeeListInfo struct {
  1840. BaseListInfo
  1841. // The API list data | Employee列表数据
  1842. Data []EmployeeInfo `json:"data"`
  1843. }
  1844. // Get employee list request params | Employee列表请求参数
  1845. // swagger:model EmployeeListReq
  1846. type EmployeeListReq struct {
  1847. PageInfo
  1848. // title | 标题
  1849. Title *string `json:"title,optional"`
  1850. // tags | 个人标签
  1851. Tags *string `json:"tags,optional"`
  1852. // category_id | 分类ID
  1853. CategoryId *uint64 `json:"categoryId,optional"`
  1854. }
  1855. // Employee information response | Employee信息返回体
  1856. // swagger:model EmployeeInfoResp
  1857. type EmployeeInfoResp struct {
  1858. BaseDataInfo
  1859. // Employee information | Employee数据
  1860. Data EmployeeInfo `json:"data"`
  1861. }
  1862. // swagger:model AuthReq
  1863. type AuthReq struct {
  1864. Token *string `json:"token,optional"`
  1865. Data uint64 `json:"data,optional"`
  1866. }
  1867. // swagger:model AuthResp
  1868. type AuthResp struct {
  1869. Token *string `json:"token,optional"`
  1870. Data *uint64 `json:"data,optional"`
  1871. Original interface{} `json:"original,optional"`
  1872. OK interface{} `json:"ok,optional"`
  1873. SecretKey string `json:"secretKey,optional"`
  1874. }
  1875. // The data of work experience information | WorkExperience信息
  1876. // swagger:model WorkExperienceInfo
  1877. type WorkExperienceInfo struct {
  1878. BaseIDInfo
  1879. // employee_id | 员工ID
  1880. EmployeeId *uint64 `json:"employeeId,optional"`
  1881. // start_date | 开始时间
  1882. StartDate *int64 `json:"startDate,optional"`
  1883. StartDateStr *string `json:"startDateStr,optional"`
  1884. // end_date | 结束时间
  1885. EndDate *int64 `json:"endDate,optional"`
  1886. EndDateStr *string `json:"endDateStr,optional"`
  1887. // company | 公司名
  1888. Company *string `json:"company,optional"`
  1889. // experience | 工作内容
  1890. Experience *string `json:"experience,optional"`
  1891. }
  1892. // The response data of work experience list | WorkExperience列表数据
  1893. // swagger:model WorkExperienceListResp
  1894. type WorkExperienceListResp struct {
  1895. BaseDataInfo
  1896. // WorkExperience list data | WorkExperience列表数据
  1897. Data WorkExperienceListInfo `json:"data"`
  1898. }
  1899. // WorkExperience list data | WorkExperience列表数据
  1900. // swagger:model WorkExperienceListInfo
  1901. type WorkExperienceListInfo struct {
  1902. BaseListInfo
  1903. // The API list data | WorkExperience列表数据
  1904. Data []WorkExperienceInfo `json:"data"`
  1905. }
  1906. // Get work experience list request params | WorkExperience列表请求参数
  1907. // swagger:model WorkExperienceListReq
  1908. type WorkExperienceListReq struct {
  1909. PageInfo
  1910. // company | 公司名
  1911. Company *string `json:"company,optional"`
  1912. }
  1913. // WorkExperience information response | WorkExperience信息返回体
  1914. // swagger:model WorkExperienceInfoResp
  1915. type WorkExperienceInfoResp struct {
  1916. BaseDataInfo
  1917. // WorkExperience information | WorkExperience数据
  1918. Data WorkExperienceInfo `json:"data"`
  1919. }
  1920. // The data of tutorial information | Tutorial信息
  1921. // swagger:model TutorialInfo
  1922. type TutorialInfo struct {
  1923. BaseIDInfo
  1924. // employee_id | 员工ID
  1925. EmployeeId *uint64 `json:"employeeId,optional"`
  1926. // index | 序号
  1927. Index *int `json:"index,optional"`
  1928. // title | 标题
  1929. Title *string `json:"title,optional"`
  1930. // content | 内容
  1931. Content *string `json:"content,optional"`
  1932. }
  1933. // The response data of tutorial list | Tutorial列表数据
  1934. // swagger:model TutorialListResp
  1935. type TutorialListResp struct {
  1936. BaseDataInfo
  1937. // Tutorial list data | Tutorial列表数据
  1938. Data TutorialListInfo `json:"data"`
  1939. }
  1940. // Tutorial list data | Tutorial列表数据
  1941. // swagger:model TutorialListInfo
  1942. type TutorialListInfo struct {
  1943. BaseListInfo
  1944. // The API list data | Tutorial列表数据
  1945. Data []TutorialInfo `json:"data"`
  1946. }
  1947. // Get tutorial list request params | Tutorial列表请求参数
  1948. // swagger:model TutorialListReq
  1949. type TutorialListReq struct {
  1950. PageInfo
  1951. // title | 标题
  1952. Title *string `json:"title,optional"`
  1953. // content | 内容
  1954. Content *string `json:"content,optional"`
  1955. }
  1956. // Tutorial information response | Tutorial信息返回体
  1957. // swagger:model TutorialInfoResp
  1958. type TutorialInfoResp struct {
  1959. BaseDataInfo
  1960. // Tutorial information | Tutorial数据
  1961. Data TutorialInfo `json:"data"`
  1962. }
  1963. // The data of employee config information | EmployeeConfig信息
  1964. // swagger:model EmployeeConfigInfo
  1965. type EmployeeConfigInfo struct {
  1966. BaseIDInfo
  1967. // 类型:scene-场景 switch_in-接入方式
  1968. Stype *string `json:"stype,optional"`
  1969. // 标题
  1970. Title *string `json:"title,optional"`
  1971. // 图片地址
  1972. Photo *string `json:"photo,optional"`
  1973. }
  1974. // EmployeeConfig list data | EmployeeConfig列表数据
  1975. // swagger:model EmployeeConfigListInfo
  1976. type EmployeeConfigListInfo struct {
  1977. BaseListInfo
  1978. // The API list data | EmployeeConfig列表数据
  1979. Data []EmployeeConfigInfo `json:"data"`
  1980. }
  1981. // Employee config response | Employee配置信息返回体
  1982. // swagger:model EmployeeConfigListReq
  1983. type EmployeeConfigListReq struct {
  1984. /// 类型:scene-场景 switch_in-接入方式
  1985. Stype *string `json:"stype,optional"`
  1986. }
  1987. // EmployeeConfig information response | EmployeeConfig信息返回体
  1988. type EmployeeConfig struct {
  1989. Scene []EmployeeConfigInfo `json:"scene"`
  1990. SwitchIn []EmployeeConfigInfo `json:"switchIn"`
  1991. }
  1992. // Employee config response | Employee配置信息返回体
  1993. // swagger:model EmployeeConfigListResp
  1994. type EmployeeConfigListResp struct {
  1995. BaseDataInfo
  1996. // Employee information | Employee数据
  1997. Data EmployeeConfig `json:"data"`
  1998. }
  1999. // The data of token information | Token信息
  2000. // swagger:model TokenInfo
  2001. type TokenInfo struct {
  2002. BaseIDInfo
  2003. // 过期时间
  2004. ExpireAt *int64 `json:"expireAt,optional"`
  2005. ExpireAtStr *string `json:"expireAtStr,optional"`
  2006. // Token
  2007. Token *string `json:"token,optional"`
  2008. // Mac地址
  2009. Mac *string `json:"mac,optional"`
  2010. // 租户ID
  2011. OrganizationId *uint64 `json:"organization_id,optional"`
  2012. OrganizationName *string `json:"organizationName,optional"`
  2013. AgentId *uint64 `json:"agent_id,optional"`
  2014. AgentInfo *AgentInfo `json:"agent_info,optional"`
  2015. CustomAgentBase *string `json:"custom_agent_base,optional"`
  2016. CustomAgentKey *string `json:"custom_agent_key,optional"`
  2017. OpenaiBase *string `json:"openai_base,optional"`
  2018. OpenaiKey *string `json:"openai_key,optional"`
  2019. }
  2020. // The response data of token list | Token列表数据
  2021. // swagger:model TokenListResp
  2022. type TokenListResp struct {
  2023. BaseDataInfo
  2024. // Token list data | Token列表数据
  2025. Data TokenListInfo `json:"data"`
  2026. }
  2027. // Token list data | Token列表数据
  2028. // swagger:model TokenListInfo
  2029. type TokenListInfo struct {
  2030. BaseListInfo
  2031. // The API list data | Token列表数据
  2032. Data []TokenInfo `json:"data"`
  2033. }
  2034. // Get token list request params | Token列表请求参数
  2035. // swagger:model TokenListReq
  2036. type TokenListReq struct {
  2037. PageInfo
  2038. // Token
  2039. Token *string `json:"token,optional"`
  2040. // Mac地址
  2041. Mac *string `json:"mac,optional"`
  2042. OrganizationId *uint64 `json:"organization_id,optional"`
  2043. OrganizationName *string `json:"organizationName,optional"`
  2044. }
  2045. // Token information response | Token信息返回体
  2046. // swagger:model TokenInfoResp
  2047. type TokenInfoResp struct {
  2048. BaseDataInfo
  2049. // Token information | Token数据
  2050. Data TokenInfo `json:"data"`
  2051. }
  2052. // swagger:model CheckTokenReq
  2053. type CheckTokenReq struct {
  2054. // Token
  2055. Token *string `json:"token"`
  2056. // Mac地址
  2057. Mac *string `json:"mac"`
  2058. }
  2059. // swagger:model CheckTokenResp
  2060. type CheckTokenResp struct {
  2061. // 是否合法
  2062. Valid *bool `json:"valid"`
  2063. // Sign 签名内容
  2064. Sign *string `json:"sign"`
  2065. // Timestamp 时间戳
  2066. Timestamp *int64 `json:"timestamp"`
  2067. AgentInfo *AgentInfo `json:"agent_info"`
  2068. CustomAgentBase *string `json:"custom_agent_base"`
  2069. CustomAgentKey *string `json:"custom_agent_key"`
  2070. OpenaiBase *string `json:"openai_base"`
  2071. OpenaiKey *string `json:"openai_key"`
  2072. DatasetBase *string `json:"dataset_base"`
  2073. DatasetKey *string `json:"dataset_key"`
  2074. }
  2075. // The data of category information | Category信息
  2076. // swagger:model CategoryInfo
  2077. type CategoryInfo struct {
  2078. BaseIDInfo
  2079. // name | 角色名称
  2080. Name *string `json:"name,optional"`
  2081. // organization_id | 租户ID
  2082. OrganizationId *uint64 `json:"organizationId,optional"`
  2083. }
  2084. // The response data of category list | Category列表数据
  2085. // swagger:model CategoryListResp
  2086. type CategoryListResp struct {
  2087. BaseDataInfo
  2088. // Category list data | Category列表数据
  2089. Data CategoryListInfo `json:"data"`
  2090. }
  2091. // Category list data | Category列表数据
  2092. // swagger:model CategoryListInfo
  2093. type CategoryListInfo struct {
  2094. BaseListInfo
  2095. // The API list data | Category列表数据
  2096. Data []CategoryInfo `json:"data"`
  2097. }
  2098. // Get category list request params | Category列表请求参数
  2099. // swagger:model CategoryListReq
  2100. type CategoryListReq struct {
  2101. PageInfo
  2102. // name | 角色名称
  2103. Name *string `json:"name,optional"`
  2104. }
  2105. // Category information response | Category信息返回体
  2106. // swagger:model CategoryInfoResp
  2107. type CategoryInfoResp struct {
  2108. BaseDataInfo
  2109. // Category information | Category数据
  2110. Data CategoryInfo `json:"data"`
  2111. }
  2112. // The data of agent base information | AgentBase信息
  2113. // swagger:model AgentBaseInfo
  2114. type AgentBaseInfo struct {
  2115. Id *string `json:"id,optional"`
  2116. }
  2117. // The response data of agent base list | AgentBase列表数据
  2118. // swagger:model AgentBaseListResp
  2119. type AgentBaseListResp struct {
  2120. BaseDataInfo
  2121. // AgentBase list data | AgentBase列表数据
  2122. Data AgentBaseListInfo `json:"data"`
  2123. }
  2124. // AgentBase list data | AgentBase列表数据
  2125. // swagger:model AgentBaseListInfo
  2126. type AgentBaseListInfo struct {
  2127. BaseListInfo
  2128. // The API list data | AgentBase列表数据
  2129. Data []AgentBaseInfo `json:"data"`
  2130. }
  2131. // Get agent base list request params | AgentBase列表请求参数
  2132. // swagger:model AgentBaseListReq
  2133. type AgentBaseListReq struct {
  2134. PageInfo
  2135. // q
  2136. Q *string `json:"q,optional"`
  2137. // a
  2138. A *string `json:"a,optional"`
  2139. // dataset_id
  2140. DatasetId *string `json:"datasetId,optional"`
  2141. }
  2142. // AgentBase information response | AgentBase信息返回体
  2143. // swagger:model AgentBaseInfoResp
  2144. type AgentBaseInfoResp struct {
  2145. BaseDataInfo
  2146. // AgentBase information | AgentBase数据
  2147. Data AgentBaseInfo `json:"data"`
  2148. }
  2149. // The data of chat records information | ChatRecords信息
  2150. // swagger:model ChatRecordsInfo
  2151. type ChatRecordsInfo struct {
  2152. BaseIDInfo
  2153. // 内容
  2154. Content *string `json:"content,optional"`
  2155. // 内容类型:1-提问 2-回答
  2156. ContentType *uint8 `json:"contentType,optional"`
  2157. // 角色类型:1-用户 2-智能体
  2158. RoleType *string `json:"roleType,optional"`
  2159. // 会话ID
  2160. SessionId *uint64 `json:"sessionId,optional"`
  2161. // 用户ID
  2162. UserId *uint64 `json:"userId,optional"`
  2163. // 聊天ID
  2164. BotId *uint64 `json:"botId,optional"`
  2165. // 类型:1-微信 2-小程序card 3-智能体
  2166. BotType *uint8 `json:"botType,optional,options=1|2|3"`
  2167. Finish bool `json:"finish,optional"`
  2168. }
  2169. // The response data of chat records list | ChatRecords列表数据
  2170. // swagger:model ChatRecordsListResp
  2171. type ChatRecordsListResp struct {
  2172. BaseDataInfo
  2173. // ChatRecords list data | ChatRecords列表数据
  2174. Data ChatRecordsListInfo `json:"data"`
  2175. }
  2176. // ChatRecords list data | ChatRecords列表数据
  2177. // swagger:model ChatRecordsListInfo
  2178. type ChatRecordsListInfo struct {
  2179. BaseListInfo
  2180. // The API list data | ChatRecords列表数据
  2181. Data []ChatRecordsInfo `json:"data"`
  2182. }
  2183. // Get chat records list request params | ChatRecords列表请求参数
  2184. // swagger:model ChatRecordsListReq
  2185. type ChatRecordsListReq struct {
  2186. PageInfo
  2187. SessionId *uint64 `json:"sessionId"`
  2188. BotId *uint64 `json:"botId,optional"`
  2189. BotType *uint8 `json:"botType,optional"`
  2190. }
  2191. // ChatRecords information response | ChatRecords信息返回体
  2192. // swagger:model ChatRecordsInfoResp
  2193. type ChatRecordsInfoResp struct {
  2194. BaseDataInfo
  2195. // ChatRecords information | ChatRecords数据
  2196. Data ChatRecordsInfo `json:"data"`
  2197. }
  2198. // swagger:model ChatRecommendReq
  2199. type ChatRecommendReq struct {
  2200. SessionId *uint64 `json:"sessionId"`
  2201. }
  2202. // swagger:model ChatRecommendResp
  2203. type ChatRecommendResp struct {
  2204. BaseDataInfo
  2205. // The API list data | ChatRecords列表数据
  2206. Data ChatRecommend `json:"data"`
  2207. }
  2208. type ChatRecommend struct {
  2209. Data []string `json:"data"`
  2210. SessionId uint64 `json:"sessionId"`
  2211. }
  2212. // swagger:model ChatAskReq
  2213. type ChatAskReq struct {
  2214. CardId *uint64 `json:"cardId"`
  2215. Question *string `json:"question"`
  2216. SessionId *int `json:"sessionId"`
  2217. }
  2218. // swagger:model ChatAskResp
  2219. type ChatAskResp struct {
  2220. BaseDataInfo
  2221. Data *string `json:"data"`
  2222. }
  2223. // swagger:model GptChatReq
  2224. type GptChatReq struct {
  2225. ConversationId *string `json:"conversationId,optional"`
  2226. Content *string `json:"content"`
  2227. AgentId *uint64 `json:"agentId"`
  2228. }
  2229. // swagger:model GptMessageReq
  2230. type GptMessageReq struct {
  2231. ConversationId *string `json:"conversationId,optional"`
  2232. FirstId *string `json:"firstId,optional"`
  2233. Limit *int `json:"limit"`
  2234. AgentId *uint64 `json:"agentId"`
  2235. }
  2236. // swagger:model GptMessageResp
  2237. type GptMessageResp struct {
  2238. BaseDataInfo
  2239. Data GptMessageList `json:"data"`
  2240. }
  2241. type GptMessageList struct {
  2242. HasMore bool `json:"hasMore"`
  2243. Data []Message `json:"data"`
  2244. }
  2245. type Message struct {
  2246. Id *string `json:"id"`
  2247. ConversationId *string `json:"conversationId,optional"`
  2248. Query *string `json:"query"`
  2249. Answer *string `json:"answer"`
  2250. Inputs interface{} `json:"inputs"`
  2251. CreatedAt *int `json:"createdAt"`
  2252. }
  2253. // swagger:model GptsSessionReq
  2254. type GptsSessionReq struct {
  2255. Limit *int `json:"limit"`
  2256. LastId *string `json:"lastId,optional"`
  2257. AgentId *uint64 `json:"agentId"`
  2258. }
  2259. // swagger:model GptsSessionResp
  2260. type GptsSessionResp struct {
  2261. BaseDataInfo
  2262. Data GptsSessionList `json:"data"`
  2263. }
  2264. type GptsSessionList struct {
  2265. HasMore bool `json:"hasMore"`
  2266. Data []Session `json:"data"`
  2267. }
  2268. type Session struct {
  2269. Id *string `json:"id"`
  2270. Name *string `json:"name"`
  2271. CreatedAt *int `json:"createdAt"`
  2272. Inputs interface{} `json:"inputs"`
  2273. }
  2274. // swagger:model GptsDeleteSessionReq
  2275. type GptsDeleteSessionReq struct {
  2276. AgentId *uint64 `json:"agentId"`
  2277. ConversationId *string `json:"conversationId"`
  2278. }
  2279. // swagger:model GptsRenameSessionReq
  2280. type GptsRenameSessionReq struct {
  2281. AgentId *uint64 `json:"agentId"`
  2282. ConversationId *string `json:"conversationId"`
  2283. Name *string `json:"name"`
  2284. }
  2285. // The data of chat session information | ChatSession信息
  2286. // swagger:model ChatSessionInfo
  2287. type ChatSessionInfo struct {
  2288. BaseIDInfo
  2289. // 名称
  2290. Name *string `json:"name,optional"`
  2291. // 用户ID
  2292. UserId *uint64 `json:"userId,optional"`
  2293. UserName *string `json:"userName,optional"`
  2294. // 聊天ID
  2295. BotId *uint64 `json:"botId,optional"`
  2296. // 主体名称
  2297. BotName *string `json:"botName,optional"`
  2298. // 类型:1-微信 2-小程序card 3-智能体
  2299. BotType *uint8 `json:"botType,optional"`
  2300. // 类型:1-微信 2-小程序card 3-智能体
  2301. BotTypeStr *string `json:"botTypeStr,optional"`
  2302. }
  2303. // The response data of chat session list | ChatSession列表数据
  2304. // swagger:model ChatSessionListResp
  2305. type ChatSessionListResp struct {
  2306. BaseDataInfo
  2307. // ChatSession list data | ChatSession列表数据
  2308. Data ChatSessionListInfo `json:"data"`
  2309. }
  2310. // ChatSession list data | ChatSession列表数据
  2311. // swagger:model ChatSessionListInfo
  2312. type ChatSessionListInfo struct {
  2313. BaseListInfo
  2314. // The API list data | ChatSession列表数据
  2315. Data []ChatSessionInfo `json:"data"`
  2316. }
  2317. // Get chat session list request params | ChatSession列表请求参数
  2318. // swagger:model ChatSessionListReq
  2319. type ChatSessionListReq struct {
  2320. PageInfo
  2321. BotId *uint64 `json:"botId,optional"`
  2322. BotType *uint8 `json:"botType,optional"`
  2323. BotName *string `json:"botName,optional"`
  2324. }
  2325. // ChatSession information response | ChatSession信息返回体
  2326. // swagger:model ChatSessionInfoResp
  2327. type ChatSessionInfoResp struct {
  2328. BaseDataInfo
  2329. // ChatSession information | ChatSession数据
  2330. Data ChatSessionInfo `json:"data"`
  2331. }
  2332. // The data of wx card information | WxCard信息
  2333. // swagger:model WxCardInfo
  2334. type WxCardInfo struct {
  2335. BaseIDInfo
  2336. // user表ID
  2337. UserId *uint64 `json:"userId,optional"`
  2338. // wx表ID
  2339. WxUserId *uint64 `json:"wxUserId,optional"`
  2340. // 头像
  2341. Avatar *string `json:"avatar,optional"`
  2342. // logo
  2343. Logo *string `json:"logo,optional"`
  2344. // 名称
  2345. Name *string `json:"name,optional"`
  2346. // 公司
  2347. Company *string `json:"company,optional"`
  2348. // 地址
  2349. Address *string `json:"address,optional"`
  2350. // 手机号
  2351. Phone *string `json:"phone,optional"`
  2352. // 公众号
  2353. OfficialAccount *string `json:"officialAccount,optional"`
  2354. // 微信号
  2355. WechatAccount *string `json:"wechatAccount,optional"`
  2356. // 邮箱
  2357. Email *string `json:"email,optional"`
  2358. // 聊天信息
  2359. ApiBase *string `json:"apiBase,optional"`
  2360. ApiKey *string `json:"apiKey,optional"`
  2361. // AI信息
  2362. AiInfo *string `json:"aiInfo,optional"`
  2363. // 个人介绍
  2364. Intro *string `json:"intro,optional"`
  2365. ShowChat *bool `json:"showChat,optional"`
  2366. ShowAi *bool `json:"showAi,optional"`
  2367. IsVip *bool `json:"isVip,optional"`
  2368. }
  2369. // swagger:model WxCardSimpleInfo
  2370. type WxCardSimpleInfo struct {
  2371. ID *uint64 `json:"id,optional"`
  2372. // 头像
  2373. Avatar *string `json:"avatar,optional"`
  2374. // 名称
  2375. Name *string `json:"name,optional"`
  2376. Type *string `json:"type,optional"`
  2377. }
  2378. // The response data of wx card list | WxCard列表数据
  2379. // swagger:model WxCardListResp
  2380. type WxCardListResp struct {
  2381. BaseDataInfo
  2382. // WxCard list data | WxCard列表数据
  2383. Data WxCardListInfo `json:"data"`
  2384. }
  2385. // WxCard list data | WxCard列表数据
  2386. // swagger:model WxCardListInfo
  2387. type WxCardListInfo struct {
  2388. BaseListInfo
  2389. // The API list data | WxCard列表数据
  2390. Data []WxCardInfo `json:"data"`
  2391. }
  2392. // Get wx card list request params | WxCard列表请求参数
  2393. // swagger:model WxCardListReq
  2394. type WxCardListReq struct {
  2395. PageInfo
  2396. // 头像
  2397. Avatar *string `json:"avatar,optional"`
  2398. // logo
  2399. Logo *string `json:"logo,optional"`
  2400. // 名称
  2401. Name *string `json:"name,optional"`
  2402. }
  2403. // WxCard information response | WxCard信息返回体
  2404. // swagger:model WxCardInfoResp
  2405. type WxCardInfoResp struct {
  2406. BaseDataInfo
  2407. // WxCard information | WxCard数据
  2408. Data WxCardInfo `json:"data"`
  2409. }
  2410. // swagger:model QrcodeReq
  2411. type QrcodeReq struct {
  2412. Path string `form:"path"`
  2413. Width int64 `form:"width"`
  2414. EnvVersion string `form:"envVersion"`
  2415. }
  2416. // The data of wx card user information | WxCardUser信息
  2417. // swagger:model WxCardUserInfo
  2418. type WxCardUserInfo struct {
  2419. BaseIDInfo
  2420. // 微信id
  2421. Wxid *string `json:"wxid,optional"`
  2422. // 微信号
  2423. Account *string `json:"account,optional"`
  2424. // 头像
  2425. Avatar *string `json:"avatar,optional"`
  2426. // 昵称
  2427. Nickname *string `json:"nickname,optional"`
  2428. // 备注名
  2429. Remark *string `json:"remark,optional"`
  2430. // 手机号
  2431. Phone *string `json:"phone,optional"`
  2432. // OpenID
  2433. OpenId *string `json:"openId,optional"`
  2434. // UnionID
  2435. UnionId *string `json:"unionId,optional"`
  2436. // SessionKey
  2437. SessionKey *string `json:"sessionKey,optional"`
  2438. // IsVip
  2439. IsVip *string `json:"isVip,optional"`
  2440. }
  2441. // The response data of wx card user list | WxCardUser列表数据
  2442. // swagger:model WxCardUserListResp
  2443. type WxCardUserListResp struct {
  2444. BaseDataInfo
  2445. // WxCardUser list data | WxCardUser列表数据
  2446. Data WxCardUserListInfo `json:"data"`
  2447. }
  2448. // WxCardUser list data | WxCardUser列表数据
  2449. // swagger:model WxCardUserListInfo
  2450. type WxCardUserListInfo struct {
  2451. BaseListInfo
  2452. // The API list data | WxCardUser列表数据
  2453. Data []WxCardUserInfo `json:"data"`
  2454. }
  2455. // Get wx card user list request params | WxCardUser列表请求参数
  2456. // swagger:model WxCardUserListReq
  2457. type WxCardUserListReq struct {
  2458. PageInfo
  2459. // 微信id
  2460. Wxid *string `json:"wxid,optional"`
  2461. // 微信号
  2462. Account *string `json:"account,optional"`
  2463. // 头像
  2464. Avatar *string `json:"avatar,optional"`
  2465. // 昵称
  2466. Nickname *string `json:"nickname,optional"`
  2467. }
  2468. // WxCardUser information response | WxCardUser信息返回体
  2469. // swagger:model WxCardUserInfoResp
  2470. type WxCardUserInfoResp struct {
  2471. BaseDataInfo
  2472. // WxCardUser information | WxCardUser数据
  2473. Data WxCardUserInfo `json:"data"`
  2474. }
  2475. // The data of wx card visit information | WxCardVisit信息
  2476. // swagger:model WxCardVisitInfo
  2477. type WxCardVisitInfo struct {
  2478. BaseIDInfo
  2479. // user表ID
  2480. UserId *uint64 `json:"userId,optional"`
  2481. // user名
  2482. UserName *string `json:"userName,optional"`
  2483. // 被访ID
  2484. BotId *uint64 `json:"botId,optional"`
  2485. // 类型:1-微信 2-小程序 3-智能体
  2486. BotType *uint8 `json:"botType,optional"`
  2487. // 类型:1-微信 2-小程序 3-智能体
  2488. BotTypeStr *string `json:"botTypeStr,optional"`
  2489. CardInfo WxCardSimpleInfo `json:"cardInfo,optional,omitempty"`
  2490. }
  2491. // swagger:model WxCardVisitReq
  2492. type WxCardVisitReq struct {
  2493. BaseIDInfo
  2494. // user表ID
  2495. UserId *uint64 `json:"userId,optional"`
  2496. // 被访ID
  2497. BotId *uint64 `json:"botId,optional"`
  2498. // 类型:1-微信 2-小程序 3-智能体
  2499. BotType *uint8 `json:"botType,optional"`
  2500. }
  2501. // swagger:model WxCardVisitSingleInfo
  2502. type WxCardVisitSingleInfo struct {
  2503. BaseIDInfo
  2504. // user表ID
  2505. UserId *uint64 `json:"userId,optional"`
  2506. // 被访ID
  2507. BotId *uint64 `json:"botId,optional"`
  2508. // 类型:1-微信 2-小程序 3-智能体
  2509. BotType *uint8 `json:"botType,optional"`
  2510. CardInfo WxCardInfo `json:"cardInfo,optional"`
  2511. }
  2512. // The response data of wx card visit list | WxCardVisit列表数据
  2513. // swagger:model WxCardVisitListResp
  2514. type WxCardVisitListResp struct {
  2515. BaseDataInfo
  2516. // WxCardVisit list data | WxCardVisit列表数据
  2517. Data WxCardVisitListInfo `json:"data"`
  2518. }
  2519. // WxCardVisit list data | WxCardVisit列表数据
  2520. // swagger:model WxCardVisitListInfo
  2521. type WxCardVisitListInfo struct {
  2522. BaseListInfo
  2523. // The API list data | WxCardVisit列表数据
  2524. Data []WxCardVisitInfo `json:"data"`
  2525. }
  2526. // Get wx card visit list request params | WxCardVisit列表请求参数
  2527. // swagger:model WxCardVisitListReq
  2528. type WxCardVisitListReq struct {
  2529. PageInfo
  2530. BotId *uint64 `json:"botId,optional"`
  2531. BotType *uint8 `json:"botType,optional"`
  2532. BotName *string `json:"botName,optional"`
  2533. }
  2534. // WxCardVisit information response | WxCardVisit信息返回体
  2535. // swagger:model WxCardVisitInfoResp
  2536. type WxCardVisitInfoResp struct {
  2537. BaseDataInfo
  2538. // WxCardVisit information | WxCardVisit数据
  2539. Data WxCardVisitInfo `json:"data"`
  2540. }
  2541. // swagger:model AvatarInfo
  2542. type AvatarInfo struct {
  2543. RequestId *string `json:"requestId"`
  2544. SessionId *string `json:"SessionId"`
  2545. Token *string `json:"token"`
  2546. Channel Channel `json:"channel"`
  2547. }
  2548. type Channel struct {
  2549. ChannelId *string `json:"channelId"`
  2550. Token *string `json:"token"`
  2551. Type *string `json:"type"`
  2552. ExpiredTime *string `json:"expiredTime"`
  2553. Nonce *string `json:"nonce"`
  2554. UserId *string `json:"userId"`
  2555. AppId *string `json:"appId"`
  2556. UserInfoInChannel *string `json:"userInfoInChannel"`
  2557. Gslb []*string `json:"gslb"`
  2558. }
  2559. // start avatar request | 启动数字人
  2560. // swagger:model AvatarConfigReq
  2561. type AvatarConfigReq struct {
  2562. // 名片 ID
  2563. CardId *uint64 `json:"card_id,optional"`
  2564. }
  2565. // start avatar response | 启动数字人
  2566. // swagger:model AvatarConfigResp
  2567. type AvatarConfigResp struct {
  2568. BaseDataInfo
  2569. // Agent information | Agent数据
  2570. Data AvatarInfo `json:"data"`
  2571. Extra Extra `json:"extra"`
  2572. }
  2573. type Extra struct {
  2574. Live int64 `json:"live"`
  2575. Total int64 `json:"total"`
  2576. }
  2577. // swagger:model AvatarStsResp
  2578. type AvatarStsResp struct {
  2579. BaseDataInfo
  2580. // Sts information | Sts 数据
  2581. Data StsInfo `json:"data"`
  2582. }
  2583. // swagger:model StsInfo
  2584. type StsInfo struct {
  2585. Expiration *string `json:"expiration"`
  2586. AccessKeyId *string `json:"accessKeyId"`
  2587. AccessKeySecret *string `json:"accessKeySecret"`
  2588. SecurityToken *string `json:"securityToken"`
  2589. RequestId *string `json:"requestId"`
  2590. }
  2591. // swagger:model AvatarSignatureResp
  2592. type AvatarSignatureResp struct {
  2593. BaseDataInfo
  2594. // Sts information | Sts 数据
  2595. Data SignatureInfo `json:"data"`
  2596. }
  2597. // swagger:model SignatureInfo
  2598. type SignatureInfo struct {
  2599. Key *string `json:"key"`
  2600. OSSAccessKeyId *string `json:"OSSAccessKeyId"`
  2601. Policy *string `json:"policy"`
  2602. Signature *string `json:"signature"`
  2603. }
  2604. // send text | 数字人-发送消息
  2605. // swagger:model SendTextReq
  2606. type SendTextReq struct {
  2607. CardId *uint64 `json:"cardId"`
  2608. SessionId *string `json:"sessionId"`
  2609. Text *string `json:"text"`
  2610. IsStream *bool `json:"isStream,optional"`
  2611. Index *int32 `json:"index,optional"`
  2612. Position *string `json:"position,optional"`
  2613. }
  2614. // swagger:model SendTextResp
  2615. type SendTextResp struct {
  2616. BaseDataInfo
  2617. Data SendText `json:"data"`
  2618. }
  2619. type SendText struct {
  2620. SessionId *string `json:"sessionId"`
  2621. UniqueCode *string `json:"uniqueCode"`
  2622. }
  2623. // stop instance | 数字人-停止实例
  2624. // swagger:model StopInstanceReq
  2625. type StopInstanceReq struct {
  2626. CardId *uint64 `json:"cardId"`
  2627. SessionId *string `json:"sessionId"`
  2628. }
  2629. // swagger:model StopInstanceResp
  2630. type StopInstanceResp struct {
  2631. BaseDataInfo
  2632. Data StopInstance `json:"data"`
  2633. }
  2634. type StopInstance struct {
  2635. SessionId *string `json:"sessionId"`
  2636. RequestId *string `json:"requestId"`
  2637. }
  2638. // The data of aliyun avatar information | AliyunAvatar信息
  2639. // swagger:model AliyunAvatarInfo
  2640. type AliyunAvatarInfo struct {
  2641. BaseIDInfo
  2642. // user_id | wx_card_user_id
  2643. UserId *uint64 `json:"userId,optional"`
  2644. // biz_id | BizId
  2645. BizId *string `json:"bizId,optional"`
  2646. // access_key_id | AccessKeyId
  2647. AccessKeyId *string `json:"accessKeyId,optional"`
  2648. // access_key_secret | AccessKeySecret
  2649. AccessKeySecret *string `json:"accessKeySecret,optional"`
  2650. // app_id | AppId
  2651. AppId *string `json:"appId,optional"`
  2652. // tenant_id | TenantId
  2653. TenantId *uint64 `json:"TenantId,optional"`
  2654. // response | 阿里云avatar响应
  2655. Response *string `json:"response,optional"`
  2656. // token | Token
  2657. Token *string `json:"token,optional"`
  2658. // session_id | SessionId
  2659. SessionId *string `json:"sessionId,optional"`
  2660. }
  2661. // The response data of aliyun avatar list | AliyunAvatar列表数据
  2662. // swagger:model AliyunAvatarListResp
  2663. type AliyunAvatarListResp struct {
  2664. BaseDataInfo
  2665. // AliyunAvatar list data | AliyunAvatar列表数据
  2666. Data AliyunAvatarListInfo `json:"data"`
  2667. }
  2668. // AliyunAvatar list data | AliyunAvatar列表数据
  2669. // swagger:model AliyunAvatarListInfo
  2670. type AliyunAvatarListInfo struct {
  2671. BaseListInfo
  2672. // The API list data | AliyunAvatar列表数据
  2673. Data []AliyunAvatarInfo `json:"data"`
  2674. }
  2675. // Get aliyun avatar list request params | AliyunAvatar列表请求参数
  2676. // swagger:model AliyunAvatarListReq
  2677. type AliyunAvatarListReq struct {
  2678. PageInfo
  2679. // biz_id | BizId
  2680. BizId *string `json:"bizId,optional"`
  2681. // access_key_id | AccessKeyId
  2682. AccessKeyId *string `json:"accessKeyId,optional"`
  2683. // access_key_secret | AccessKeySecret
  2684. AccessKeySecret *string `json:"accessKeySecret,optional"`
  2685. }
  2686. // AliyunAvatar information response | AliyunAvatar信息返回体
  2687. // swagger:model AliyunAvatarInfoResp
  2688. type AliyunAvatarInfoResp struct {
  2689. BaseDataInfo
  2690. // AliyunAvatar information | AliyunAvatar数据
  2691. Data AliyunAvatarInfo `json:"data"`
  2692. }
  2693. // The response data of UsageDetail information | UsageDetail信息
  2694. // swagger:model UsageDetailInfo
  2695. type UsageDetailInfo 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. // 微信id或open_id
  2704. ReceiverId *string `json:"receiverId,optional"`
  2705. // 1 cow-basic 2 cow-agent 3 cow-sop 4 mp-card 5 mp-employee
  2706. App *string
  2707. // 名片会话id
  2708. SessionId *uint64 `json:"sessionId,optional"`
  2709. // 请求内容
  2710. Request *string `json:"request,optional"`
  2711. // 响应内容
  2712. Response *string `json:"response,optional"`
  2713. // 使用token总数
  2714. TotalTokens *uint64 `json:"totalTokens,optional"`
  2715. // 请求token数
  2716. PromptTokens *uint64 `json:"promptTokens,optional"`
  2717. // 响应token数
  2718. CompletionTokens *uint64 `json:"completionTokens,optional"`
  2719. // 组织ID
  2720. OrganizationId *uint64 `json:"organizationId,optional"`
  2721. }
  2722. // The response data of UsageDetail list | UsageDetail列表数据
  2723. // swagger:model UsageDetailListResp
  2724. type UsageDetailListResp struct {
  2725. BaseDataInfo
  2726. // UsageDetail list data | UsageDetail列表数据
  2727. Data UsageDetailListInfo `json:"data"`
  2728. }
  2729. // UsageDetail list data | UsageDetail列表数据
  2730. // swagger:model UsageDetailListInfo
  2731. type UsageDetailListInfo struct {
  2732. BaseListInfo
  2733. // The API list data | UsageDetail列表数据
  2734. Data []UsageDetailInfo `json:"data"`
  2735. }
  2736. // Get wx list request params | Wx列表请求参数
  2737. // swagger:model UsageDetailListReq
  2738. type UsageDetailListReq struct {
  2739. PageInfo
  2740. // 租户id
  2741. BotId *string `json:"botId,optional"`
  2742. }
  2743. // The response data of UsageTotal information | UsageTotal信息
  2744. // swagger:model UsageTotalInfo
  2745. type UsageTotalInfo struct {
  2746. BaseIDInfo
  2747. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  2748. Status *uint8 `json:"status,optional"`
  2749. // 1 微信 2 名片
  2750. Type *int
  2751. // 微信或名片id
  2752. BotId *string `json:"botId,optional"`
  2753. // 使用token总数
  2754. TotalTokens *uint64 `json:"totalTokens,optional"`
  2755. // 重制后的起始usage_detail 索引
  2756. StartIndex *uint64 `json:"startIndex,optional"`
  2757. // usage_detail 索引
  2758. EndIndex *uint64 `json:"endIndex,optional"`
  2759. // 组织ID
  2760. OrganizationId *uint64 `json:"organizationId,optional"`
  2761. }
  2762. // The response data of UsageTotal list | UsageTotal列表数据
  2763. // swagger:model UsageTotalListResp
  2764. type UsageTotalListResp struct {
  2765. BaseDataInfo
  2766. // UsageTotal list data | UsageTotal列表数据
  2767. Data UsageTotalListInfo `json:"data"`
  2768. }
  2769. // UsageTotal list data | UsageTotal列表数据
  2770. // swagger:model UsageTotalListInfo
  2771. type UsageTotalListInfo struct {
  2772. BaseListInfo
  2773. // The API list data | UsageTotal列表数据
  2774. Data []UsageTotalInfo `json:"data"`
  2775. }
  2776. // Get wx list request params | Wx列表请求参数
  2777. // swagger:model UsageTotalListReq
  2778. type UsageTotalListReq struct {
  2779. PageInfo
  2780. // 租户id
  2781. OrganizationId *uint64 `json:"organizationId,optional"`
  2782. }
  2783. // The data of alloc agent information | AllocAgent信息
  2784. // swagger:model AllocAgentInfo
  2785. type AllocAgentInfo struct {
  2786. BaseIDInfo
  2787. // user_id | 前台用户ID
  2788. UserId *string `json:"userId,optional"`
  2789. // organization_id | 租户ID
  2790. OrganizationId *uint64 `json:"organizationId,optional"`
  2791. // agents | 分配的智能体IDs
  2792. Agents []uint64 `json:"agents,optional"`
  2793. // status | 状态 1-正常 2-禁用
  2794. Status *int `json:"status,optional"`
  2795. }
  2796. type AllocAgentQuery struct {
  2797. // user_id | 前台用户ID
  2798. UserId *string `json:"userId,optional"`
  2799. // organization_id | 租户ID
  2800. OrganizationId *uint64 `json:"organizationId,optional"`
  2801. }
  2802. // The response data of alloc agent list | AllocAgent列表数据
  2803. // swagger:model AllocAgentListResp
  2804. type AllocAgentListResp struct {
  2805. BaseDataInfo
  2806. // AllocAgent list data | AllocAgent列表数据
  2807. Data AllocAgentListInfo `json:"data"`
  2808. }
  2809. // AllocAgent list data | AllocAgent列表数据
  2810. // swagger:model AllocAgentListInfo
  2811. type AllocAgentListInfo struct {
  2812. BaseListInfo
  2813. // The API list data | AllocAgent列表数据
  2814. Data []AllocAgentInfo `json:"data"`
  2815. }
  2816. // Get alloc agent list request params | AllocAgent列表请求参数
  2817. // swagger:model AllocAgentListReq
  2818. type AllocAgentListReq struct {
  2819. PageInfo
  2820. // agents | 分配的智能体IDs
  2821. Agents *string `json:"agents,optional"`
  2822. }
  2823. // AllocAgent information response | AllocAgent信息返回体
  2824. // swagger:model AllocAgentInfoResp
  2825. type AllocAgentInfoResp struct {
  2826. BaseDataInfo
  2827. // AllocAgent information | AllocAgent数据
  2828. Data AllocAgentInfo `json:"data"`
  2829. }
  2830. // swagger:model SignatureResp
  2831. type SignatureResp struct {
  2832. BaseDataInfo
  2833. // 临时签名
  2834. Data *string `json:"data"`
  2835. }
  2836. // swagger:model MessageReq
  2837. type MessageReq struct {
  2838. // 大模型生成内容
  2839. UserId *uint64 `json:"user_id"`
  2840. Text *string `json:"text"`
  2841. }
  2842. // swagger:model ChatReq
  2843. type ChatReq struct {
  2844. // 大模型生成内容
  2845. AvatarId *string `json:"avatar_id"`
  2846. UserId *uint64 `json:"user_id"`
  2847. Text *string `json:"text"`
  2848. }
  2849. // swagger:model DashboardInfo
  2850. type DashboardInfo struct {
  2851. BaseIDInfo
  2852. }
  2853. // swagger:model ChartsReq
  2854. type ChartsReq struct {
  2855. StartDate *string `json:"start_date"`
  2856. EndDate *string `json:"end_date"`
  2857. // 租户id
  2858. OrganizationId *uint64 `json:"organizationId,optional"`
  2859. Wxid *string `json:"wxid,optional"`
  2860. }
  2861. // swagger:model ChartsResp
  2862. type ChartsResp struct {
  2863. BaseDataInfo
  2864. Data *ChartsData `json:"data"`
  2865. }
  2866. type ChartsData struct {
  2867. AiResponse *ChartsUint `json:"ai_response"`
  2868. SopRun *ChartsUint `json:"sop_run"`
  2869. TotalFriend *ChartsUint `json:"total_friend"`
  2870. TotalGroup *ChartsUint `json:"total_group"`
  2871. AccountBalance *ChartsUint `json:"account_balance"`
  2872. ConsumeToken *ChartsUint `json:"consume_token"`
  2873. ActiveUser *ChartsUint `json:"active_user"`
  2874. NewUser *ChartsInt `json:"new_user"`
  2875. LabelDist []LabelsData `json:"label_dist"`
  2876. }
  2877. type ChartsUint struct {
  2878. Count uint64 `json:"count"`
  2879. Rate *float32 `json:"rate"`
  2880. Label []string `json:"label"`
  2881. Val []uint64 `json:"val"`
  2882. LabelText string `json:"labelText"`
  2883. Tip *string `json:"tip"`
  2884. }
  2885. type ChartsInt struct {
  2886. Count int64 `json:"count"`
  2887. Rate *float32 `json:"rate"`
  2888. Label []string `json:"label"`
  2889. Val []int64 `json:"val"`
  2890. LabelText string `json:"labelText"`
  2891. Tip *string `json:"tip"`
  2892. }
  2893. type LabelsData struct {
  2894. Value uint64 `json:"value"`
  2895. Name string `json:"name"`
  2896. }
  2897. // swagger:model WxReq
  2898. type WxReq struct {
  2899. PageInfo
  2900. EndDate *string `json:"end_date"`
  2901. // 租户id
  2902. OrganizationId *uint64 `json:"organizationId,optional"`
  2903. Wxid *string `json:"wxid,optional"`
  2904. }
  2905. // swagger:model WxResp
  2906. type WxResp struct {
  2907. BaseDataInfo
  2908. Data WxList `json:"data"`
  2909. }
  2910. type WxList struct {
  2911. BaseListInfo
  2912. Data []WxData `json:"data"`
  2913. }
  2914. type WxData struct {
  2915. Nickname string `json:"nickname"`
  2916. TotalFriend uint64 `json:"total_friend"`
  2917. TotalGroup uint64 `json:"total_group"`
  2918. InteractionRate float32 `json:"interaction_rate"`
  2919. }
  2920. // The data of credit balance information | CreditBalance信息
  2921. // swagger:model CreditBalanceInfo
  2922. type CreditBalanceInfo struct {
  2923. BaseIDInfo
  2924. // user_id | 用户ID
  2925. UserId *string `json:"userId,optional"`
  2926. // role | 角色设定
  2927. Balance *float32 `json:"balance,optional"`
  2928. // status | 状态 1-正常 2-禁用
  2929. Status *int `json:"status,optional"`
  2930. // organization_id | 租户ID
  2931. OrganizationId *uint64 `json:"organizationId,optional"`
  2932. }
  2933. // The response data of credit balance list | CreditBalance列表数据
  2934. // swagger:model CreditBalanceListResp
  2935. type CreditBalanceListResp struct {
  2936. BaseDataInfo
  2937. // CreditBalance list data | CreditBalance列表数据
  2938. Data CreditBalanceListInfo `json:"data"`
  2939. }
  2940. // CreditBalance list data | CreditBalance列表数据
  2941. // swagger:model CreditBalanceListInfo
  2942. type CreditBalanceListInfo struct {
  2943. BaseListInfo
  2944. // The API list data | CreditBalance列表数据
  2945. Data []CreditBalanceInfo `json:"data"`
  2946. }
  2947. // Get credit balance list request params | CreditBalance列表请求参数
  2948. // swagger:model CreditBalanceListReq
  2949. type CreditBalanceListReq struct {
  2950. PageInfo
  2951. // user_id | 用户ID
  2952. UserId *string `json:"userId,optional"`
  2953. OrganizationId *uint64 `json:"organizationId,optional"`
  2954. }
  2955. // CreditBalance information response | CreditBalance信息返回体
  2956. // swagger:model CreditBalanceInfoResp
  2957. type CreditBalanceInfoResp struct {
  2958. BaseDataInfo
  2959. // CreditBalance information | CreditBalance数据
  2960. Data CreditBalanceInfo `json:"data"`
  2961. }
  2962. // The data of credit usage information | CreditUsage信息
  2963. // swagger:model CreditUsageInfo
  2964. type CreditUsageInfo struct {
  2965. BaseIDInfo
  2966. // user_id | 用户ID
  2967. UserId *string `json:"userId,optional"`
  2968. // number | 积分改变量
  2969. Number *float32 `json:"number,optional"`
  2970. // status | 状态 1-正常 2-禁用
  2971. Status *int `json:"status,optional"`
  2972. // ntype | 积分变化类型:1-消耗 2-增加
  2973. Ntype *int `json:"ntype,optional"`
  2974. // table | 积分变化表名
  2975. Table *string `json:"table,optional"`
  2976. // organization_id | 租户ID
  2977. OrganizationId *uint64 `json:"organizationId,optional"`
  2978. // nid | 积分变化关联信息ID
  2979. Nid *uint64 `json:"nid,optional"`
  2980. // reason | 积分变动原因
  2981. Reason *string `json:"reason,optional"`
  2982. // operator | 积分变动人
  2983. Operator *string `json:"operator,optional"`
  2984. }
  2985. // The response data of credit usage list | CreditUsage列表数据
  2986. // swagger:model CreditUsageListResp
  2987. type CreditUsageListResp struct {
  2988. BaseDataInfo
  2989. // CreditUsage list data | CreditUsage列表数据
  2990. Data CreditUsageListInfo `json:"data"`
  2991. }
  2992. // CreditUsage list data | CreditUsage列表数据
  2993. // swagger:model CreditUsageListInfo
  2994. type CreditUsageListInfo struct {
  2995. BaseListInfo
  2996. // The API list data | CreditUsage列表数据
  2997. Data []CreditUsageInfo `json:"data"`
  2998. }
  2999. // Get credit usage list request params | CreditUsage列表请求参数
  3000. // swagger:model CreditUsageListReq
  3001. type CreditUsageListReq struct {
  3002. PageInfo
  3003. // user_id | 用户ID
  3004. UserId *string `json:"userId,optional"`
  3005. // table | 积分变化表名
  3006. Table *string `json:"table,optional"`
  3007. // reason | 积分变动原因
  3008. Reason *string `json:"reason,optional"`
  3009. }
  3010. // CreditUsage information response | CreditUsage信息返回体
  3011. // swagger:model CreditUsageInfoResp
  3012. type CreditUsageInfoResp struct {
  3013. BaseDataInfo
  3014. // CreditUsage information | CreditUsage数据
  3015. Data CreditUsageInfo `json:"data"`
  3016. }
  3017. // The data of pay recharge information | PayRecharge信息
  3018. // swagger:model PayRechargeInfo
  3019. type PayRechargeInfo struct {
  3020. BaseIDInfo
  3021. // user_id | 用户ID
  3022. UserId *string `json:"userId,optional"`
  3023. // number | 变化积分数
  3024. Number *float32 `json:"number,optional"`
  3025. // status | 状态 1-正常 2-禁用
  3026. Status *int `json:"status,optional"`
  3027. // money | 充值钱数
  3028. Money *float32 `json:"money,optional"`
  3029. // out_trade_no | 外部订单号
  3030. OutTradeNo *string `json:"outTradeNo,optional"`
  3031. // organization_id | 租户ID
  3032. OrganizationId *uint64 `json:"organizationId,optional"`
  3033. }
  3034. // The response data of pay recharge list | PayRecharge列表数据
  3035. // swagger:model PayRechargeListResp
  3036. type PayRechargeListResp struct {
  3037. BaseDataInfo
  3038. // PayRecharge list data | PayRecharge列表数据
  3039. Data PayRechargeListInfo `json:"data"`
  3040. }
  3041. // PayRecharge list data | PayRecharge列表数据
  3042. // swagger:model PayRechargeListInfo
  3043. type PayRechargeListInfo struct {
  3044. BaseListInfo
  3045. // The API list data | PayRecharge列表数据
  3046. Data []PayRechargeInfo `json:"data"`
  3047. }
  3048. // Get pay recharge list request params | PayRecharge列表请求参数
  3049. // swagger:model PayRechargeListReq
  3050. type PayRechargeListReq struct {
  3051. PageInfo
  3052. // user_id | 用户ID
  3053. UserId *string `json:"userId,optional"`
  3054. // out_trade_no | 外部订单号
  3055. OutTradeNo *string `json:"outTradeNo,optional"`
  3056. }
  3057. // PayRecharge information response | PayRecharge信息返回体
  3058. // swagger:model PayRechargeInfoResp
  3059. type PayRechargeInfoResp struct {
  3060. BaseDataInfo
  3061. // PayRecharge information | PayRecharge数据
  3062. Data PayRechargeInfo `json:"data"`
  3063. }