types.go 77 KB

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