types.go 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899
  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. // The response data of server information | Server信息
  211. // swagger:model ServerInfo
  212. type ServerInfo struct {
  213. BaseIDInfo
  214. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  215. Status *uint8 `json:"status,optional"`
  216. // 名称
  217. Name *string `json:"name,optional"`
  218. // 公网ip
  219. PublicIp *string `json:"publicIp,optional"`
  220. // 内网ip
  221. PrivateIp *string `json:"privateIp,optional"`
  222. // 管理端口
  223. AdminPort *string `json:"adminPort,optional"`
  224. }
  225. // The response data of server list | Server列表数据
  226. // swagger:model ServerListResp
  227. type ServerListResp struct {
  228. BaseDataInfo
  229. // Server list data | Server列表数据
  230. Data ServerListInfo `json:"data"`
  231. }
  232. // Server list data | Server列表数据
  233. // swagger:model ServerListInfo
  234. type ServerListInfo struct {
  235. BaseListInfo
  236. // The API list data | Server列表数据
  237. Data []ServerInfo `json:"data"`
  238. }
  239. // Get server list request params | Server列表请求参数
  240. // swagger:model ServerListReq
  241. type ServerListReq struct {
  242. PageInfo
  243. // 名称
  244. Name *string `json:"name,optional"`
  245. // 公网ip
  246. PublicIp *string `json:"publicIp,optional"`
  247. // 内网ip
  248. PrivateIp *string `json:"privateIp,optional"`
  249. }
  250. // Server information response | Server信息返回体
  251. // swagger:model ServerInfoResp
  252. type ServerInfoResp struct {
  253. BaseDataInfo
  254. // Server information | Server数据
  255. Data ServerInfo `json:"data"`
  256. }
  257. // The response data of wx information | Wx信息
  258. // swagger:model WxInfo
  259. type WxInfo struct {
  260. BaseIDInfo
  261. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  262. Status *uint8 `json:"status,optional"`
  263. // 服务器id
  264. ServerId *uint64 `json:"serverId,optional"`
  265. // 服务器名称
  266. ServerName *string `json:"serverName,optional"`
  267. // 端口号
  268. Port *string `json:"port,optional"`
  269. // 进程号
  270. ProcessId *string `json:"processId,optional"`
  271. // 回调地址
  272. Callback *string `json:"callback,optional"`
  273. // 微信id
  274. Wxid *string `json:"wxid,optional"`
  275. // 微信账号
  276. Account *string `json:"account,optional"`
  277. // 微信昵称
  278. Nickname *string `json:"nickname,optional"`
  279. // 手机号
  280. Tel *string `json:"tel,optional"`
  281. // 微信头像
  282. HeadBig *string `json:"headBig,optional"`
  283. // 组织ID
  284. OrganizationId *uint64 `json:"organizationId,optional"`
  285. // 组织名称
  286. OrganizationName *string `json:"organizationName,optional"`
  287. // 模式ID
  288. AgentId *uint64 `json:"agentId,optional"`
  289. // 模式信息
  290. AgentInfo *AgentInfo `json:"agentInfo,optional"`
  291. // 大模型服务地址
  292. ApiBase *string `json:"apiBase,optional"`
  293. // 大模型服务密钥
  294. ApiKey *string `json:"apiKey,optional"`
  295. }
  296. // The response data of wx list | Wx列表数据
  297. // swagger:model WxListResp
  298. type WxListResp struct {
  299. BaseDataInfo
  300. // Wx list data | Wx列表数据
  301. Data WxListInfo `json:"data"`
  302. }
  303. // Wx list data | Wx列表数据
  304. // swagger:model WxListInfo
  305. type WxListInfo struct {
  306. BaseListInfo
  307. // The API list data | Wx列表数据
  308. Data []WxInfo `json:"data"`
  309. }
  310. // Get wx list request params | Wx列表请求参数
  311. // swagger:model WxListReq
  312. type WxListReq struct {
  313. PageInfo
  314. // 服务器id
  315. ServerId *uint64 `json:"serverId,optional"`
  316. // 租户id
  317. OrganizationId *uint64 `json:"organizationId,optional"`
  318. // 租户名称
  319. OrganizationName *string `json:"organizationName,optional"`
  320. // 端口号
  321. Port *string `json:"port,optional"`
  322. // 进程号
  323. ProcessId *string `json:"processId,optional"`
  324. // 回调地址
  325. Callback *string `json:"callback,optional"`
  326. }
  327. // Wx information response | Wx信息返回体
  328. // swagger:model WxInfoResp
  329. type WxInfoResp struct {
  330. BaseDataInfo
  331. // Wx information | Wx数据
  332. Data WxInfo `json:"data"`
  333. }
  334. // The data of agent information | Agent信息
  335. // swagger:model AgentInfo
  336. type AgentInfo struct {
  337. BaseIDInfo
  338. // name | 角色名称
  339. Name *string `json:"name,optional"`
  340. // role | 角色设定
  341. Role *string `json:"role,optional"`
  342. // status | 状态 1-正常 2-禁用
  343. Status *int `json:"status,optional"`
  344. // background | 背景介绍
  345. Background *string `json:"background,optional"`
  346. // examples | 对话案例
  347. Examples *string `json:"examples,optional"`
  348. }
  349. // The response data of agent list | Agent列表数据
  350. // swagger:model AgentListResp
  351. type AgentListResp struct {
  352. BaseDataInfo
  353. // Agent list data | Agent列表数据
  354. Data AgentListInfo `json:"data"`
  355. }
  356. // Agent list data | Agent列表数据
  357. // swagger:model AgentListInfo
  358. type AgentListInfo struct {
  359. BaseListInfo
  360. // The API list data | Agent列表数据
  361. Data []AgentInfo `json:"data"`
  362. }
  363. // Get agent list request params | Agent列表请求参数
  364. // swagger:model AgentListReq
  365. type AgentListReq struct {
  366. PageInfo
  367. // name | 角色名称
  368. Name *string `json:"name,optional"`
  369. // role | 角色设定
  370. Role *string `json:"role,optional"`
  371. // background | 背景介绍
  372. Background *string `json:"background,optional"`
  373. // status | 状态 1-可用 2-不可用
  374. Status *int `json:"status,optional"`
  375. }
  376. // Agent information response | Agent信息返回体
  377. // swagger:model AgentInfoResp
  378. type AgentInfoResp struct {
  379. BaseDataInfo
  380. // Agent information | Agent数据
  381. Data AgentInfo `json:"data"`
  382. }
  383. type VectorModel struct {
  384. Model *string `json:"model"`
  385. Name *string `json:"name"`
  386. CharsPointsPrice *uint64 `json:"charsPointsPrice"`
  387. DefaultToken *uint64 `json:"defaultToken"`
  388. MaxToken *uint64 `json:"maxToken"`
  389. Weight *uint64 `json:"weight"`
  390. }
  391. type AgentModel struct {
  392. Model *string `json:"model"`
  393. Name *string `json:"name"`
  394. MaxContext *uint64 `json:"maxContext"`
  395. MaxResponse *uint64 `json:"maxResponse"`
  396. CharsPointsPrice *uint64 `json:"charsPointsPrice"`
  397. }
  398. type DatasetId struct {
  399. ID *string `json:"id"`
  400. ParentID *string `json:"parentId"`
  401. TeamId *string `json:"teamId"`
  402. TmbId *string `json:"tmbId"`
  403. Type *string `json:"type"`
  404. Status *string `json:"status"`
  405. Avatar *string `json:"avatar"`
  406. Name *string `json:"name"`
  407. VectorModel *string `json:"vectorModel"`
  408. AgentModel *string `json:"agentModel"`
  409. Intro *string `json:"intro"`
  410. }
  411. // Dataset info | 知识库详情
  412. // swagger:model DatasetInfo
  413. type DatasetInfo struct {
  414. ID *string `json:"id"`
  415. ParentID *string `json:"parentId"`
  416. TeamId *string `json:"teamId"`
  417. TmbId *string `json:"tmbId"`
  418. Type *string `json:"type"`
  419. Name *string `json:"name"`
  420. Intro *string `json:"intro"`
  421. Status *string `json:"status"`
  422. Avatar *string `json:"avatar"`
  423. VectorModel VectorModel `json:"vectorModel"`
  424. AgentModel AgentModel `json:"agentModel"`
  425. Permission *string `json:"permission"`
  426. CanWrite *bool `json:"canWrite"`
  427. IsOwner *bool `json:"isOwner"`
  428. }
  429. type Index struct {
  430. DefaultIndex *bool `json:"defaultIndex"`
  431. Type *string `json:"type"`
  432. DataId *string `json:"dataId"`
  433. Text *string `json:"text"`
  434. ID *string `json:"id"`
  435. }
  436. // Collection Info | 集合详情
  437. // swagger:model CollectionInfo
  438. type CollectionInfo struct {
  439. ID *string `json:"id"`
  440. ParentID *string `json:"parentId"`
  441. TmbId *string `json:"tmbId,optional"`
  442. Type *string `json:"type"`
  443. Name *string `json:"name"`
  444. DataAmount *uint64 `json:"dataAmount,optional"`
  445. TrainingAmount *uint64 `json:"trainingAmount,optional"`
  446. TrainingType *string `json:"trainingType,optional"`
  447. ChunkSize *uint64 `json:"chunkSize,optional"`
  448. ChunkSplitter *string `json:"chunkSplitter,optional"`
  449. QaPrompt *string `json:"qaPrompt,optional"`
  450. RawTextLength *uint64 `json:"rawTextLength,optional"`
  451. CanWrite *bool `json:"canWrite,optional"`
  452. SourceName *string `json:"sourceName,optional"`
  453. DatasetId DatasetId `json:"datasetId,optional"`
  454. }
  455. // swagger:model CollectionDetailReq
  456. type CollectionDetailReq struct {
  457. ID *string `json:"id"`
  458. }
  459. // swagger:model CollectionInfoResp
  460. type CollectionInfoResp struct {
  461. BaseDataInfo
  462. Data CollectionInfo `json:"data"`
  463. }
  464. // swagger:model DataDetailReq
  465. type DataDetailReq struct {
  466. ID *string `json:"id"`
  467. }
  468. // swagger:model DataDetailResp
  469. type DataDetailResp struct {
  470. BaseDataInfo
  471. Data DataInfo `json:"data"`
  472. }
  473. // swagger:model CollectionSimpleInfo
  474. type CollectionSimpleInfo struct {
  475. ID *string `json:"id"`
  476. ParentID *string `json:"parentId"`
  477. TmbId *string `json:"tmbId,optional"`
  478. Type *string `json:"type"`
  479. Name *string `json:"name"`
  480. DataAmount *uint64 `json:"dataAmount,optional"`
  481. TrainingAmount *uint64 `json:"trainingAmount,optional"`
  482. }
  483. // swagger:model DataInfo
  484. type DataInfo struct {
  485. ID *string `json:"id"`
  486. Q *string `json:"q"`
  487. A *string `json:"a"`
  488. ChunkIndex *uint64 `json:"chunkIndex"`
  489. Indexes []Index `json:"indexes"`
  490. DatasetId *string `json:"datasetId"`
  491. CollectionId *string `json:"collectionId"`
  492. SourceName *string `json:"sourceName"`
  493. CanWrite *bool `json:"canWrite"`
  494. IsOwner *bool `json:"isOwner"`
  495. }
  496. // swagger:model DataSimpleInfo
  497. type DataSimpleInfo struct {
  498. ID *string `json:"id"`
  499. Q *string `json:"q"`
  500. A *string `json:"a"`
  501. ChunkIndex *uint64 `json:"chunkIndex"`
  502. DatasetId *string `json:"datasetId"`
  503. CollectionId *string `json:"collectionId"`
  504. }
  505. // Get collection list request params | Collection列表请求参数
  506. // swagger:model CollectionListReq
  507. type CollectionListReq struct {
  508. // required : true
  509. // min : 0
  510. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  511. // required : true
  512. // max : 100000
  513. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  514. // required : true
  515. DatasetId *string `json:"datasetId" validate:"required"`
  516. }
  517. // Collection list response | Collection List信息返回体
  518. // swagger:model CollectionListResp
  519. type CollectionListResp struct {
  520. BaseDataInfo
  521. // Agent information | Agent数据
  522. Data []CollectionSimpleInfo `json:"data"`
  523. // required : true
  524. // min : 0
  525. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  526. // required : true
  527. // max : 100000
  528. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  529. Total *int `json:"total"`
  530. }
  531. // Get collection list request params | Collection列表请求参数
  532. // swagger:model DataListReq
  533. type DataListReq struct {
  534. // required : true
  535. // min : 0
  536. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  537. // required : true
  538. // max : 100000
  539. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  540. // required : true
  541. CollectionId *string `json:"collectionId" validate:"required"`
  542. }
  543. // Data list response | Data List信息返回体
  544. // swagger:model DataListResp
  545. type DataListResp struct {
  546. BaseDataInfo
  547. // Agent information | Agent数据
  548. Data []DataSimpleInfo `json:"data"`
  549. // required : true
  550. // min : 0
  551. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  552. // required : true
  553. // max : 100000
  554. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  555. Total *int `json:"total"`
  556. }
  557. // Data create request | 信息请求体
  558. // swagger:model CreateDataInfoReq
  559. type CreateDataInfoReq struct {
  560. // required : true
  561. CollectionId *string `json:"collectionId" validate:"required"`
  562. // Q
  563. // required : true
  564. Q *string `json:"q" validate:"required"`
  565. // A
  566. // required : true
  567. A *string `json:"a" validate:"required"`
  568. }
  569. // IndexSingle {
  570. // Text A *string `json:"text"`
  571. // }
  572. //
  573. // Data create request | 信息返回体
  574. // swagger:model UpdateDataInfoReq
  575. type UpdateDataInfoReq struct {
  576. // ID
  577. // required : true
  578. DataId *string `json:"dataId" validate:"required"`
  579. // Q
  580. // required : true
  581. Q *string `json:"q" validate:"required"`
  582. // A
  583. // required : true
  584. A *string `json:"a" validate:"required"`
  585. }
  586. // swagger:model DeleteDataReq
  587. type DeleteDataReq struct {
  588. // required : true
  589. ID *string `json:"id" validate:"required"`
  590. }
  591. type LoginQRStatus struct {
  592. // 登陆二维码
  593. QRCode string `json:"qRCode,optional"`
  594. // 登陆二维码状态
  595. Status string `json:"status,optional"`
  596. // 登陆二维码状态描述
  597. StatusDesc string `json:"statusDesc,optional"`
  598. }
  599. // 刷新登陆二维码请求参数
  600. // swagger:model RefreshLoginQRReq
  601. type RefreshLoginQRReq struct {
  602. // 服务器id
  603. ServerId *uint64 `json:"serverId,optional"`
  604. // 端口号
  605. Port *string `json:"port,optional"`
  606. // 回调地址
  607. Callback *string `json:"callback,optional"`
  608. }
  609. // 刷新登陆二维码返回参数
  610. // swagger:model RefreshLoginQRResp
  611. type RefreshLoginQRResp struct {
  612. BaseDataInfo
  613. // 二维码Base64
  614. Data LoginQRStatus `json:"data,optional"`
  615. }
  616. // 发送微信文本消息请求参数
  617. // swagger:model SendTextMsgReq
  618. type SendTextMsgReq struct {
  619. // 属主微信id
  620. WxWxid *string `json:"senderWxId"`
  621. // 微信id 公众号微信ID
  622. Wxid *string `json:"receiverWxId"`
  623. // 微信文本消息内容
  624. Msg *string `json:"msg"`
  625. }
  626. // 发送微信图片消息请求参数
  627. // swagger:model SendPicMsgReq
  628. type SendPicMsgReq struct {
  629. // 属主微信id
  630. WxWxid *string `json:"wxWxid"`
  631. // 微信id 公众号微信ID
  632. Wxid *string `json:"wxid"`
  633. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  634. Picpath *string `json:"picpath"`
  635. // 微信图片自定义名称(此属性只有网络图片有)
  636. Diyfilename *string `json:"diyfilename,optional"`
  637. }
  638. // 发送微信图片(本地)请求参数
  639. // swagger:model SendPicMsgLocalReq
  640. type SendPicMsgLocalReq struct {
  641. // 属主微信id
  642. WxWxid *string `json:"wxWxid"`
  643. // 微信id 公众号微信ID
  644. Wxid *string `json:"wxid"`
  645. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  646. Picpath *string `json:"picpath"`
  647. }
  648. // The response data of contact list | Contact列表数据
  649. // swagger:model ContactListResp
  650. type ContactListResp struct {
  651. BaseDataInfo
  652. // Contact list data | Contact列表数据
  653. Data ContactListInfo `json:"data"`
  654. }
  655. // Contact list data | Contact列表数据
  656. // swagger:model ContactListInfo
  657. type ContactListInfo struct {
  658. BaseListInfo
  659. // The API list data | Contact列表数据
  660. Data []ContactInfo `json:"data"`
  661. }
  662. // Get contact list request params | Contact列表请求参数
  663. // swagger:model ContactListReq
  664. type ContactListReq struct {
  665. PageInfo
  666. // Label ID list | 标签ID列表
  667. LabelIDs []uint64 `json:"labelIDs,optional"`
  668. // 属主微信id
  669. WxWxid *string `json:"wxWxid,optional"`
  670. // 微信id 公众号微信ID
  671. Wxid *string `json:"wxid,optional"`
  672. // 微信账号
  673. Account *string `json:"account,optional"`
  674. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  675. Type *int `json:"type,optional"`
  676. }
  677. // Contact information response | Contact信息返回体
  678. // swagger:model ContactInfoResp
  679. type ContactInfoResp struct {
  680. BaseDataInfo
  681. // Contact information | Contact数据
  682. Data ContactInfo `json:"data"`
  683. }
  684. // swagger:model AddNewFriendReq
  685. type AddNewFriendReq struct {
  686. OwnerWxid string `json:"ownerWxid"`
  687. Wxid string `json:"wxid"`
  688. Gid string `json:"gid"`
  689. Desc string `json:"desc"`
  690. AddType string `json:"addType"`
  691. }
  692. // ContactLabelList | Contact标签列表
  693. type ContactLabelList struct {
  694. // label
  695. Label *string `json:"label,optional"`
  696. // value
  697. Value *uint64 `json:"value,optional"`
  698. }
  699. // The response data of contact information | Contact信息
  700. // swagger:model ContactInfo
  701. type ContactInfo struct {
  702. BaseIDInfo
  703. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  704. Status *uint8 `json:"status,optional"`
  705. // 属主微信id
  706. WxWxid *string `json:"wxWxid,optional"`
  707. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  708. Type *int `json:"type,optional"`
  709. // 微信id 公众号微信ID
  710. Wxid *string `json:"wxid,optional"`
  711. // 微信账号
  712. Account *string `json:"account,optional"`
  713. // 微信昵称 群备注名称
  714. Nickname *string `json:"nickname,optional"`
  715. // 备注名
  716. Markname *string `json:"markname,optional"`
  717. // 头像
  718. Headimg *string `json:"headimg,optional"`
  719. // 性别 0未知 1男 2女
  720. Sex *int `json:"sex,optional"`
  721. // 星标 65/67=星标 1/3=未星标
  722. Starrole *string `json:"starrole,optional"`
  723. // 不让他看我的朋友圈 0可以看 1不让看
  724. Dontseeit *int `json:"dontseeit,optional"`
  725. // 不看他的朋友圈 0可以看 1不看 1=开启了不看他 128/129=仅聊天
  726. Dontseeme *int `json:"dontseeme,optional"`
  727. // 所属标签id清单,多开会用逗号隔开
  728. Lag *string `json:"lag,optional"`
  729. // 群组id
  730. Gid *string `json:"gid,optional"`
  731. // 群组名称
  732. Gname *string `json:"gname,optional"`
  733. // v3数据
  734. V3 *string `json:"v3,optional"`
  735. // Label Relationships | 标签关系
  736. LabelRelationships []ContactLabelList `json:"labelRelationships,optional"`
  737. // 组织ID
  738. OrganizationId *uint64 `json:"organizationId,optional"`
  739. }
  740. // The response data of label information | Label信息
  741. // swagger:model LabelInfo
  742. type LabelInfo struct {
  743. BaseIDInfo
  744. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  745. Status *uint8 `json:"status,optional"`
  746. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  747. Type *int `json:"type,optional"`
  748. // 标签名称
  749. Name *string `json:"name,optional"`
  750. // 标签来源:1后台创建 2个微同步
  751. From *int `json:"from,optional"`
  752. // 标签模式:1动态 2静态
  753. Mode *int `json:"mode,optional"`
  754. // 标签的触达条件
  755. Conditions *string `json:"conditions,optional"`
  756. // 组织ID
  757. OrganizationId *uint64 `json:"organizationId,optional"`
  758. // Label Relationships | 标签关系
  759. LabelRelationships []LabelRelationshipInfo `json:"labelRelationships,optional"`
  760. }
  761. // The response data of label relationship information | LabelRelationship信息
  762. // swagger:model LabelRelationshipInfo
  763. type LabelRelationshipInfo struct {
  764. BaseIDInfo
  765. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  766. Status *uint8 `json:"status,optional"`
  767. // 标签 ID
  768. LabelId *uint64 `json:"labelId,optional"`
  769. // 联系人 ID
  770. ContactId *uint64 `json:"contactId,optional"`
  771. // Contact information | 联系人信息
  772. Contact ContactInfo `json:"contact,optional"`
  773. // Label information | 标签信息
  774. Label LabelInfo `json:"label,optional"`
  775. // 组织ID
  776. OrganizationId *uint64 `json:"organizationId,optional"`
  777. }
  778. // The response data of label relationship information | LabelRelationship信息
  779. // swagger:model LabelRelationshipsInfo
  780. type LabelRelationshipsInfo struct {
  781. BaseIDInfo
  782. // 更新类型:为空或“all”时表示全量更新,为 “add” 时表示仅追加
  783. UpdateType *string `json:"updateType,optional"`
  784. // 标签 ID
  785. LabelIds []uint64 `json:"labelIds,optional"`
  786. // 联系人 ID
  787. ContactId *uint64 `json:"contactId,optional"`
  788. }
  789. // swagger:model BatchLabelRelationshipsInfo
  790. type BatchLabelRelationshipsInfo struct {
  791. // 更新类型:为1 时表示增加标签,为 -1 时表示移除标签
  792. UpdateType int `json:"updateType,optional"`
  793. // 标签 ID
  794. LabelIds []uint64 `json:"labelIds,optional"`
  795. // 联系人 ID
  796. ContactIds []uint64 `json:"contactIds,optional"`
  797. }
  798. // The response data of label relationship list | LabelRelationship列表数据
  799. // swagger:model LabelRelationshipListResp
  800. type LabelRelationshipListResp struct {
  801. BaseDataInfo
  802. // LabelRelationship list data | LabelRelationship列表数据
  803. Data LabelRelationshipListInfo `json:"data"`
  804. }
  805. // LabelRelationship list data | LabelRelationship列表数据
  806. // swagger:model LabelRelationshipListInfo
  807. type LabelRelationshipListInfo struct {
  808. BaseListInfo
  809. // The API list data | LabelRelationship列表数据
  810. Data []LabelRelationshipInfo `json:"data"`
  811. }
  812. // Get label relationship list request params | LabelRelationship列表请求参数
  813. // swagger:model LabelRelationshipListReq
  814. type LabelRelationshipListReq struct {
  815. PageInfo
  816. }
  817. // LabelRelationship information response | LabelRelationship信息返回体
  818. // swagger:model LabelRelationshipInfoResp
  819. type LabelRelationshipInfoResp struct {
  820. BaseDataInfo
  821. // LabelRelationship information | LabelRelationship数据
  822. Data LabelRelationshipInfo `json:"data"`
  823. }
  824. // The response data of message information | Message信息
  825. // swagger:model MessageInfo
  826. type MessageInfo struct {
  827. BaseIDInfo
  828. // 属主微信id
  829. WxWxid *string `json:"wxWxid"`
  830. // 微信id 公众号微信ID
  831. Wxid *string `json:"wxid"`
  832. // 微信消息内容
  833. Msg *string `json:"msg"`
  834. }
  835. // The response data of message list | Message列表数据
  836. // swagger:model MessageListResp
  837. type MessageListResp struct {
  838. BaseDataInfo
  839. // Message list data | Message列表数据
  840. Data MessageListInfo `json:"data"`
  841. }
  842. // Message list data | Message列表数据
  843. // swagger:model MessageListInfo
  844. type MessageListInfo struct {
  845. BaseListInfo
  846. // The API list data | Message列表数据
  847. Data []MessageInfo `json:"data"`
  848. }
  849. // Get message list request params | Message列表请求参数
  850. // swagger:model MessageListReq
  851. type MessageListReq struct {
  852. PageInfo
  853. // 属主微信id
  854. WxWxid *string `json:"wxWxid,optional"`
  855. // 微信id 公众号微信ID
  856. Wxid *string `json:"wxid,optional"`
  857. }
  858. // Message information response | Message信息返回体
  859. // swagger:model MessageInfoResp
  860. type MessageInfoResp struct {
  861. BaseDataInfo
  862. // Message information | Message数据
  863. Data MessageInfo `json:"data"`
  864. }
  865. // The response data of label list | Label列表数据
  866. // swagger:model LabelSelectListResp
  867. type LabelSelectListResp struct {
  868. BaseDataInfo
  869. // Label list data | Label列表数据
  870. Data []LabelSelectListInfo `json:"data"`
  871. }
  872. // The response data of label list | Label列表数据
  873. // swagger:model LabelListResp
  874. type LabelListResp struct {
  875. BaseDataInfo
  876. // Label list data | Label列表数据
  877. Data LabelListInfo `json:"data"`
  878. }
  879. // Label list data | Label列表数据
  880. // swagger:model LabelListInfo
  881. type LabelListInfo struct {
  882. BaseListInfo
  883. // The API list data | Label列表数据
  884. Data []LabelInfo `json:"data"`
  885. }
  886. // Get label list request params | Label列表请求参数
  887. // swagger:model LabelListReq
  888. type LabelListReq struct {
  889. PageInfo
  890. // Label ID list | Label ID列表
  891. LabelIDs []uint64 `json:"labelIDs,optional"`
  892. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  893. Type *int `json:"type,optional"`
  894. // 标签名称
  895. Name *string `json:"name,optional"`
  896. // 标签来源:1后台创建 2个微同步
  897. From *int `json:"from,optional"`
  898. // 标签模式:1动态 2静态
  899. Mode *int `json:"mode,optional"`
  900. }
  901. // Label information response | Label信息返回体
  902. // swagger:model LabelInfoResp
  903. type LabelInfoResp struct {
  904. BaseDataInfo
  905. // Label information | Label数据
  906. Data LabelInfo `json:"data"`
  907. }
  908. // swagger:model LabelSelectListInfo
  909. type LabelSelectListInfo struct {
  910. // label
  911. Label *string `json:"label,optional"`
  912. // value
  913. Value *uint64 `json:"value,optional"`
  914. }
  915. // The response data of sop task list | SopTask列表数据
  916. // swagger:model SopTaskListResp
  917. type SopTaskListResp struct {
  918. BaseDataInfo
  919. // SopTask list data | SopTask列表数据
  920. Data SopTaskListInfo `json:"data"`
  921. }
  922. // The response data of sop task record list | SopTask列表数据
  923. // swagger:model SopTaskRecordListResp
  924. type SopTaskRecordListResp struct {
  925. BaseDataInfo
  926. // SopTask list data | SopTask列表数据
  927. Data []SopTaskRecordInfo `json:"data"`
  928. }
  929. // SopTask list data | SopTask列表数据
  930. // swagger:model SopTaskRecordInfo
  931. type SopTaskRecordInfo struct {
  932. // NodeId 节点ID
  933. SourceType *int `json:"sourceType,optional"`
  934. // NodeId 节点ID
  935. SourceId *uint64 `json:"sourceId,optional"`
  936. // 节点名称
  937. Name *string `json:"name,optional"`
  938. // 消息总数
  939. TotalCount *int64 `json:"totalCount,optional"`
  940. // 成功数
  941. SuccessCount *int64 `json:"successCount,optional"`
  942. // 失败数
  943. FailureCount *int64 `json:"failureCount,optional"`
  944. // 成功率
  945. SuccessRate *int64 `json:"successRate,optional"`
  946. }
  947. // SopTask list data | SopTask列表数据
  948. // swagger:model SopTaskListInfo
  949. type SopTaskListInfo struct {
  950. BaseListInfo
  951. // The API list data | SopTask列表数据
  952. Data []SopTaskInfo `json:"data"`
  953. }
  954. // Get sop task list request params | SopTask列表请求参数
  955. // swagger:model SopTaskListReq
  956. type SopTaskListReq struct {
  957. PageInfo
  958. // SOP 任务名称
  959. Name *string `json:"name,optional"`
  960. // 创建者 id
  961. CreatorId *string `json:"creatorId,optional"`
  962. }
  963. // SopTask information response | SopTask信息返回体
  964. // swagger:model SopTaskInfoResp
  965. type SopTaskInfoResp struct {
  966. BaseDataInfo
  967. // SopTask information | SopTask数据
  968. Data SopTaskInfo `json:"data"`
  969. }
  970. // SopTask create response | SopTask创建回体
  971. // swagger:model SopTaskCreateResp
  972. type SopTaskCreateResp struct {
  973. BaseDataInfo
  974. // SopTask id | SopTask id
  975. Data uint64 `json:"data"`
  976. }
  977. // The response data of sop stage information | SopStage信息
  978. // swagger:model SopStageInfo
  979. type SopStageInfo struct {
  980. BaseIDInfo
  981. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  982. Status *uint8 `json:"status,optional"`
  983. // SOP 任务 ID
  984. TaskId *uint64 `json:"taskId,optional"`
  985. // 阶段名称
  986. Name *string `json:"name,optional"`
  987. // 客群筛选条件类型 1 按标签筛选 2 按客户基本信息筛选
  988. ConditionType *int `json:"conditionType,optional"`
  989. // 筛选条件关系 1 满足所有条件(and) 2 满足任意条件(or)
  990. ConditionOperator *int `json:"conditionOperator,optional"`
  991. // 筛选条件列表
  992. ConditionList []Condition `json:"conditionList,optional"`
  993. // 命中后发送的消息内容
  994. ActionMessage []Action `json:"actionMessage,optional"`
  995. // 命中后需要打的标签
  996. ActionLabel []uint64 `json:"actionLabel,optional"`
  997. // 阶段顺序
  998. IndexSort *int `json:"indexSort,optional"`
  999. // sop 任务信息
  1000. TaskInfo *SopTaskInfo `json:"taskInfo,optional"`
  1001. // node 信息
  1002. NodeList []SopNodeInfo `json:"nodeList,optional"`
  1003. }
  1004. // The response data of sop task information | SopTask信息
  1005. // swagger:model SopTaskInfo
  1006. type SopTaskInfo struct {
  1007. BaseIDInfo
  1008. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1009. Status *uint8 `json:"status,optional"`
  1010. // SOP 任务名称
  1011. Name *string `json:"name,optional"`
  1012. // 机器人微信 id 列表
  1013. BotWxidList []string `json:"botWxidList,optional"`
  1014. // 标签类型:1好友,2群组,3企业微信联系人
  1015. Type *int `json:"type,optional"`
  1016. // 任务计划开始时间
  1017. PlanStartTime *int64 `json:"planStartTime,optional"`
  1018. // 任务计划结束时间
  1019. PlanEndTime *int64 `json:"planEndTime,optional"`
  1020. // 创建者 id
  1021. CreatorId *string `json:"creatorId,optional"`
  1022. // 阶段信息
  1023. StageList []SopStageInfo `json:"stageList,optional"`
  1024. // 组织ID
  1025. OrganizationId *uint64 `json:"organizationId,optional"`
  1026. }
  1027. // The response data of sop node information | SopNode信息
  1028. // swagger:model SopNodeInfo
  1029. type SopNodeInfo struct {
  1030. BaseIDInfo
  1031. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1032. Status *uint8 `json:"status,optional"`
  1033. // 阶段 ID
  1034. StageId *uint64 `json:"stageId,optional"`
  1035. // 父节点 ID
  1036. ParentId *uint64 `json:"parentId,optional"`
  1037. // 节点名称
  1038. Name *string `json:"name,optional"`
  1039. // 触发条件类型 1 客户回复后触发 2 超时后触发
  1040. ConditionType *int `json:"conditionType,optional"`
  1041. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  1042. ConditionList []string `json:"conditionList,optional"`
  1043. // 超时触发时间(分钟)
  1044. NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
  1045. // 命中后发送的消息内容
  1046. ActionMessage []Action `json:"actionMessage,optional"`
  1047. // 命中后需要打的标签
  1048. ActionLabel []uint64 `json:"actionLabel,optional"`
  1049. // 阶段信息
  1050. StageInfo *SopStageInfo `json:"stageInfo,optional"`
  1051. }
  1052. // The response data of sop stage list | SopStage列表数据
  1053. // swagger:model SopStageListResp
  1054. type SopStageListResp struct {
  1055. BaseDataInfo
  1056. // SopStage list data | SopStage列表数据
  1057. Data SopStageListInfo `json:"data"`
  1058. }
  1059. // SopStage list data | SopStage列表数据
  1060. // swagger:model SopStageListInfo
  1061. type SopStageListInfo struct {
  1062. BaseListInfo
  1063. // The API list data | SopStage列表数据
  1064. Data []SopStageInfo `json:"data"`
  1065. }
  1066. // Get sop stage list request params | SopStage列表请求参数
  1067. // swagger:model SopStageListReq
  1068. type SopStageListReq struct {
  1069. TaskId *uint64 `json:"taskId"`
  1070. }
  1071. // SopStage information response | SopStage信息返回体
  1072. // swagger:model SopStageInfoResp
  1073. type SopStageInfoResp struct {
  1074. BaseDataInfo
  1075. // SopStage information | SopStage数据
  1076. Data SopStageInfo `json:"data"`
  1077. }
  1078. // SopStage create response | SopStage创建回体
  1079. // swagger:model SopStageCreateResp
  1080. type SopStageCreateResp struct {
  1081. BaseDataInfo
  1082. // SopStage id | SopStage id
  1083. Data uint64 `json:"data"`
  1084. }
  1085. // Move sop stage request params | 移动阶段请求参数
  1086. // swagger:model SopStageMoveReq
  1087. type SopStageMoveReq struct {
  1088. BaseIDInfo
  1089. // 阶段名称
  1090. Offset *int `json:"offset,optional"`
  1091. }
  1092. // The response data of sop node list | SopNode列表数据
  1093. // swagger:model SopNodeListResp
  1094. type SopNodeListResp struct {
  1095. BaseDataInfo
  1096. // SopNode list data | SopNode列表数据
  1097. Data []*SopChildNodeInfo `json:"data"`
  1098. }
  1099. // SopNode list data | SopNode列表数据
  1100. // swagger:model SopChildNodeInfo
  1101. type SopChildNodeInfo struct {
  1102. NodeName *string `json:"nodeName,optional"`
  1103. ChildNode *SopChildNodeInfo `json:"childNode,optional"`
  1104. // The API list data | SopNode列表数据
  1105. ConditionNodes []*SopChildNodeInfo `json:"conditionNodes"`
  1106. SopNodeInfo
  1107. }
  1108. // SopNode list data | SopNode列表数据
  1109. // swagger:model SopNodeListInfo
  1110. type SopNodeListInfo struct {
  1111. BaseListInfo
  1112. // The API list data | SopNode列表数据
  1113. Data []SopNodeInfo `json:"data"`
  1114. }
  1115. // Get sop node list request params | SopNode列表请求参数
  1116. // swagger:model SopNodeListReq
  1117. type SopNodeListReq struct {
  1118. StageId *uint64 `json:"stageId"`
  1119. }
  1120. // SopNode information response | SopNode信息返回体
  1121. // swagger:model SopNodeInfoResp
  1122. type SopNodeInfoResp struct {
  1123. BaseDataInfo
  1124. // SopNode information | SopNode数据
  1125. Data SopNodeInfo `json:"data"`
  1126. }
  1127. // SopNode create response | SopNode创建返回体
  1128. // swagger:model SopNodeCreateResp
  1129. type SopNodeCreateResp struct {
  1130. BaseDataInfo
  1131. // SopNode id | SopNode id
  1132. Data uint64 `json:"data"`
  1133. }
  1134. // The response data of message records information | MessageRecords信息
  1135. // swagger:model MessageRecordsInfo
  1136. type MessageRecordsInfo struct {
  1137. BaseIDInfo
  1138. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1139. Status *uint8 `json:"status,optional"`
  1140. // 机器人微信 id
  1141. BotWxid *string `json:"botWxid,optional"`
  1142. // 联系人 id
  1143. ContactId *uint64 `json:"contactId,optional"`
  1144. // 类型:1好友,2群组,3企业微信联系人
  1145. ContactType *int `json:"contactType,optional"`
  1146. // 接收方微信 id
  1147. ContactWxid *string `json:"contactWxid,optional"`
  1148. // 内容类型 1 文本 2 文件
  1149. ContentType *int `json:"contentType,optional"`
  1150. // 发送内容
  1151. Content *string `json:"content,optional"`
  1152. // 元数据
  1153. Meta *Meta `json:"meta,optional"`
  1154. // 异常原因
  1155. ErrorDetail *string `json:"errorDetail,optional"`
  1156. // 发送时间
  1157. SendTime *int64 `json:"sendTime,optional"`
  1158. // 源类型 1 点发 2 群发 3 SOP
  1159. SourceType *int `json:"sourceType,optional"`
  1160. // 源 ID
  1161. SourceId *uint64 `json:"sourceId,optional"`
  1162. // 次源 ID
  1163. SubSourceId *uint64 `json:"subSourceId,optional"`
  1164. // 组织ID
  1165. OrganizationId *uint64 `json:"organizationId,optional"`
  1166. }
  1167. // The response data of message records list | MessageRecords列表数据
  1168. // swagger:model MessageRecordsListResp
  1169. type MessageRecordsListResp struct {
  1170. BaseDataInfo
  1171. // MessageRecords list data | MessageRecords列表数据
  1172. Data MessageRecordsListInfo `json:"data"`
  1173. }
  1174. // MessageRecords list data | MessageRecords列表数据
  1175. // swagger:model MessageRecordsListInfo
  1176. type MessageRecordsListInfo struct {
  1177. BaseListInfo
  1178. // The API list data | MessageRecords列表数据
  1179. Data []MessageRecordsInfo `json:"data"`
  1180. }
  1181. // Get message records list request params | MessageRecords列表请求参数
  1182. // swagger:model MessageRecordsListReq
  1183. type MessageRecordsListReq struct {
  1184. PageInfo
  1185. // 群发消息ID
  1186. BatchMsgId *uint64 `json:"batchMsgId,optional"`
  1187. // 机器人微信 id
  1188. BotWxid *string `json:"botWxid,optional"`
  1189. // 接收方微信 id
  1190. ContactWxid *string `json:"contactWxid,optional"`
  1191. // 发送内容
  1192. Status *uint8 `json:"status,optional"`
  1193. }
  1194. // MessageRecords information response | MessageRecords信息返回体
  1195. // swagger:model MessageRecordsInfoResp
  1196. type MessageRecordsInfoResp struct {
  1197. BaseDataInfo
  1198. // MessageRecords information | MessageRecords数据
  1199. Data MessageRecordsInfo `json:"data"`
  1200. }
  1201. // The response data of chatroom member information | ChatroomMember信息
  1202. // swagger:model ChatroomMemberInfo
  1203. type ChatroomMemberInfo struct {
  1204. // 名称
  1205. Wxid *string `json:"wxid,optional"`
  1206. // 群组
  1207. ChatRoom *string `json:"chatRoom,optional"`
  1208. // 属主Wxid
  1209. OwnerWxid *string `json:"ownerWxid,optional"`
  1210. // 账号
  1211. Account *string `json:"account,optional"`
  1212. }
  1213. // The response data of chatroom member list | ChatroomMember列表数据
  1214. // swagger:model ChatroomMemberListResp
  1215. type ChatroomMemberListResp struct {
  1216. BaseDataInfo
  1217. // chatroom member list data | chatroom member 列表数据
  1218. Data ChatroomMemberListInfo `json:"data"`
  1219. }
  1220. // chatroom member list data | chatroom member列表数据
  1221. // swagger:model ChatroomMemberListInfo
  1222. type ChatroomMemberListInfo struct {
  1223. BaseListInfo
  1224. // The API list data | chatroom member列表数据
  1225. Data []ChatroomMemberInfo `json:"data"`
  1226. }
  1227. // Get chatroom member list request params | ChatroomMember列表请求参数
  1228. // swagger:model ChatroomMemberListReq
  1229. type ChatroomMemberListReq struct {
  1230. PageInfo
  1231. // 属主Wxid
  1232. OwnerWxid *string `json:"ownerWxid,optional"`
  1233. // 群组
  1234. ChatRoom *string `json:"chatRoom,optional"`
  1235. }
  1236. // chatroom member information response | ChatroomMember信息返回体
  1237. // swagger:model ChatroomMemberInfoResp
  1238. type ChatroomMemberInfoResp struct {
  1239. BaseDataInfo
  1240. // Server information | Server数据
  1241. Data ChatroomMemberInfo `json:"data"`
  1242. }
  1243. // The response data of user information | 用户信息
  1244. // swagger:model UserInfo
  1245. type UserInfo struct {
  1246. BaseUUIDInfo
  1247. // Status | 状态
  1248. // max : 20
  1249. Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"`
  1250. // Username | 用户名
  1251. // max length : 50
  1252. Username *string `json:"username,optional" validate:"omitempty,max=50"`
  1253. // Nickname | 昵称
  1254. // max length : 40
  1255. Nickname *string `json:"nickname,optional" validate:"omitempty,max=40"`
  1256. // Password | 密码
  1257. // min length : 6
  1258. Password *string `json:"password,optional" validate:"omitempty,min=6"`
  1259. // Description | 描述
  1260. // max length : 100
  1261. Description *string `json:"description,optional" validate:"omitempty,max=100"`
  1262. // HomePath | 首页
  1263. // max length : 70
  1264. HomePath *string `json:"homePath,optional" validate:"omitempty,max=70"`
  1265. // RoleId | 角色ID
  1266. RoleIds []uint64 `json:"roleIds,optional"`
  1267. // Mobile | 手机号
  1268. // max length : 18
  1269. Mobile *string `json:"mobile,optional" validate:"omitempty,max=18"`
  1270. // Email | 邮箱
  1271. // max length : 80
  1272. Email *string `json:"email,optional" validate:"omitempty,max=80"`
  1273. // Avatar | 头像地址
  1274. // max length : 300
  1275. Avatar *string `json:"avatar,optional" validate:"omitempty,max=300"`
  1276. // Department ID | 部门ID
  1277. DepartmentId *uint64 `json:"departmentId,optional,omitempty"`
  1278. // Position ID | 职位ID
  1279. PositionIds []uint64 `json:"positionId,optional,omitempty"`
  1280. }
  1281. // User information response | 用户信息返回体
  1282. // swagger:model UserInfoResp
  1283. type UserInfoResp struct {
  1284. BaseDataInfo
  1285. // User information | User数据
  1286. Data UserInfo `json:"data"`
  1287. }
  1288. // The response data of user's basic information | 用户基本信息返回数据
  1289. // swagger:model UserBaseIDInfoResp
  1290. type UserBaseIDInfoResp struct {
  1291. BaseDataInfo
  1292. // The data of user's basic information | 用户基本信息
  1293. Data UserBaseIDInfo `json:"data"`
  1294. }
  1295. // The data of user's basic information | 用户基本信息
  1296. // swagger:model UserBaseIDInfo
  1297. type UserBaseIDInfo struct {
  1298. // User's UUID | 用户的UUID
  1299. UUID *string `json:"userId"`
  1300. // User's name | 用户名
  1301. Username *string `json:"username"`
  1302. // User's nickname | 用户的昵称
  1303. Nickname *string `json:"nickname"`
  1304. // The user's avatar path | 用户的头像路径
  1305. Avatar *string `json:"avatar"`
  1306. // The home page that the user enters after logging in | 用户登陆后进入的首页
  1307. HomePath *string `json:"homePath"`
  1308. // The description of user | 用户的描述信息
  1309. Description *string `json:"desc"`
  1310. // User's Role Name | 用户的角色名称
  1311. RoleName []string `json:"roleName"`
  1312. // Department Name | 部门名称
  1313. DepartmentName string `json:"departmentName,optional"`
  1314. // Department Name | 部门备注
  1315. DepartmentRemark string `json:"departmentRemark,optional"`
  1316. }
  1317. // swagger:model WxidReq
  1318. type WxidReq struct {
  1319. Wxid string `json:"wxid"`
  1320. }
  1321. // The data of batch msg information | BatchMsg信息
  1322. // swagger:model BatchMsgInfo
  1323. type BatchMsgInfo struct {
  1324. BaseIDInfo
  1325. // 状态 0 未开始 1 开始发送 2 发送完成 3 发送中止
  1326. Status *uint8 `json:"status,optional"`
  1327. // 批次号
  1328. BatchNo *string `json:"batchNo,optional"`
  1329. // 任务名称
  1330. TaskName *string `json:"taskName,optional"`
  1331. // 发送方微信ID
  1332. Fromwxid *string `json:"fromwxid,optional"`
  1333. // 内容
  1334. Msg *string `json:"msg,optional"`
  1335. // 发送规则 all 全部 tag1,tag2 按tag发送
  1336. Tag *string `json:"tag,optional"`
  1337. // 总数
  1338. Total *int32 `json:"total,optional"`
  1339. // 成功数量
  1340. Success *int32 `json:"success,optional"`
  1341. // 失败数量
  1342. Fail *int32 `json:"fail,optional"`
  1343. // 开始时间
  1344. StartTime *int64 `json:"startTime,optional"`
  1345. StartTimeStr *string `json:"startTimeStr,optional"`
  1346. // 结束时间
  1347. StopTime *int64 `json:"stopTime,optional"`
  1348. // 标签列表
  1349. Labels []string `json:"labels,optional"`
  1350. // 标签列表
  1351. Type *int32 `json:"type,optional"`
  1352. }
  1353. // The response data of batch msg list | BatchMsg列表数据
  1354. // swagger:model BatchMsgListResp
  1355. type BatchMsgListResp struct {
  1356. BaseDataInfo
  1357. // BatchMsg list data | BatchMsg列表数据
  1358. Data BatchMsgListInfo `json:"data"`
  1359. }
  1360. // BatchMsg list data | BatchMsg列表数据
  1361. // swagger:model BatchMsgListInfo
  1362. type BatchMsgListInfo struct {
  1363. BaseListInfo
  1364. // The API list data | BatchMsg列表数据
  1365. Data []BatchMsgInfo `json:"data"`
  1366. }
  1367. // Get batch msg list request params | BatchMsg列表请求参数
  1368. // swagger:model BatchMsgListReq
  1369. type BatchMsgListReq struct {
  1370. PageInfo
  1371. // 批次号
  1372. BatchNo *string `json:"batchNo,optional"`
  1373. // 发送方微信ID
  1374. Fromwxid *string `json:"fromwxid,optional"`
  1375. // 内容
  1376. Msg *string `json:"msg,optional"`
  1377. // 任务名称
  1378. TaskName *string `json:"taskName,optional"`
  1379. // 群发类型
  1380. Type *int32 `json:"type"`
  1381. }
  1382. // BatchMsg information response | BatchMsg信息返回体
  1383. // swagger:model BatchMsgInfoResp
  1384. type BatchMsgInfoResp struct {
  1385. BaseDataInfo
  1386. // BatchMsg information | BatchMsg数据
  1387. Data BatchMsgInfo `json:"data"`
  1388. }
  1389. // The data of msg information | Msg信息
  1390. // swagger:model MsgInfo
  1391. type MsgInfo struct {
  1392. BaseIDInfo
  1393. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1394. Status *uint8 `json:"status,optional"`
  1395. // 发送方微信ID
  1396. Fromwxid *string `json:"fromwxid,optional"`
  1397. // 接收人微信ID/群ID
  1398. Toid *string `json:"toid,optional"`
  1399. // 消息类型
  1400. Msgtype *int32 `json:"msgtype,optional"`
  1401. // 消息
  1402. Msg *string `json:"msg,optional"`
  1403. // 批次号
  1404. BatchNo *string `json:"batchNo,optional"`
  1405. }
  1406. // The response data of msg list | Msg列表数据
  1407. // swagger:model MsgListResp
  1408. type MsgListResp struct {
  1409. BaseDataInfo
  1410. // Msg list data | Msg列表数据
  1411. Data MsgListInfo `json:"data"`
  1412. }
  1413. // Msg list data | Msg列表数据
  1414. // swagger:model MsgListInfo
  1415. type MsgListInfo struct {
  1416. BaseListInfo
  1417. // The API list data | Msg列表数据
  1418. Data []MsgInfo `json:"data"`
  1419. }
  1420. // Get msg list request params | Msg列表请求参数
  1421. // swagger:model MsgListReq
  1422. type MsgListReq struct {
  1423. PageInfo
  1424. // 状态
  1425. Status *uint8 `json:"status,optional"`
  1426. // 接收人微信ID/群ID
  1427. Toid *string `json:"toid,optional"`
  1428. // 群发消息ID
  1429. BatchId *uint64 `json:"batchId"`
  1430. }
  1431. // Msg information response | Msg信息返回体
  1432. // swagger:model MsgInfoResp
  1433. type MsgInfoResp struct {
  1434. BaseDataInfo
  1435. // Msg information | Msg数据
  1436. Data MsgInfo `json:"data"`
  1437. }
  1438. // The data of employee information | Employee信息
  1439. // swagger:model EmployeeInfo
  1440. type EmployeeInfo struct {
  1441. BaseIDInfo
  1442. // title | 标题
  1443. Title *string `json:"title,optional"`
  1444. // avatar | 头像
  1445. Avatar *string `json:"avatar,optional"`
  1446. // tags | 个人标签
  1447. Tags *string `json:"tags,optional"`
  1448. // hire_count | 被雇佣次数
  1449. HireCount *int `json:"hireCount,optional"`
  1450. // service_count | 已服务次数
  1451. ServiceCount *int `json:"serviceCount,optional"`
  1452. // achievement_count | 业绩单数
  1453. AchievementCount *int `json:"achievementCount,optional"`
  1454. // category_id | 分类ID
  1455. CategoryId *uint64 `json:"categoryId,optional"`
  1456. // intro | 个人介绍
  1457. Intro *string `json:"intro,optional"`
  1458. // estimate | 自我评价
  1459. Estimate *string `json:"estimate,optional"`
  1460. // skill | 技能卡
  1461. Skill *string `json:"skill,optional"`
  1462. // ability_type | 能力类型
  1463. AbilityType *string `json:"abilityType,optional"`
  1464. // scene | 使用场景
  1465. Scene *string `json:"scene,optional"`
  1466. SceneList []EmployeeConfigInfo `json:"sceneList,optional"`
  1467. // switch_in | 支持介入
  1468. SwitchIn *string `json:"switchIn,optional"`
  1469. SwitchInList []EmployeeConfigInfo `json:"switchInList,optional"`
  1470. Tutorial []TutorialInfo `json:"tutorial,optional"`
  1471. // video_url | 视频地址
  1472. VideoUrl *string `json:"videoUrl,optional"`
  1473. // work_experience | 工作经验
  1474. WorkExperience []WorkExperienceInfo `json:"workExperience,optional"`
  1475. }
  1476. // The response data of employee list | Employee列表数据
  1477. // swagger:model EmployeeListResp
  1478. type EmployeeListResp struct {
  1479. BaseDataInfo
  1480. // Employee list data | Employee列表数据
  1481. Data EmployeeListInfo `json:"data"`
  1482. }
  1483. // Employee list data | Employee列表数据
  1484. // swagger:model EmployeeListInfo
  1485. type EmployeeListInfo struct {
  1486. BaseListInfo
  1487. // The API list data | Employee列表数据
  1488. Data []EmployeeInfo `json:"data"`
  1489. }
  1490. // Get employee list request params | Employee列表请求参数
  1491. // swagger:model EmployeeListReq
  1492. type EmployeeListReq struct {
  1493. PageInfo
  1494. // title | 标题
  1495. Title *string `json:"title,optional"`
  1496. // tags | 个人标签
  1497. Tags *string `json:"tags,optional"`
  1498. // category_id | 分类ID
  1499. CategoryId *uint64 `json:"categoryId,optional"`
  1500. }
  1501. // Employee information response | Employee信息返回体
  1502. // swagger:model EmployeeInfoResp
  1503. type EmployeeInfoResp struct {
  1504. BaseDataInfo
  1505. // Employee information | Employee数据
  1506. Data EmployeeInfo `json:"data"`
  1507. }
  1508. // The data of work experience information | WorkExperience信息
  1509. // swagger:model WorkExperienceInfo
  1510. type WorkExperienceInfo struct {
  1511. BaseIDInfo
  1512. // employee_id | 员工ID
  1513. EmployeeId *uint64 `json:"employeeId,optional"`
  1514. // start_date | 开始时间
  1515. StartDate *int64 `json:"startDate,optional"`
  1516. StartDateStr *string `json:"startDateStr,optional"`
  1517. // end_date | 结束时间
  1518. EndDate *int64 `json:"endDate,optional"`
  1519. EndDateStr *string `json:"endDateStr,optional"`
  1520. // company | 公司名
  1521. Company *string `json:"company,optional"`
  1522. // experience | 工作内容
  1523. Experience *string `json:"experience,optional"`
  1524. }
  1525. // The response data of work experience list | WorkExperience列表数据
  1526. // swagger:model WorkExperienceListResp
  1527. type WorkExperienceListResp struct {
  1528. BaseDataInfo
  1529. // WorkExperience list data | WorkExperience列表数据
  1530. Data WorkExperienceListInfo `json:"data"`
  1531. }
  1532. // WorkExperience list data | WorkExperience列表数据
  1533. // swagger:model WorkExperienceListInfo
  1534. type WorkExperienceListInfo struct {
  1535. BaseListInfo
  1536. // The API list data | WorkExperience列表数据
  1537. Data []WorkExperienceInfo `json:"data"`
  1538. }
  1539. // Get work experience list request params | WorkExperience列表请求参数
  1540. // swagger:model WorkExperienceListReq
  1541. type WorkExperienceListReq struct {
  1542. PageInfo
  1543. // company | 公司名
  1544. Company *string `json:"company,optional"`
  1545. }
  1546. // WorkExperience information response | WorkExperience信息返回体
  1547. // swagger:model WorkExperienceInfoResp
  1548. type WorkExperienceInfoResp struct {
  1549. BaseDataInfo
  1550. // WorkExperience information | WorkExperience数据
  1551. Data WorkExperienceInfo `json:"data"`
  1552. }
  1553. // The data of tutorial information | Tutorial信息
  1554. // swagger:model TutorialInfo
  1555. type TutorialInfo struct {
  1556. BaseIDInfo
  1557. // employee_id | 员工ID
  1558. EmployeeId *uint64 `json:"employeeId,optional"`
  1559. // index | 序号
  1560. Index *int `json:"index,optional"`
  1561. // title | 标题
  1562. Title *string `json:"title,optional"`
  1563. // content | 内容
  1564. Content *string `json:"content,optional"`
  1565. }
  1566. // The response data of tutorial list | Tutorial列表数据
  1567. // swagger:model TutorialListResp
  1568. type TutorialListResp struct {
  1569. BaseDataInfo
  1570. // Tutorial list data | Tutorial列表数据
  1571. Data TutorialListInfo `json:"data"`
  1572. }
  1573. // Tutorial list data | Tutorial列表数据
  1574. // swagger:model TutorialListInfo
  1575. type TutorialListInfo struct {
  1576. BaseListInfo
  1577. // The API list data | Tutorial列表数据
  1578. Data []TutorialInfo `json:"data"`
  1579. }
  1580. // Get tutorial list request params | Tutorial列表请求参数
  1581. // swagger:model TutorialListReq
  1582. type TutorialListReq struct {
  1583. PageInfo
  1584. // title | 标题
  1585. Title *string `json:"title,optional"`
  1586. // content | 内容
  1587. Content *string `json:"content,optional"`
  1588. }
  1589. // Tutorial information response | Tutorial信息返回体
  1590. // swagger:model TutorialInfoResp
  1591. type TutorialInfoResp struct {
  1592. BaseDataInfo
  1593. // Tutorial information | Tutorial数据
  1594. Data TutorialInfo `json:"data"`
  1595. }
  1596. // The data of employee config information | EmployeeConfig信息
  1597. // swagger:model EmployeeConfigInfo
  1598. type EmployeeConfigInfo struct {
  1599. BaseIDInfo
  1600. // 类型:scene-场景 switch_in-接入方式
  1601. Stype *string `json:"stype,optional"`
  1602. // 标题
  1603. Title *string `json:"title,optional"`
  1604. // 图片地址
  1605. Photo *string `json:"photo,optional"`
  1606. }
  1607. // EmployeeConfig list data | EmployeeConfig列表数据
  1608. // swagger:model EmployeeConfigListInfo
  1609. type EmployeeConfigListInfo struct {
  1610. BaseListInfo
  1611. // The API list data | EmployeeConfig列表数据
  1612. Data []EmployeeConfigInfo `json:"data"`
  1613. }
  1614. // Employee config response | Employee配置信息返回体
  1615. // swagger:model EmployeeConfigListReq
  1616. type EmployeeConfigListReq struct {
  1617. /// 类型:scene-场景 switch_in-接入方式
  1618. Stype *string `json:"stype,optional"`
  1619. }
  1620. // EmployeeConfig information response | EmployeeConfig信息返回体
  1621. type EmployeeConfig struct {
  1622. Scene []EmployeeConfigInfo `json:"scene"`
  1623. SwitchIn []EmployeeConfigInfo `json:"switchIn"`
  1624. }
  1625. // Employee config response | Employee配置信息返回体
  1626. // swagger:model EmployeeConfigListResp
  1627. type EmployeeConfigListResp struct {
  1628. BaseDataInfo
  1629. // Employee information | Employee数据
  1630. Data EmployeeConfig `json:"data"`
  1631. }
  1632. // The data of token information | Token信息
  1633. // swagger:model TokenInfo
  1634. type TokenInfo struct {
  1635. BaseIDInfo
  1636. // 过期时间
  1637. ExpireAt *int64 `json:"expireAt,optional"`
  1638. ExpireAtStr *string `json:"expireAtStr,optional"`
  1639. // Token
  1640. Token *string `json:"token,optional"`
  1641. // Mac地址
  1642. Mac *string `json:"mac,optional"`
  1643. }
  1644. // The response data of token list | Token列表数据
  1645. // swagger:model TokenListResp
  1646. type TokenListResp struct {
  1647. BaseDataInfo
  1648. // Token list data | Token列表数据
  1649. Data TokenListInfo `json:"data"`
  1650. }
  1651. // Token list data | Token列表数据
  1652. // swagger:model TokenListInfo
  1653. type TokenListInfo struct {
  1654. BaseListInfo
  1655. // The API list data | Token列表数据
  1656. Data []TokenInfo `json:"data"`
  1657. }
  1658. // Get token list request params | Token列表请求参数
  1659. // swagger:model TokenListReq
  1660. type TokenListReq struct {
  1661. PageInfo
  1662. // Token
  1663. Token *string `json:"token,optional"`
  1664. // Mac地址
  1665. Mac *string `json:"mac,optional"`
  1666. }
  1667. // Token information response | Token信息返回体
  1668. // swagger:model TokenInfoResp
  1669. type TokenInfoResp struct {
  1670. BaseDataInfo
  1671. // Token information | Token数据
  1672. Data TokenInfo `json:"data"`
  1673. }
  1674. // swagger:model CheckTokenReq
  1675. type CheckTokenReq struct {
  1676. // Token
  1677. Token *string `json:"token"`
  1678. // Mac地址
  1679. Mac *string `json:"mac"`
  1680. }
  1681. // swagger:model CheckTokenResp
  1682. type CheckTokenResp struct {
  1683. // 是否合法
  1684. Valid *bool `json:"valid"`
  1685. // Sign 签名内容
  1686. Sign *string `json:"sign"`
  1687. // Timestamp 时间戳
  1688. Timestamp *int64 `json:"timestamp"`
  1689. }
  1690. // The data of category information | Category信息
  1691. // swagger:model CategoryInfo
  1692. type CategoryInfo struct {
  1693. BaseIDInfo
  1694. // name | 角色名称
  1695. Name *string `json:"name,optional"`
  1696. // organization_id | 租户ID
  1697. OrganizationId *uint64 `json:"organizationId,optional"`
  1698. }
  1699. // The response data of category list | Category列表数据
  1700. // swagger:model CategoryListResp
  1701. type CategoryListResp struct {
  1702. BaseDataInfo
  1703. // Category list data | Category列表数据
  1704. Data CategoryListInfo `json:"data"`
  1705. }
  1706. // Category list data | Category列表数据
  1707. // swagger:model CategoryListInfo
  1708. type CategoryListInfo struct {
  1709. BaseListInfo
  1710. // The API list data | Category列表数据
  1711. Data []CategoryInfo `json:"data"`
  1712. }
  1713. // Get category list request params | Category列表请求参数
  1714. // swagger:model CategoryListReq
  1715. type CategoryListReq struct {
  1716. PageInfo
  1717. // name | 角色名称
  1718. Name *string `json:"name,optional"`
  1719. }
  1720. // Category information response | Category信息返回体
  1721. // swagger:model CategoryInfoResp
  1722. type CategoryInfoResp struct {
  1723. BaseDataInfo
  1724. // Category information | Category数据
  1725. Data CategoryInfo `json:"data"`
  1726. }