types.go 84 KB

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