types.go 56 KB

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