types.go 54 KB

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