types.go 81 KB

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