types.go 86 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075
  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. type UserToken struct {
  1615. Token *string `json:"token,optional"`
  1616. ID *uint64 `json:"id,optional"`
  1617. Avatar *string `json:"avatar,optional"`
  1618. Nickname *string `json:"nickname,optional"`
  1619. IsVip *bool `json:"isVip,optional"`
  1620. }
  1621. // swagger:model UserVipResp
  1622. type UserVipResp struct {
  1623. BaseDataInfo
  1624. Data UserVip `json:"data,optional"`
  1625. }
  1626. type UserVip struct {
  1627. IsVip *bool `json:"isVip,optional"`
  1628. WechatAccount *string `json:"wechatAccount"`
  1629. }
  1630. // swagger:model WxidReq
  1631. type WxidReq struct {
  1632. Wxid string `json:"wxid"`
  1633. }
  1634. // The data of batch msg information | BatchMsg信息
  1635. // swagger:model BatchMsgInfo
  1636. type BatchMsgInfo struct {
  1637. BaseIDInfo
  1638. // 状态 0 未开始 1 开始发送 2 发送完成 3 发送中止
  1639. Status *uint8 `json:"status,optional"`
  1640. // 批次号
  1641. BatchNo *string `json:"batchNo,optional"`
  1642. // 任务名称
  1643. TaskName *string `json:"taskName,optional"`
  1644. // 发送方微信ID
  1645. Fromwxid *string `json:"fromwxid,optional"`
  1646. // 内容
  1647. Msg *string `json:"msg,optional"`
  1648. // 发送规则 all 全部 tag1,tag2 按tag发送
  1649. Tag *string `json:"tag,optional"`
  1650. // 总数
  1651. Total *int32 `json:"total,optional"`
  1652. // 成功数量
  1653. Success *int32 `json:"success,optional"`
  1654. // 失败数量
  1655. Fail *int32 `json:"fail,optional"`
  1656. // 开始时间
  1657. StartTime *int64 `json:"startTime,optional"`
  1658. StartTimeStr *string `json:"startTimeStr,optional"`
  1659. // 结束时间
  1660. StopTime *int64 `json:"stopTime,optional"`
  1661. // 发送时间
  1662. SendTime *int64 `json:"sendTime,optional"`
  1663. // 标签列表
  1664. Labels []uint64 `json:"labels,optional"`
  1665. GroupLabels []uint64 `json:"groupLabels,optional"`
  1666. // 标签列表
  1667. Type *int32 `json:"type,optional"`
  1668. }
  1669. // The response data of batch msg list | BatchMsg列表数据
  1670. // swagger:model BatchMsgListResp
  1671. type BatchMsgListResp struct {
  1672. BaseDataInfo
  1673. // BatchMsg list data | BatchMsg列表数据
  1674. Data BatchMsgListInfo `json:"data"`
  1675. }
  1676. // BatchMsg list data | BatchMsg列表数据
  1677. // swagger:model BatchMsgListInfo
  1678. type BatchMsgListInfo struct {
  1679. BaseListInfo
  1680. // The API list data | BatchMsg列表数据
  1681. Data []BatchMsgInfo `json:"data"`
  1682. }
  1683. // Get batch msg list request params | BatchMsg列表请求参数
  1684. // swagger:model BatchMsgListReq
  1685. type BatchMsgListReq struct {
  1686. PageInfo
  1687. // 批次号
  1688. BatchNo *string `json:"batchNo,optional"`
  1689. // 发送方微信ID
  1690. Fromwxid *string `json:"fromwxid,optional"`
  1691. // 内容
  1692. Msg *string `json:"msg,optional"`
  1693. // 任务名称
  1694. TaskName *string `json:"taskName,optional"`
  1695. // 群发类型
  1696. Type *int32 `json:"type"`
  1697. }
  1698. // BatchMsg information response | BatchMsg信息返回体
  1699. // swagger:model BatchMsgInfoResp
  1700. type BatchMsgInfoResp struct {
  1701. BaseDataInfo
  1702. // BatchMsg information | BatchMsg数据
  1703. Data BatchMsgInfo `json:"data"`
  1704. }
  1705. // The data of msg information | Msg信息
  1706. // swagger:model MsgInfo
  1707. type MsgInfo struct {
  1708. BaseIDInfo
  1709. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1710. Status *uint8 `json:"status,optional"`
  1711. // 发送方微信ID
  1712. Fromwxid *string `json:"fromwxid,optional"`
  1713. // 接收人微信ID/群ID
  1714. Toid *string `json:"toid,optional"`
  1715. // 消息类型
  1716. Msgtype *int32 `json:"msgtype,optional"`
  1717. // 消息
  1718. Msg *string `json:"msg,optional"`
  1719. // 批次号
  1720. BatchNo *string `json:"batchNo,optional"`
  1721. }
  1722. // The response data of msg list | Msg列表数据
  1723. // swagger:model MsgListResp
  1724. type MsgListResp struct {
  1725. BaseDataInfo
  1726. // Msg list data | Msg列表数据
  1727. Data MsgListInfo `json:"data"`
  1728. }
  1729. // Msg list data | Msg列表数据
  1730. // swagger:model MsgListInfo
  1731. type MsgListInfo struct {
  1732. BaseListInfo
  1733. // The API list data | Msg列表数据
  1734. Data []MsgInfo `json:"data"`
  1735. }
  1736. // Get msg list request params | Msg列表请求参数
  1737. // swagger:model MsgListReq
  1738. type MsgListReq struct {
  1739. PageInfo
  1740. // 状态
  1741. Status *uint8 `json:"status,optional"`
  1742. // 接收人微信ID/群ID
  1743. Toid *string `json:"toid,optional"`
  1744. // 群发消息ID
  1745. BatchId *uint64 `json:"batchId"`
  1746. }
  1747. // Msg information response | Msg信息返回体
  1748. // swagger:model MsgInfoResp
  1749. type MsgInfoResp struct {
  1750. BaseDataInfo
  1751. // Msg information | Msg数据
  1752. Data MsgInfo `json:"data"`
  1753. }
  1754. // The data of employee information | Employee信息
  1755. // swagger:model EmployeeInfo
  1756. type EmployeeInfo struct {
  1757. BaseIDInfo
  1758. // title | 标题
  1759. Title *string `json:"title,optional"`
  1760. // avatar | 头像
  1761. Avatar *string `json:"avatar,optional"`
  1762. // tags | 个人标签
  1763. Tags *string `json:"tags,optional"`
  1764. // hire_count | 被雇佣次数
  1765. HireCount *int `json:"hireCount,optional"`
  1766. // service_count | 已服务次数
  1767. ServiceCount *int `json:"serviceCount,optional"`
  1768. // achievement_count | 业绩单数
  1769. AchievementCount *int `json:"achievementCount,optional"`
  1770. // category_id | 分类ID
  1771. CategoryId *uint64 `json:"categoryId,optional"`
  1772. // intro | 个人介绍
  1773. Intro *string `json:"intro,optional"`
  1774. // estimate | 自我评价
  1775. Estimate *string `json:"estimate,optional"`
  1776. // skill | 技能卡
  1777. Skill *string `json:"skill,optional"`
  1778. // ability_type | 能力类型
  1779. AbilityType *string `json:"abilityType,optional"`
  1780. // scene | 使用场景
  1781. Scene *string `json:"scene,optional"`
  1782. SceneList []EmployeeConfigInfo `json:"sceneList,optional"`
  1783. // switch_in | 支持介入
  1784. SwitchIn *string `json:"switchIn,optional"`
  1785. SwitchInList []EmployeeConfigInfo `json:"switchInList,optional"`
  1786. Tutorial []TutorialInfo `json:"tutorial,optional"`
  1787. // video_url | 视频地址
  1788. VideoUrl *string `json:"videoUrl,optional"`
  1789. // work_experience | 工作经验
  1790. WorkExperience []WorkExperienceInfo `json:"workExperience,optional"`
  1791. ApiBase *string `json:"apiBase,optional"`
  1792. ApiKey *string `json:"apiKey,optional"`
  1793. // AI信息
  1794. AiInfo *string `json:"aiInfo,optional"`
  1795. ShowChat *bool `json:"showChat,optional"`
  1796. IsVip *bool `json:"isVip,optional"`
  1797. ChatUrl *string `json:"chatUrl,optional"`
  1798. }
  1799. // The response data of employee list | Employee列表数据
  1800. // swagger:model EmployeeListResp
  1801. type EmployeeListResp struct {
  1802. BaseDataInfo
  1803. // Employee list data | Employee列表数据
  1804. Data EmployeeListInfo `json:"data"`
  1805. }
  1806. // Employee list data | Employee列表数据
  1807. // swagger:model EmployeeListInfo
  1808. type EmployeeListInfo struct {
  1809. BaseListInfo
  1810. // The API list data | Employee列表数据
  1811. Data []EmployeeInfo `json:"data"`
  1812. }
  1813. // Get employee list request params | Employee列表请求参数
  1814. // swagger:model EmployeeListReq
  1815. type EmployeeListReq struct {
  1816. PageInfo
  1817. // title | 标题
  1818. Title *string `json:"title,optional"`
  1819. // tags | 个人标签
  1820. Tags *string `json:"tags,optional"`
  1821. // category_id | 分类ID
  1822. CategoryId *uint64 `json:"categoryId,optional"`
  1823. }
  1824. // Employee information response | Employee信息返回体
  1825. // swagger:model EmployeeInfoResp
  1826. type EmployeeInfoResp struct {
  1827. BaseDataInfo
  1828. // Employee information | Employee数据
  1829. Data EmployeeInfo `json:"data"`
  1830. }
  1831. // swagger:model AuthReq
  1832. type AuthReq struct {
  1833. Token *string `json:"token,optional"`
  1834. Data uint64 `json:"data,optional"`
  1835. }
  1836. // swagger:model AuthResp
  1837. type AuthResp struct {
  1838. Token *string `json:"token,optional"`
  1839. Data *uint64 `json:"data,optional"`
  1840. Original interface{} `json:"original,optional"`
  1841. OK interface{} `json:"ok,optional"`
  1842. SecretKey string `json:"secretKey,optional"`
  1843. }
  1844. // The data of work experience information | WorkExperience信息
  1845. // swagger:model WorkExperienceInfo
  1846. type WorkExperienceInfo struct {
  1847. BaseIDInfo
  1848. // employee_id | 员工ID
  1849. EmployeeId *uint64 `json:"employeeId,optional"`
  1850. // start_date | 开始时间
  1851. StartDate *int64 `json:"startDate,optional"`
  1852. StartDateStr *string `json:"startDateStr,optional"`
  1853. // end_date | 结束时间
  1854. EndDate *int64 `json:"endDate,optional"`
  1855. EndDateStr *string `json:"endDateStr,optional"`
  1856. // company | 公司名
  1857. Company *string `json:"company,optional"`
  1858. // experience | 工作内容
  1859. Experience *string `json:"experience,optional"`
  1860. }
  1861. // The response data of work experience list | WorkExperience列表数据
  1862. // swagger:model WorkExperienceListResp
  1863. type WorkExperienceListResp struct {
  1864. BaseDataInfo
  1865. // WorkExperience list data | WorkExperience列表数据
  1866. Data WorkExperienceListInfo `json:"data"`
  1867. }
  1868. // WorkExperience list data | WorkExperience列表数据
  1869. // swagger:model WorkExperienceListInfo
  1870. type WorkExperienceListInfo struct {
  1871. BaseListInfo
  1872. // The API list data | WorkExperience列表数据
  1873. Data []WorkExperienceInfo `json:"data"`
  1874. }
  1875. // Get work experience list request params | WorkExperience列表请求参数
  1876. // swagger:model WorkExperienceListReq
  1877. type WorkExperienceListReq struct {
  1878. PageInfo
  1879. // company | 公司名
  1880. Company *string `json:"company,optional"`
  1881. }
  1882. // WorkExperience information response | WorkExperience信息返回体
  1883. // swagger:model WorkExperienceInfoResp
  1884. type WorkExperienceInfoResp struct {
  1885. BaseDataInfo
  1886. // WorkExperience information | WorkExperience数据
  1887. Data WorkExperienceInfo `json:"data"`
  1888. }
  1889. // The data of tutorial information | Tutorial信息
  1890. // swagger:model TutorialInfo
  1891. type TutorialInfo struct {
  1892. BaseIDInfo
  1893. // employee_id | 员工ID
  1894. EmployeeId *uint64 `json:"employeeId,optional"`
  1895. // index | 序号
  1896. Index *int `json:"index,optional"`
  1897. // title | 标题
  1898. Title *string `json:"title,optional"`
  1899. // content | 内容
  1900. Content *string `json:"content,optional"`
  1901. }
  1902. // The response data of tutorial list | Tutorial列表数据
  1903. // swagger:model TutorialListResp
  1904. type TutorialListResp struct {
  1905. BaseDataInfo
  1906. // Tutorial list data | Tutorial列表数据
  1907. Data TutorialListInfo `json:"data"`
  1908. }
  1909. // Tutorial list data | Tutorial列表数据
  1910. // swagger:model TutorialListInfo
  1911. type TutorialListInfo struct {
  1912. BaseListInfo
  1913. // The API list data | Tutorial列表数据
  1914. Data []TutorialInfo `json:"data"`
  1915. }
  1916. // Get tutorial list request params | Tutorial列表请求参数
  1917. // swagger:model TutorialListReq
  1918. type TutorialListReq struct {
  1919. PageInfo
  1920. // title | 标题
  1921. Title *string `json:"title,optional"`
  1922. // content | 内容
  1923. Content *string `json:"content,optional"`
  1924. }
  1925. // Tutorial information response | Tutorial信息返回体
  1926. // swagger:model TutorialInfoResp
  1927. type TutorialInfoResp struct {
  1928. BaseDataInfo
  1929. // Tutorial information | Tutorial数据
  1930. Data TutorialInfo `json:"data"`
  1931. }
  1932. // The data of employee config information | EmployeeConfig信息
  1933. // swagger:model EmployeeConfigInfo
  1934. type EmployeeConfigInfo struct {
  1935. BaseIDInfo
  1936. // 类型:scene-场景 switch_in-接入方式
  1937. Stype *string `json:"stype,optional"`
  1938. // 标题
  1939. Title *string `json:"title,optional"`
  1940. // 图片地址
  1941. Photo *string `json:"photo,optional"`
  1942. }
  1943. // EmployeeConfig list data | EmployeeConfig列表数据
  1944. // swagger:model EmployeeConfigListInfo
  1945. type EmployeeConfigListInfo struct {
  1946. BaseListInfo
  1947. // The API list data | EmployeeConfig列表数据
  1948. Data []EmployeeConfigInfo `json:"data"`
  1949. }
  1950. // Employee config response | Employee配置信息返回体
  1951. // swagger:model EmployeeConfigListReq
  1952. type EmployeeConfigListReq struct {
  1953. /// 类型:scene-场景 switch_in-接入方式
  1954. Stype *string `json:"stype,optional"`
  1955. }
  1956. // EmployeeConfig information response | EmployeeConfig信息返回体
  1957. type EmployeeConfig struct {
  1958. Scene []EmployeeConfigInfo `json:"scene"`
  1959. SwitchIn []EmployeeConfigInfo `json:"switchIn"`
  1960. }
  1961. // Employee config response | Employee配置信息返回体
  1962. // swagger:model EmployeeConfigListResp
  1963. type EmployeeConfigListResp struct {
  1964. BaseDataInfo
  1965. // Employee information | Employee数据
  1966. Data EmployeeConfig `json:"data"`
  1967. }
  1968. // The data of token information | Token信息
  1969. // swagger:model TokenInfo
  1970. type TokenInfo struct {
  1971. BaseIDInfo
  1972. // 过期时间
  1973. ExpireAt *int64 `json:"expireAt,optional"`
  1974. ExpireAtStr *string `json:"expireAtStr,optional"`
  1975. // Token
  1976. Token *string `json:"token,optional"`
  1977. // Mac地址
  1978. Mac *string `json:"mac,optional"`
  1979. // 租户ID
  1980. OrganizationId *uint64 `json:"organization_id,optional"`
  1981. OrganizationName *string `json:"organizationName,optional"`
  1982. AgentId *uint64 `json:"agent_id,optional"`
  1983. AgentInfo *AgentInfo `json:"agent_info,optional"`
  1984. CustomAgentBase *string `json:"custom_agent_base,optional"`
  1985. CustomAgentKey *string `json:"custom_agent_key,optional"`
  1986. OpenaiBase *string `json:"openai_base,optional"`
  1987. OpenaiKey *string `json:"openai_key,optional"`
  1988. }
  1989. // The response data of token list | Token列表数据
  1990. // swagger:model TokenListResp
  1991. type TokenListResp struct {
  1992. BaseDataInfo
  1993. // Token list data | Token列表数据
  1994. Data TokenListInfo `json:"data"`
  1995. }
  1996. // Token list data | Token列表数据
  1997. // swagger:model TokenListInfo
  1998. type TokenListInfo struct {
  1999. BaseListInfo
  2000. // The API list data | Token列表数据
  2001. Data []TokenInfo `json:"data"`
  2002. }
  2003. // Get token list request params | Token列表请求参数
  2004. // swagger:model TokenListReq
  2005. type TokenListReq struct {
  2006. PageInfo
  2007. // Token
  2008. Token *string `json:"token,optional"`
  2009. // Mac地址
  2010. Mac *string `json:"mac,optional"`
  2011. OrganizationId *uint64 `json:"organization_id,optional"`
  2012. OrganizationName *string `json:"organizationName,optional"`
  2013. }
  2014. // Token information response | Token信息返回体
  2015. // swagger:model TokenInfoResp
  2016. type TokenInfoResp struct {
  2017. BaseDataInfo
  2018. // Token information | Token数据
  2019. Data TokenInfo `json:"data"`
  2020. }
  2021. // swagger:model CheckTokenReq
  2022. type CheckTokenReq struct {
  2023. // Token
  2024. Token *string `json:"token"`
  2025. // Mac地址
  2026. Mac *string `json:"mac"`
  2027. }
  2028. // swagger:model CheckTokenResp
  2029. type CheckTokenResp struct {
  2030. // 是否合法
  2031. Valid *bool `json:"valid"`
  2032. // Sign 签名内容
  2033. Sign *string `json:"sign"`
  2034. // Timestamp 时间戳
  2035. Timestamp *int64 `json:"timestamp"`
  2036. AgentInfo *AgentInfo `json:"agent_info"`
  2037. CustomAgentBase *string `json:"custom_agent_base"`
  2038. CustomAgentKey *string `json:"custom_agent_key"`
  2039. OpenaiBase *string `json:"openai_base"`
  2040. OpenaiKey *string `json:"openai_key"`
  2041. DatasetBase *string `json:"dataset_base"`
  2042. DatasetKey *string `json:"dataset_key"`
  2043. }
  2044. // The data of category information | Category信息
  2045. // swagger:model CategoryInfo
  2046. type CategoryInfo struct {
  2047. BaseIDInfo
  2048. // name | 角色名称
  2049. Name *string `json:"name,optional"`
  2050. // organization_id | 租户ID
  2051. OrganizationId *uint64 `json:"organizationId,optional"`
  2052. }
  2053. // The response data of category list | Category列表数据
  2054. // swagger:model CategoryListResp
  2055. type CategoryListResp struct {
  2056. BaseDataInfo
  2057. // Category list data | Category列表数据
  2058. Data CategoryListInfo `json:"data"`
  2059. }
  2060. // Category list data | Category列表数据
  2061. // swagger:model CategoryListInfo
  2062. type CategoryListInfo struct {
  2063. BaseListInfo
  2064. // The API list data | Category列表数据
  2065. Data []CategoryInfo `json:"data"`
  2066. }
  2067. // Get category list request params | Category列表请求参数
  2068. // swagger:model CategoryListReq
  2069. type CategoryListReq struct {
  2070. PageInfo
  2071. // name | 角色名称
  2072. Name *string `json:"name,optional"`
  2073. }
  2074. // Category information response | Category信息返回体
  2075. // swagger:model CategoryInfoResp
  2076. type CategoryInfoResp struct {
  2077. BaseDataInfo
  2078. // Category information | Category数据
  2079. Data CategoryInfo `json:"data"`
  2080. }
  2081. // The data of agent base information | AgentBase信息
  2082. // swagger:model AgentBaseInfo
  2083. type AgentBaseInfo struct {
  2084. Id *string `json:"id,optional"`
  2085. }
  2086. // The response data of agent base list | AgentBase列表数据
  2087. // swagger:model AgentBaseListResp
  2088. type AgentBaseListResp struct {
  2089. BaseDataInfo
  2090. // AgentBase list data | AgentBase列表数据
  2091. Data AgentBaseListInfo `json:"data"`
  2092. }
  2093. // AgentBase list data | AgentBase列表数据
  2094. // swagger:model AgentBaseListInfo
  2095. type AgentBaseListInfo struct {
  2096. BaseListInfo
  2097. // The API list data | AgentBase列表数据
  2098. Data []AgentBaseInfo `json:"data"`
  2099. }
  2100. // Get agent base list request params | AgentBase列表请求参数
  2101. // swagger:model AgentBaseListReq
  2102. type AgentBaseListReq struct {
  2103. PageInfo
  2104. // q
  2105. Q *string `json:"q,optional"`
  2106. // a
  2107. A *string `json:"a,optional"`
  2108. // dataset_id
  2109. DatasetId *string `json:"datasetId,optional"`
  2110. }
  2111. // AgentBase information response | AgentBase信息返回体
  2112. // swagger:model AgentBaseInfoResp
  2113. type AgentBaseInfoResp struct {
  2114. BaseDataInfo
  2115. // AgentBase information | AgentBase数据
  2116. Data AgentBaseInfo `json:"data"`
  2117. }
  2118. // The data of chat records information | ChatRecords信息
  2119. // swagger:model ChatRecordsInfo
  2120. type ChatRecordsInfo struct {
  2121. BaseIDInfo
  2122. // 内容
  2123. Content *string `json:"content,optional"`
  2124. // 内容类型:1-提问 2-回答
  2125. ContentType *uint8 `json:"contentType,optional"`
  2126. // 角色类型:1-用户 2-智能体
  2127. RoleType *string `json:"roleType,optional"`
  2128. // 会话ID
  2129. SessionId *uint64 `json:"sessionId,optional"`
  2130. // 用户ID
  2131. UserId *uint64 `json:"userId,optional"`
  2132. // 聊天ID
  2133. BotId *uint64 `json:"botId,optional"`
  2134. // 类型:1-微信 2-小程序card 3-智能体
  2135. BotType *uint8 `json:"botType,optional,options=1|2|3"`
  2136. Finish bool `json:"finish,optional"`
  2137. }
  2138. // The response data of chat records list | ChatRecords列表数据
  2139. // swagger:model ChatRecordsListResp
  2140. type ChatRecordsListResp struct {
  2141. BaseDataInfo
  2142. // ChatRecords list data | ChatRecords列表数据
  2143. Data ChatRecordsListInfo `json:"data"`
  2144. }
  2145. // ChatRecords list data | ChatRecords列表数据
  2146. // swagger:model ChatRecordsListInfo
  2147. type ChatRecordsListInfo struct {
  2148. BaseListInfo
  2149. // The API list data | ChatRecords列表数据
  2150. Data []ChatRecordsInfo `json:"data"`
  2151. }
  2152. // Get chat records list request params | ChatRecords列表请求参数
  2153. // swagger:model ChatRecordsListReq
  2154. type ChatRecordsListReq struct {
  2155. PageInfo
  2156. SessionId *uint64 `json:"sessionId"`
  2157. BotId *uint64 `json:"botId,optional"`
  2158. BotType *uint8 `json:"botType,optional"`
  2159. }
  2160. // ChatRecords information response | ChatRecords信息返回体
  2161. // swagger:model ChatRecordsInfoResp
  2162. type ChatRecordsInfoResp struct {
  2163. BaseDataInfo
  2164. // ChatRecords information | ChatRecords数据
  2165. Data ChatRecordsInfo `json:"data"`
  2166. }
  2167. // swagger:model ChatRecommendReq
  2168. type ChatRecommendReq struct {
  2169. SessionId *uint64 `json:"sessionId"`
  2170. }
  2171. // swagger:model ChatRecommendResp
  2172. type ChatRecommendResp struct {
  2173. BaseDataInfo
  2174. // The API list data | ChatRecords列表数据
  2175. Data ChatRecommend `json:"data"`
  2176. }
  2177. type ChatRecommend struct {
  2178. Data []string `json:"data"`
  2179. SessionId uint64 `json:"sessionId"`
  2180. }
  2181. // swagger:model ChatAskReq
  2182. type ChatAskReq struct {
  2183. CardId *uint64 `json:"cardId"`
  2184. Question *string `json:"question"`
  2185. SessionId *int `json:"sessionId"`
  2186. }
  2187. // swagger:model ChatAskResp
  2188. type ChatAskResp struct {
  2189. BaseDataInfo
  2190. Data *string `json:"data"`
  2191. }
  2192. // The data of chat session information | ChatSession信息
  2193. // swagger:model ChatSessionInfo
  2194. type ChatSessionInfo struct {
  2195. BaseIDInfo
  2196. // 名称
  2197. Name *string `json:"name,optional"`
  2198. // 用户ID
  2199. UserId *uint64 `json:"userId,optional"`
  2200. UserName *string `json:"userName,optional"`
  2201. // 聊天ID
  2202. BotId *uint64 `json:"botId,optional"`
  2203. // 主体名称
  2204. BotName *string `json:"botName,optional"`
  2205. // 类型:1-微信 2-小程序card 3-智能体
  2206. BotType *uint8 `json:"botType,optional"`
  2207. // 类型:1-微信 2-小程序card 3-智能体
  2208. BotTypeStr *string `json:"botTypeStr,optional"`
  2209. }
  2210. // The response data of chat session list | ChatSession列表数据
  2211. // swagger:model ChatSessionListResp
  2212. type ChatSessionListResp struct {
  2213. BaseDataInfo
  2214. // ChatSession list data | ChatSession列表数据
  2215. Data ChatSessionListInfo `json:"data"`
  2216. }
  2217. // ChatSession list data | ChatSession列表数据
  2218. // swagger:model ChatSessionListInfo
  2219. type ChatSessionListInfo struct {
  2220. BaseListInfo
  2221. // The API list data | ChatSession列表数据
  2222. Data []ChatSessionInfo `json:"data"`
  2223. }
  2224. // Get chat session list request params | ChatSession列表请求参数
  2225. // swagger:model ChatSessionListReq
  2226. type ChatSessionListReq struct {
  2227. PageInfo
  2228. BotId *uint64 `json:"botId,optional"`
  2229. BotType *uint8 `json:"botType,optional"`
  2230. BotName *string `json:"botName,optional"`
  2231. }
  2232. // ChatSession information response | ChatSession信息返回体
  2233. // swagger:model ChatSessionInfoResp
  2234. type ChatSessionInfoResp struct {
  2235. BaseDataInfo
  2236. // ChatSession information | ChatSession数据
  2237. Data ChatSessionInfo `json:"data"`
  2238. }
  2239. // The data of wx card information | WxCard信息
  2240. // swagger:model WxCardInfo
  2241. type WxCardInfo struct {
  2242. BaseIDInfo
  2243. // user表ID
  2244. UserId *uint64 `json:"userId,optional"`
  2245. // wx表ID
  2246. WxUserId *uint64 `json:"wxUserId,optional"`
  2247. // 头像
  2248. Avatar *string `json:"avatar,optional"`
  2249. // logo
  2250. Logo *string `json:"logo,optional"`
  2251. // 名称
  2252. Name *string `json:"name,optional"`
  2253. // 公司
  2254. Company *string `json:"company,optional"`
  2255. // 地址
  2256. Address *string `json:"address,optional"`
  2257. // 手机号
  2258. Phone *string `json:"phone,optional"`
  2259. // 公众号
  2260. OfficialAccount *string `json:"officialAccount,optional"`
  2261. // 微信号
  2262. WechatAccount *string `json:"wechatAccount,optional"`
  2263. // 邮箱
  2264. Email *string `json:"email,optional"`
  2265. // 聊天信息
  2266. ApiBase *string `json:"apiBase,optional"`
  2267. ApiKey *string `json:"apiKey,optional"`
  2268. // AI信息
  2269. AiInfo *string `json:"aiInfo,optional"`
  2270. // 个人介绍
  2271. Intro *string `json:"intro,optional"`
  2272. ShowChat *bool `json:"showChat,optional"`
  2273. ShowAi *bool `json:"showAi,optional"`
  2274. IsVip *bool `json:"isVip,optional"`
  2275. }
  2276. // swagger:model WxCardSimpleInfo
  2277. type WxCardSimpleInfo struct {
  2278. ID *uint64 `json:"id,optional"`
  2279. // 头像
  2280. Avatar *string `json:"avatar,optional"`
  2281. // 名称
  2282. Name *string `json:"name,optional"`
  2283. Type *string `json:"type,optional"`
  2284. }
  2285. // The response data of wx card list | WxCard列表数据
  2286. // swagger:model WxCardListResp
  2287. type WxCardListResp struct {
  2288. BaseDataInfo
  2289. // WxCard list data | WxCard列表数据
  2290. Data WxCardListInfo `json:"data"`
  2291. }
  2292. // WxCard list data | WxCard列表数据
  2293. // swagger:model WxCardListInfo
  2294. type WxCardListInfo struct {
  2295. BaseListInfo
  2296. // The API list data | WxCard列表数据
  2297. Data []WxCardInfo `json:"data"`
  2298. }
  2299. // Get wx card list request params | WxCard列表请求参数
  2300. // swagger:model WxCardListReq
  2301. type WxCardListReq struct {
  2302. PageInfo
  2303. // 头像
  2304. Avatar *string `json:"avatar,optional"`
  2305. // logo
  2306. Logo *string `json:"logo,optional"`
  2307. // 名称
  2308. Name *string `json:"name,optional"`
  2309. }
  2310. // WxCard information response | WxCard信息返回体
  2311. // swagger:model WxCardInfoResp
  2312. type WxCardInfoResp struct {
  2313. BaseDataInfo
  2314. // WxCard information | WxCard数据
  2315. Data WxCardInfo `json:"data"`
  2316. }
  2317. // swagger:model QrcodeReq
  2318. type QrcodeReq struct {
  2319. Path string `form:"path"`
  2320. Width int64 `form:"width"`
  2321. EnvVersion string `form:"envVersion"`
  2322. }
  2323. // The data of wx card user information | WxCardUser信息
  2324. // swagger:model WxCardUserInfo
  2325. type WxCardUserInfo struct {
  2326. BaseIDInfo
  2327. // 微信id
  2328. Wxid *string `json:"wxid,optional"`
  2329. // 微信号
  2330. Account *string `json:"account,optional"`
  2331. // 头像
  2332. Avatar *string `json:"avatar,optional"`
  2333. // 昵称
  2334. Nickname *string `json:"nickname,optional"`
  2335. // 备注名
  2336. Remark *string `json:"remark,optional"`
  2337. // 手机号
  2338. Phone *string `json:"phone,optional"`
  2339. // OpenID
  2340. OpenId *string `json:"openId,optional"`
  2341. // UnionID
  2342. UnionId *string `json:"unionId,optional"`
  2343. // SessionKey
  2344. SessionKey *string `json:"sessionKey,optional"`
  2345. // IsVip
  2346. IsVip *string `json:"isVip,optional"`
  2347. }
  2348. // The response data of wx card user list | WxCardUser列表数据
  2349. // swagger:model WxCardUserListResp
  2350. type WxCardUserListResp struct {
  2351. BaseDataInfo
  2352. // WxCardUser list data | WxCardUser列表数据
  2353. Data WxCardUserListInfo `json:"data"`
  2354. }
  2355. // WxCardUser list data | WxCardUser列表数据
  2356. // swagger:model WxCardUserListInfo
  2357. type WxCardUserListInfo struct {
  2358. BaseListInfo
  2359. // The API list data | WxCardUser列表数据
  2360. Data []WxCardUserInfo `json:"data"`
  2361. }
  2362. // Get wx card user list request params | WxCardUser列表请求参数
  2363. // swagger:model WxCardUserListReq
  2364. type WxCardUserListReq struct {
  2365. PageInfo
  2366. // 微信id
  2367. Wxid *string `json:"wxid,optional"`
  2368. // 微信号
  2369. Account *string `json:"account,optional"`
  2370. // 头像
  2371. Avatar *string `json:"avatar,optional"`
  2372. // 昵称
  2373. Nickname *string `json:"nickname,optional"`
  2374. }
  2375. // WxCardUser information response | WxCardUser信息返回体
  2376. // swagger:model WxCardUserInfoResp
  2377. type WxCardUserInfoResp struct {
  2378. BaseDataInfo
  2379. // WxCardUser information | WxCardUser数据
  2380. Data WxCardUserInfo `json:"data"`
  2381. }
  2382. // The data of wx card visit information | WxCardVisit信息
  2383. // swagger:model WxCardVisitInfo
  2384. type WxCardVisitInfo struct {
  2385. BaseIDInfo
  2386. // user表ID
  2387. UserId *uint64 `json:"userId,optional"`
  2388. // user名
  2389. UserName *string `json:"userName,optional"`
  2390. // 被访ID
  2391. BotId *uint64 `json:"botId,optional"`
  2392. // 类型:1-微信 2-小程序 3-智能体
  2393. BotType *uint8 `json:"botType,optional"`
  2394. // 类型:1-微信 2-小程序 3-智能体
  2395. BotTypeStr *string `json:"botTypeStr,optional"`
  2396. CardInfo WxCardSimpleInfo `json:"cardInfo,optional,omitempty"`
  2397. }
  2398. // swagger:model WxCardVisitReq
  2399. type WxCardVisitReq struct {
  2400. BaseIDInfo
  2401. // user表ID
  2402. UserId *uint64 `json:"userId,optional"`
  2403. // 被访ID
  2404. BotId *uint64 `json:"botId,optional"`
  2405. // 类型:1-微信 2-小程序 3-智能体
  2406. BotType *uint8 `json:"botType,optional"`
  2407. }
  2408. // swagger:model WxCardVisitSingleInfo
  2409. type WxCardVisitSingleInfo struct {
  2410. BaseIDInfo
  2411. // user表ID
  2412. UserId *uint64 `json:"userId,optional"`
  2413. // 被访ID
  2414. BotId *uint64 `json:"botId,optional"`
  2415. // 类型:1-微信 2-小程序 3-智能体
  2416. BotType *uint8 `json:"botType,optional"`
  2417. CardInfo WxCardInfo `json:"cardInfo,optional"`
  2418. }
  2419. // The response data of wx card visit list | WxCardVisit列表数据
  2420. // swagger:model WxCardVisitListResp
  2421. type WxCardVisitListResp struct {
  2422. BaseDataInfo
  2423. // WxCardVisit list data | WxCardVisit列表数据
  2424. Data WxCardVisitListInfo `json:"data"`
  2425. }
  2426. // WxCardVisit list data | WxCardVisit列表数据
  2427. // swagger:model WxCardVisitListInfo
  2428. type WxCardVisitListInfo struct {
  2429. BaseListInfo
  2430. // The API list data | WxCardVisit列表数据
  2431. Data []WxCardVisitInfo `json:"data"`
  2432. }
  2433. // Get wx card visit list request params | WxCardVisit列表请求参数
  2434. // swagger:model WxCardVisitListReq
  2435. type WxCardVisitListReq struct {
  2436. PageInfo
  2437. BotId *uint64 `json:"botId,optional"`
  2438. BotType *uint8 `json:"botType,optional"`
  2439. BotName *string `json:"botName,optional"`
  2440. }
  2441. // WxCardVisit information response | WxCardVisit信息返回体
  2442. // swagger:model WxCardVisitInfoResp
  2443. type WxCardVisitInfoResp struct {
  2444. BaseDataInfo
  2445. // WxCardVisit information | WxCardVisit数据
  2446. Data WxCardVisitInfo `json:"data"`
  2447. }
  2448. // swagger:model AvatarInfo
  2449. type AvatarInfo struct {
  2450. RequestId *string `json:"requestId"`
  2451. SessionId *string `json:"SessionId"`
  2452. Token *string `json:"token"`
  2453. Channel Channel `json:"channel"`
  2454. }
  2455. type Channel struct {
  2456. ChannelId *string `json:"channelId"`
  2457. Token *string `json:"token"`
  2458. Type *string `json:"type"`
  2459. ExpiredTime *string `json:"expiredTime"`
  2460. Nonce *string `json:"nonce"`
  2461. UserId *string `json:"userId"`
  2462. AppId *string `json:"appId"`
  2463. UserInfoInChannel *string `json:"userInfoInChannel"`
  2464. Gslb []*string `json:"gslb"`
  2465. }
  2466. // start avatar request | 启动数字人
  2467. // swagger:model AvatarConfigReq
  2468. type AvatarConfigReq struct {
  2469. // 名片 ID
  2470. CardId *uint64 `json:"card_id,optional"`
  2471. }
  2472. // start avatar response | 启动数字人
  2473. // swagger:model AvatarConfigResp
  2474. type AvatarConfigResp struct {
  2475. BaseDataInfo
  2476. // Agent information | Agent数据
  2477. Data AvatarInfo `json:"data"`
  2478. Extra Extra `json:"extra"`
  2479. }
  2480. type Extra struct {
  2481. Live int64 `json:"live"`
  2482. Total int64 `json:"total"`
  2483. }
  2484. // swagger:model AvatarStsResp
  2485. type AvatarStsResp struct {
  2486. BaseDataInfo
  2487. // Sts information | Sts 数据
  2488. Data StsInfo `json:"data"`
  2489. }
  2490. // swagger:model StsInfo
  2491. type StsInfo struct {
  2492. Expiration *string `json:"expiration"`
  2493. AccessKeyId *string `json:"accessKeyId"`
  2494. AccessKeySecret *string `json:"accessKeySecret"`
  2495. SecurityToken *string `json:"securityToken"`
  2496. RequestId *string `json:"requestId"`
  2497. }
  2498. // swagger:model AvatarSignatureResp
  2499. type AvatarSignatureResp struct {
  2500. BaseDataInfo
  2501. // Sts information | Sts 数据
  2502. Data SignatureInfo `json:"data"`
  2503. }
  2504. // swagger:model SignatureInfo
  2505. type SignatureInfo struct {
  2506. Key *string `json:"key"`
  2507. OSSAccessKeyId *string `json:"OSSAccessKeyId"`
  2508. Policy *string `json:"policy"`
  2509. Signature *string `json:"signature"`
  2510. }
  2511. // send text | 数字人-发送消息
  2512. // swagger:model SendTextReq
  2513. type SendTextReq struct {
  2514. CardId *uint64 `json:"cardId"`
  2515. SessionId *string `json:"sessionId"`
  2516. Text *string `json:"text"`
  2517. IsStream *bool `json:"isStream,optional"`
  2518. Index *int32 `json:"index,optional"`
  2519. Position *string `json:"position,optional"`
  2520. }
  2521. // swagger:model SendTextResp
  2522. type SendTextResp struct {
  2523. BaseDataInfo
  2524. Data SendText `json:"data"`
  2525. }
  2526. type SendText struct {
  2527. SessionId *string `json:"sessionId"`
  2528. UniqueCode *string `json:"uniqueCode"`
  2529. }
  2530. // stop instance | 数字人-停止实例
  2531. // swagger:model StopInstanceReq
  2532. type StopInstanceReq struct {
  2533. CardId *uint64 `json:"cardId"`
  2534. SessionId *string `json:"sessionId"`
  2535. }
  2536. // swagger:model StopInstanceResp
  2537. type StopInstanceResp struct {
  2538. BaseDataInfo
  2539. Data StopInstance `json:"data"`
  2540. }
  2541. type StopInstance struct {
  2542. SessionId *string `json:"sessionId"`
  2543. RequestId *string `json:"requestId"`
  2544. }
  2545. // The data of aliyun avatar information | AliyunAvatar信息
  2546. // swagger:model AliyunAvatarInfo
  2547. type AliyunAvatarInfo struct {
  2548. BaseIDInfo
  2549. // user_id | wx_card_user_id
  2550. UserId *uint64 `json:"userId,optional"`
  2551. // biz_id | BizId
  2552. BizId *string `json:"bizId,optional"`
  2553. // access_key_id | AccessKeyId
  2554. AccessKeyId *string `json:"accessKeyId,optional"`
  2555. // access_key_secret | AccessKeySecret
  2556. AccessKeySecret *string `json:"accessKeySecret,optional"`
  2557. // app_id | AppId
  2558. AppId *string `json:"appId,optional"`
  2559. // tenant_id | TenantId
  2560. TenantId *uint64 `json:"TenantId,optional"`
  2561. // response | 阿里云avatar响应
  2562. Response *string `json:"response,optional"`
  2563. // token | Token
  2564. Token *string `json:"token,optional"`
  2565. // session_id | SessionId
  2566. SessionId *string `json:"sessionId,optional"`
  2567. }
  2568. // The response data of aliyun avatar list | AliyunAvatar列表数据
  2569. // swagger:model AliyunAvatarListResp
  2570. type AliyunAvatarListResp struct {
  2571. BaseDataInfo
  2572. // AliyunAvatar list data | AliyunAvatar列表数据
  2573. Data AliyunAvatarListInfo `json:"data"`
  2574. }
  2575. // AliyunAvatar list data | AliyunAvatar列表数据
  2576. // swagger:model AliyunAvatarListInfo
  2577. type AliyunAvatarListInfo struct {
  2578. BaseListInfo
  2579. // The API list data | AliyunAvatar列表数据
  2580. Data []AliyunAvatarInfo `json:"data"`
  2581. }
  2582. // Get aliyun avatar list request params | AliyunAvatar列表请求参数
  2583. // swagger:model AliyunAvatarListReq
  2584. type AliyunAvatarListReq struct {
  2585. PageInfo
  2586. // biz_id | BizId
  2587. BizId *string `json:"bizId,optional"`
  2588. // access_key_id | AccessKeyId
  2589. AccessKeyId *string `json:"accessKeyId,optional"`
  2590. // access_key_secret | AccessKeySecret
  2591. AccessKeySecret *string `json:"accessKeySecret,optional"`
  2592. }
  2593. // AliyunAvatar information response | AliyunAvatar信息返回体
  2594. // swagger:model AliyunAvatarInfoResp
  2595. type AliyunAvatarInfoResp struct {
  2596. BaseDataInfo
  2597. // AliyunAvatar information | AliyunAvatar数据
  2598. Data AliyunAvatarInfo `json:"data"`
  2599. }
  2600. // The response data of UsageDetail information | UsageDetail信息
  2601. // swagger:model UsageDetailInfo
  2602. type UsageDetailInfo struct {
  2603. BaseIDInfo
  2604. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  2605. Status *uint8 `json:"status,optional"`
  2606. // 1 微信 2 名片
  2607. Type *int
  2608. // 微信id
  2609. BotId *string `json:"botId,optional"`
  2610. // 微信id或open_id
  2611. ReceiverId *string `json:"receiverId,optional"`
  2612. // 1 cow-basic 2 cow-agent 3 cow-sop 4 mp-card 5 mp-employee
  2613. App *string
  2614. // 名片会话id
  2615. SessionId *uint64 `json:"sessionId,optional"`
  2616. // 请求内容
  2617. Request *string `json:"request,optional"`
  2618. // 响应内容
  2619. Response *string `json:"response,optional"`
  2620. // 使用token总数
  2621. TotalTokens *uint64 `json:"totalTokens,optional"`
  2622. // 请求token数
  2623. PromptTokens *uint64 `json:"promptTokens,optional"`
  2624. // 响应token数
  2625. CompletionTokens *uint64 `json:"completionTokens,optional"`
  2626. // 组织ID
  2627. OrganizationId *uint64 `json:"organizationId,optional"`
  2628. }
  2629. // The response data of UsageDetail list | UsageDetail列表数据
  2630. // swagger:model UsageDetailListResp
  2631. type UsageDetailListResp struct {
  2632. BaseDataInfo
  2633. // UsageDetail list data | UsageDetail列表数据
  2634. Data UsageDetailListInfo `json:"data"`
  2635. }
  2636. // UsageDetail list data | UsageDetail列表数据
  2637. // swagger:model UsageDetailListInfo
  2638. type UsageDetailListInfo struct {
  2639. BaseListInfo
  2640. // The API list data | UsageDetail列表数据
  2641. Data []UsageDetailInfo `json:"data"`
  2642. }
  2643. // Get wx list request params | Wx列表请求参数
  2644. // swagger:model UsageDetailListReq
  2645. type UsageDetailListReq struct {
  2646. PageInfo
  2647. // 租户id
  2648. BotId *string `json:"botId,optional"`
  2649. }
  2650. // The response data of UsageTotal information | UsageTotal信息
  2651. // swagger:model UsageTotalInfo
  2652. type UsageTotalInfo struct {
  2653. BaseIDInfo
  2654. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  2655. Status *uint8 `json:"status,optional"`
  2656. // 1 微信 2 名片
  2657. Type *int
  2658. // 微信或名片id
  2659. BotId *string `json:"botId,optional"`
  2660. // 使用token总数
  2661. TotalTokens *uint64 `json:"totalTokens,optional"`
  2662. // 重制后的起始usage_detail 索引
  2663. StartIndex *uint64 `json:"startIndex,optional"`
  2664. // usage_detail 索引
  2665. EndIndex *uint64 `json:"endIndex,optional"`
  2666. // 组织ID
  2667. OrganizationId *uint64 `json:"organizationId,optional"`
  2668. }
  2669. // The response data of UsageTotal list | UsageTotal列表数据
  2670. // swagger:model UsageTotalListResp
  2671. type UsageTotalListResp struct {
  2672. BaseDataInfo
  2673. // UsageTotal list data | UsageTotal列表数据
  2674. Data UsageTotalListInfo `json:"data"`
  2675. }
  2676. // UsageTotal list data | UsageTotal列表数据
  2677. // swagger:model UsageTotalListInfo
  2678. type UsageTotalListInfo struct {
  2679. BaseListInfo
  2680. // The API list data | UsageTotal列表数据
  2681. Data []UsageTotalInfo `json:"data"`
  2682. }
  2683. // Get wx list request params | Wx列表请求参数
  2684. // swagger:model UsageTotalListReq
  2685. type UsageTotalListReq struct {
  2686. PageInfo
  2687. // 租户id
  2688. OrganizationId *uint64 `json:"organizationId,optional"`
  2689. }
  2690. // swagger:model SignatureResp
  2691. type SignatureResp struct {
  2692. BaseDataInfo
  2693. // 临时签名
  2694. Data *string `json:"data"`
  2695. }
  2696. // swagger:model MessageReq
  2697. type MessageReq struct {
  2698. // 大模型生成内容
  2699. UserId *uint64 `json:"user_id"`
  2700. Text *string `json:"text"`
  2701. }
  2702. // swagger:model ChatReq
  2703. type ChatReq struct {
  2704. // 大模型生成内容
  2705. AvatarId *string `json:"avatar_id"`
  2706. UserId *uint64 `json:"user_id"`
  2707. Text *string `json:"text"`
  2708. }
  2709. // swagger:model DashboardInfo
  2710. type DashboardInfo struct {
  2711. BaseIDInfo
  2712. }
  2713. // swagger:model ChartsReq
  2714. type ChartsReq struct {
  2715. StartDate *string `json:"start_date"`
  2716. EndDate *string `json:"end_date"`
  2717. // 租户id
  2718. OrganizationId *uint64 `json:"organizationId,optional"`
  2719. Wxid *string `json:"wxid,optional"`
  2720. }
  2721. // swagger:model ChartsResp
  2722. type ChartsResp struct {
  2723. BaseDataInfo
  2724. Data *ChartsData `json:"data"`
  2725. }
  2726. type ChartsData struct {
  2727. AiResponse *ChartsUint `json:"ai_response"`
  2728. SopRun *ChartsUint `json:"sop_run"`
  2729. TotalFriend *ChartsUint `json:"total_friend"`
  2730. TotalGroup *ChartsUint `json:"total_group"`
  2731. AccountBalance *ChartsUint `json:"account_balance"`
  2732. ConsumeToken *ChartsUint `json:"consume_token"`
  2733. ActiveUser *ChartsUint `json:"active_user"`
  2734. NewUser *ChartsInt `json:"new_user"`
  2735. LabelDist []LabelsData `json:"label_dist"`
  2736. }
  2737. type ChartsUint struct {
  2738. Count uint64 `json:"count"`
  2739. Rate *float32 `json:"rate"`
  2740. Label []string `json:"label"`
  2741. Val []uint64 `json:"val"`
  2742. LabelText string `json:"labelText"`
  2743. Tip *string `json:"tip"`
  2744. }
  2745. type ChartsInt struct {
  2746. Count int64 `json:"count"`
  2747. Rate *float32 `json:"rate"`
  2748. Label []string `json:"label"`
  2749. Val []int64 `json:"val"`
  2750. LabelText string `json:"labelText"`
  2751. Tip *string `json:"tip"`
  2752. }
  2753. type LabelsData struct {
  2754. Value uint64 `json:"value"`
  2755. Name string `json:"name"`
  2756. }
  2757. // swagger:model WxReq
  2758. type WxReq struct {
  2759. PageInfo
  2760. EndDate *string `json:"end_date"`
  2761. // 租户id
  2762. OrganizationId *uint64 `json:"organizationId,optional"`
  2763. Wxid *string `json:"wxid,optional"`
  2764. }
  2765. // swagger:model WxResp
  2766. type WxResp struct {
  2767. BaseDataInfo
  2768. Data WxList `json:"data"`
  2769. }
  2770. type WxList struct {
  2771. BaseListInfo
  2772. Data []WxData `json:"data"`
  2773. }
  2774. type WxData struct {
  2775. Nickname string `json:"nickname"`
  2776. TotalFriend uint64 `json:"total_friend"`
  2777. TotalGroup uint64 `json:"total_group"`
  2778. InteractionRate float32 `json:"interaction_rate"`
  2779. }