types.go 83 KB

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