types.go 53 KB

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