types.go 54 KB

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