types.go 53 KB

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