types.go 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950
  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. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  854. Type *int `json:"type,optional"`
  855. }
  856. // Contact information response | Contact信息返回体
  857. // swagger:model ContactInfoResp
  858. type ContactInfoResp struct {
  859. BaseDataInfo
  860. // Contact information | Contact数据
  861. Data ContactInfo `json:"data"`
  862. }
  863. // swagger:model AddNewFriendReq
  864. type AddNewFriendReq struct {
  865. OwnerWxid string `json:"ownerWxid"`
  866. Wxid string `json:"wxid"`
  867. Gid string `json:"gid"`
  868. Desc string `json:"desc"`
  869. AddType string `json:"addType"`
  870. }
  871. // The response data of message information | Message信息
  872. // swagger:model MessageInfo
  873. type MessageInfo struct {
  874. BaseIDInfo
  875. // 属主微信id
  876. WxWxid *string `json:"wxWxid"`
  877. // 微信id 公众号微信ID
  878. Wxid *string `json:"wxid"`
  879. // 微信消息内容
  880. Msg *string `json:"msg"`
  881. }
  882. // The response data of message list | Message列表数据
  883. // swagger:model MessageListResp
  884. type MessageListResp struct {
  885. BaseDataInfo
  886. // Message list data | Message列表数据
  887. Data MessageListInfo `json:"data"`
  888. }
  889. // Message list data | Message列表数据
  890. // swagger:model MessageListInfo
  891. type MessageListInfo struct {
  892. BaseListInfo
  893. // The API list data | Message列表数据
  894. Data []MessageInfo `json:"data"`
  895. }
  896. // Get message list request params | Message列表请求参数
  897. // swagger:model MessageListReq
  898. type MessageListReq struct {
  899. PageInfo
  900. // 属主微信id
  901. WxWxid *string `json:"wxWxid,optional"`
  902. // 微信id 公众号微信ID
  903. Wxid *string `json:"wxid,optional"`
  904. }
  905. // Message information response | Message信息返回体
  906. // swagger:model MessageInfoResp
  907. type MessageInfoResp struct {
  908. BaseDataInfo
  909. // Message information | Message数据
  910. Data MessageInfo `json:"data"`
  911. }
  912. // The response data of label list | Label列表数据
  913. // swagger:model LabelSelectListResp
  914. type LabelSelectListResp struct {
  915. BaseDataInfo
  916. // Label list data | Label列表数据
  917. Data []LabelSelectListInfo `json:"data"`
  918. }
  919. // The response data of label list | Label列表数据
  920. // swagger:model LabelListResp
  921. type LabelListResp struct {
  922. BaseDataInfo
  923. // Label list data | Label列表数据
  924. Data LabelListInfo `json:"data"`
  925. }
  926. // Label list data | Label列表数据
  927. // swagger:model LabelListInfo
  928. type LabelListInfo struct {
  929. BaseListInfo
  930. // The API list data | Label列表数据
  931. Data []LabelInfo `json:"data"`
  932. }
  933. // Get label list request params | Label列表请求参数
  934. // swagger:model LabelListReq
  935. type LabelListReq struct {
  936. PageInfo
  937. // Label ID list | Label ID列表
  938. LabelIDs []uint64 `json:"labelIDs,optional"`
  939. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  940. Type *int `json:"type,optional"`
  941. // 标签名称
  942. Name *string `json:"name,optional"`
  943. // 标签来源:1后台创建 2个微同步
  944. From *int `json:"from,optional"`
  945. // 标签模式:1动态 2静态
  946. Mode *int `json:"mode,optional"`
  947. }
  948. // Label information response | Label信息返回体
  949. // swagger:model LabelInfoResp
  950. type LabelInfoResp struct {
  951. BaseDataInfo
  952. // Label information | Label数据
  953. Data LabelInfo `json:"data"`
  954. }
  955. // swagger:model LabelSelectListInfo
  956. type LabelSelectListInfo struct {
  957. // label
  958. Label *string `json:"label,optional"`
  959. // value
  960. Value *uint64 `json:"value,optional"`
  961. }
  962. // The response data of sop task list | SopTask列表数据
  963. // swagger:model SopTaskListResp
  964. type SopTaskListResp struct {
  965. BaseDataInfo
  966. // SopTask list data | SopTask列表数据
  967. Data SopTaskListInfo `json:"data"`
  968. }
  969. // The response data of sop task record list | SopTask列表数据
  970. // swagger:model SopTaskRecordListResp
  971. type SopTaskRecordListResp struct {
  972. BaseDataInfo
  973. // SopTask list data | SopTask列表数据
  974. Data []SopTaskRecordInfo `json:"data"`
  975. }
  976. // SopTask list data | SopTask列表数据
  977. // swagger:model SopTaskRecordInfo
  978. type SopTaskRecordInfo struct {
  979. // NodeId 节点ID
  980. SourceType *int `json:"sourceType,optional"`
  981. // NodeId 节点ID
  982. SourceId *uint64 `json:"sourceId,optional"`
  983. // 节点名称
  984. Name *string `json:"name,optional"`
  985. // 消息总数
  986. TotalCount *int64 `json:"totalCount,optional"`
  987. // 成功数
  988. SuccessCount *int64 `json:"successCount,optional"`
  989. // 失败数
  990. FailureCount *int64 `json:"failureCount,optional"`
  991. // 成功率
  992. SuccessRate *int64 `json:"successRate,optional"`
  993. }
  994. // SopTask list data | SopTask列表数据
  995. // swagger:model SopTaskListInfo
  996. type SopTaskListInfo struct {
  997. BaseListInfo
  998. // The API list data | SopTask列表数据
  999. Data []SopTaskInfo `json:"data"`
  1000. }
  1001. // Get sop task list request params | SopTask列表请求参数
  1002. // swagger:model SopTaskListReq
  1003. type SopTaskListReq struct {
  1004. PageInfo
  1005. // SOP 任务名称
  1006. Name *string `json:"name,optional"`
  1007. // 创建者 id
  1008. CreatorId *string `json:"creatorId,optional"`
  1009. }
  1010. // SopTask information response | SopTask信息返回体
  1011. // swagger:model SopTaskInfoResp
  1012. type SopTaskInfoResp struct {
  1013. BaseDataInfo
  1014. // SopTask information | SopTask数据
  1015. Data SopTaskInfo `json:"data"`
  1016. }
  1017. // SopTask create response | SopTask创建回体
  1018. // swagger:model SopTaskCreateResp
  1019. type SopTaskCreateResp struct {
  1020. BaseDataInfo
  1021. // SopTask id | SopTask id
  1022. Data uint64 `json:"data"`
  1023. }
  1024. // The response data of sop stage information | SopStage信息
  1025. // swagger:model SopStageInfo
  1026. type SopStageInfo struct {
  1027. BaseIDInfo
  1028. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1029. Status *uint8 `json:"status,optional"`
  1030. // SOP 任务 ID
  1031. TaskId *uint64 `json:"taskId,optional"`
  1032. // 阶段名称
  1033. Name *string `json:"name,optional"`
  1034. // 客群筛选条件类型 1 按标签筛选 2 按客户基本信息筛选
  1035. ConditionType *int `json:"conditionType,optional"`
  1036. // 筛选条件关系 1 满足所有条件(and) 2 满足任意条件(or)
  1037. ConditionOperator *int `json:"conditionOperator,optional"`
  1038. // 筛选条件列表
  1039. ConditionList []Condition `json:"conditionList,optional"`
  1040. // 命中后发送的消息内容
  1041. ActionMessage []Action `json:"actionMessage,optional"`
  1042. // 命中后需要打的标签
  1043. ActionLabel []uint64 `json:"actionLabel,optional"`
  1044. // 阶段顺序
  1045. IndexSort *int `json:"indexSort,optional"`
  1046. // sop 任务信息
  1047. TaskInfo *SopTaskInfo `json:"taskInfo,optional"`
  1048. // node 信息
  1049. NodeList []SopNodeInfo `json:"nodeList,optional"`
  1050. }
  1051. // The response data of sop task information | SopTask信息
  1052. // swagger:model SopTaskInfo
  1053. type SopTaskInfo struct {
  1054. BaseIDInfo
  1055. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1056. Status *uint8 `json:"status,optional"`
  1057. // SOP 任务名称
  1058. Name *string `json:"name,optional"`
  1059. // 机器人微信 id 列表
  1060. BotWxidList []string `json:"botWxidList,optional"`
  1061. // 标签类型:1好友,2群组,3企业微信联系人
  1062. Type *int `json:"type,optional"`
  1063. // 任务计划开始时间
  1064. PlanStartTime *int64 `json:"planStartTime,optional"`
  1065. // 任务计划结束时间
  1066. PlanEndTime *int64 `json:"planEndTime,optional"`
  1067. // 创建者 id
  1068. CreatorId *string `json:"creatorId,optional"`
  1069. // 阶段信息
  1070. StageList []SopStageInfo `json:"stageList,optional"`
  1071. // 组织ID
  1072. OrganizationId *uint64 `json:"organizationId,optional"`
  1073. }
  1074. // The response data of sop node information | SopNode信息
  1075. // swagger:model SopNodeInfo
  1076. type SopNodeInfo struct {
  1077. BaseIDInfo
  1078. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1079. Status *uint8 `json:"status,optional"`
  1080. // 阶段 ID
  1081. StageId *uint64 `json:"stageId,optional"`
  1082. // 父节点 ID
  1083. ParentId *uint64 `json:"parentId,optional"`
  1084. // 节点名称
  1085. Name *string `json:"name,optional"`
  1086. // 触发条件类型 1 客户回复后触发 2 超时后触发
  1087. ConditionType *int `json:"conditionType,optional"`
  1088. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  1089. ConditionList []string `json:"conditionList,optional"`
  1090. // 超时触发时间(分钟)
  1091. NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
  1092. // 命中后发送的消息内容
  1093. ActionMessage []Action `json:"actionMessage,optional"`
  1094. // 命中后需要打的标签
  1095. ActionLabel []uint64 `json:"actionLabel,optional"`
  1096. // 阶段信息
  1097. StageInfo *SopStageInfo `json:"stageInfo,optional"`
  1098. }
  1099. // The response data of sop stage list | SopStage列表数据
  1100. // swagger:model SopStageListResp
  1101. type SopStageListResp struct {
  1102. BaseDataInfo
  1103. // SopStage list data | SopStage列表数据
  1104. Data SopStageListInfo `json:"data"`
  1105. }
  1106. // SopStage list data | SopStage列表数据
  1107. // swagger:model SopStageListInfo
  1108. type SopStageListInfo struct {
  1109. BaseListInfo
  1110. // The API list data | SopStage列表数据
  1111. Data []SopStageInfo `json:"data"`
  1112. }
  1113. // Get sop stage list request params | SopStage列表请求参数
  1114. // swagger:model SopStageListReq
  1115. type SopStageListReq struct {
  1116. TaskId *uint64 `json:"taskId"`
  1117. }
  1118. // SopStage information response | SopStage信息返回体
  1119. // swagger:model SopStageInfoResp
  1120. type SopStageInfoResp struct {
  1121. BaseDataInfo
  1122. // SopStage information | SopStage数据
  1123. Data SopStageInfo `json:"data"`
  1124. }
  1125. // SopStage create response | SopStage创建回体
  1126. // swagger:model SopStageCreateResp
  1127. type SopStageCreateResp struct {
  1128. BaseDataInfo
  1129. // SopStage id | SopStage id
  1130. Data uint64 `json:"data"`
  1131. }
  1132. // Move sop stage request params | 移动阶段请求参数
  1133. // swagger:model SopStageMoveReq
  1134. type SopStageMoveReq struct {
  1135. BaseIDInfo
  1136. // 阶段名称
  1137. Offset *int `json:"offset,optional"`
  1138. }
  1139. // The response data of sop node list | SopNode列表数据
  1140. // swagger:model SopNodeListResp
  1141. type SopNodeListResp struct {
  1142. BaseDataInfo
  1143. // SopNode list data | SopNode列表数据
  1144. Data []*SopChildNodeInfo `json:"data"`
  1145. }
  1146. // SopNode list data | SopNode列表数据
  1147. // swagger:model SopChildNodeInfo
  1148. type SopChildNodeInfo struct {
  1149. NodeName *string `json:"nodeName,optional"`
  1150. ChildNode *SopChildNodeInfo `json:"childNode,optional"`
  1151. // The API list data | SopNode列表数据
  1152. ConditionNodes []*SopChildNodeInfo `json:"conditionNodes"`
  1153. SopNodeInfo
  1154. }
  1155. // SopNode list data | SopNode列表数据
  1156. // swagger:model SopNodeListInfo
  1157. type SopNodeListInfo struct {
  1158. BaseListInfo
  1159. // The API list data | SopNode列表数据
  1160. Data []SopNodeInfo `json:"data"`
  1161. }
  1162. // Get sop node list request params | SopNode列表请求参数
  1163. // swagger:model SopNodeListReq
  1164. type SopNodeListReq struct {
  1165. StageId *uint64 `json:"stageId"`
  1166. }
  1167. // SopNode information response | SopNode信息返回体
  1168. // swagger:model SopNodeInfoResp
  1169. type SopNodeInfoResp struct {
  1170. BaseDataInfo
  1171. // SopNode information | SopNode数据
  1172. Data SopNodeInfo `json:"data"`
  1173. }
  1174. // SopNode create response | SopNode创建返回体
  1175. // swagger:model SopNodeCreateResp
  1176. type SopNodeCreateResp struct {
  1177. BaseDataInfo
  1178. // SopNode id | SopNode id
  1179. Data uint64 `json:"data"`
  1180. }
  1181. // The response data of message records information | MessageRecords信息
  1182. // swagger:model MessageRecordsInfo
  1183. type MessageRecordsInfo struct {
  1184. BaseIDInfo
  1185. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1186. Status *uint8 `json:"status,optional"`
  1187. // 机器人微信 id
  1188. BotWxid *string `json:"botWxid,optional"`
  1189. // 联系人 id
  1190. ContactId *uint64 `json:"contactId,optional"`
  1191. // 类型:1好友,2群组,3企业微信联系人
  1192. ContactType *int `json:"contactType,optional"`
  1193. // 接收方微信 id
  1194. ContactWxid *string `json:"contactWxid,optional"`
  1195. // 内容类型 1 文本 2 文件
  1196. ContentType *int `json:"contentType,optional"`
  1197. // 发送内容
  1198. Content *string `json:"content,optional"`
  1199. // 元数据
  1200. Meta *Meta `json:"meta,optional"`
  1201. // 异常原因
  1202. ErrorDetail *string `json:"errorDetail,optional"`
  1203. // 发送时间
  1204. SendTime *int64 `json:"sendTime,optional"`
  1205. // 源类型 1 点发 2 群发 3 SOP
  1206. SourceType *int `json:"sourceType,optional"`
  1207. // 源 ID
  1208. SourceId *uint64 `json:"sourceId,optional"`
  1209. // 次源 ID
  1210. SubSourceId *uint64 `json:"subSourceId,optional"`
  1211. // 组织ID
  1212. OrganizationId *uint64 `json:"organizationId,optional"`
  1213. }
  1214. // The response data of message records list | MessageRecords列表数据
  1215. // swagger:model MessageRecordsListResp
  1216. type MessageRecordsListResp struct {
  1217. BaseDataInfo
  1218. // MessageRecords list data | MessageRecords列表数据
  1219. Data MessageRecordsListInfo `json:"data"`
  1220. }
  1221. // MessageRecords list data | MessageRecords列表数据
  1222. // swagger:model MessageRecordsListInfo
  1223. type MessageRecordsListInfo struct {
  1224. BaseListInfo
  1225. // The API list data | MessageRecords列表数据
  1226. Data []MessageRecordsInfo `json:"data"`
  1227. }
  1228. // Get message records list request params | MessageRecords列表请求参数
  1229. // swagger:model MessageRecordsListReq
  1230. type MessageRecordsListReq struct {
  1231. PageInfo
  1232. // 群发消息ID
  1233. BatchMsgId *uint64 `json:"batchMsgId,optional"`
  1234. // 机器人微信 id
  1235. BotWxid *string `json:"botWxid,optional"`
  1236. // 接收方微信 id
  1237. ContactWxid *string `json:"contactWxid,optional"`
  1238. // 发送内容
  1239. Status *uint8 `json:"status,optional"`
  1240. }
  1241. // MessageRecords information response | MessageRecords信息返回体
  1242. // swagger:model MessageRecordsInfoResp
  1243. type MessageRecordsInfoResp struct {
  1244. BaseDataInfo
  1245. // MessageRecords information | MessageRecords数据
  1246. Data MessageRecordsInfo `json:"data"`
  1247. }
  1248. // The response data of chatroom member information | ChatroomMember信息
  1249. // swagger:model ChatroomMemberInfo
  1250. type ChatroomMemberInfo struct {
  1251. // 名称
  1252. Wxid *string `json:"wxid,optional"`
  1253. // 群组
  1254. ChatRoom *string `json:"chatRoom,optional"`
  1255. // 属主Wxid
  1256. OwnerWxid *string `json:"ownerWxid,optional"`
  1257. // 账号
  1258. Account *string `json:"account,optional"`
  1259. }
  1260. // The response data of chatroom member list | ChatroomMember列表数据
  1261. // swagger:model ChatroomMemberListResp
  1262. type ChatroomMemberListResp struct {
  1263. BaseDataInfo
  1264. // chatroom member list data | chatroom member 列表数据
  1265. Data ChatroomMemberListInfo `json:"data"`
  1266. }
  1267. // chatroom member list data | chatroom member列表数据
  1268. // swagger:model ChatroomMemberListInfo
  1269. type ChatroomMemberListInfo struct {
  1270. BaseListInfo
  1271. // The API list data | chatroom member列表数据
  1272. Data []ChatroomMemberInfo `json:"data"`
  1273. }
  1274. // Get chatroom member list request params | ChatroomMember列表请求参数
  1275. // swagger:model ChatroomMemberListReq
  1276. type ChatroomMemberListReq struct {
  1277. PageInfo
  1278. // 属主Wxid
  1279. OwnerWxid *string `json:"ownerWxid,optional"`
  1280. // 群组
  1281. ChatRoom *string `json:"chatRoom,optional"`
  1282. }
  1283. // chatroom member information response | ChatroomMember信息返回体
  1284. // swagger:model ChatroomMemberInfoResp
  1285. type ChatroomMemberInfoResp struct {
  1286. BaseDataInfo
  1287. // Server information | Server数据
  1288. Data ChatroomMemberInfo `json:"data"`
  1289. }
  1290. // The response data of user information | 用户信息
  1291. // swagger:model UserInfo
  1292. type UserInfo struct {
  1293. BaseUUIDInfo
  1294. // Status | 状态
  1295. // max : 20
  1296. Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"`
  1297. // Username | 用户名
  1298. // max length : 50
  1299. Username *string `json:"username,optional" validate:"omitempty,max=50"`
  1300. // Nickname | 昵称
  1301. // max length : 40
  1302. Nickname *string `json:"nickname,optional" validate:"omitempty,max=40"`
  1303. // Password | 密码
  1304. // min length : 6
  1305. Password *string `json:"password,optional" validate:"omitempty,min=6"`
  1306. // Description | 描述
  1307. // max length : 100
  1308. Description *string `json:"description,optional" validate:"omitempty,max=100"`
  1309. // HomePath | 首页
  1310. // max length : 70
  1311. HomePath *string `json:"homePath,optional" validate:"omitempty,max=70"`
  1312. // RoleId | 角色ID
  1313. RoleIds []uint64 `json:"roleIds,optional"`
  1314. // Mobile | 手机号
  1315. // max length : 18
  1316. Mobile *string `json:"mobile,optional" validate:"omitempty,max=18"`
  1317. // Email | 邮箱
  1318. // max length : 80
  1319. Email *string `json:"email,optional" validate:"omitempty,max=80"`
  1320. // Avatar | 头像地址
  1321. // max length : 300
  1322. Avatar *string `json:"avatar,optional" validate:"omitempty,max=300"`
  1323. // Department ID | 部门ID
  1324. DepartmentId *uint64 `json:"departmentId,optional,omitempty"`
  1325. // Position ID | 职位ID
  1326. PositionIds []uint64 `json:"positionId,optional,omitempty"`
  1327. }
  1328. // User information response | 用户信息返回体
  1329. // swagger:model UserInfoResp
  1330. type UserInfoResp struct {
  1331. BaseDataInfo
  1332. // User information | User数据
  1333. Data UserInfo `json:"data"`
  1334. }
  1335. // The response data of user's basic information | 用户基本信息返回数据
  1336. // swagger:model UserBaseIDInfoResp
  1337. type UserBaseIDInfoResp struct {
  1338. BaseDataInfo
  1339. // The data of user's basic information | 用户基本信息
  1340. Data UserBaseIDInfo `json:"data"`
  1341. }
  1342. // The data of user's basic information | 用户基本信息
  1343. // swagger:model UserBaseIDInfo
  1344. type UserBaseIDInfo struct {
  1345. // User's UUID | 用户的UUID
  1346. UUID *string `json:"userId"`
  1347. // User's name | 用户名
  1348. Username *string `json:"username"`
  1349. // User's nickname | 用户的昵称
  1350. Nickname *string `json:"nickname"`
  1351. // The user's avatar path | 用户的头像路径
  1352. Avatar *string `json:"avatar"`
  1353. // The home page that the user enters after logging in | 用户登陆后进入的首页
  1354. HomePath *string `json:"homePath"`
  1355. // The description of user | 用户的描述信息
  1356. Description *string `json:"desc"`
  1357. // User's Role Name | 用户的角色名称
  1358. RoleName []string `json:"roleName"`
  1359. // Department Name | 部门名称
  1360. DepartmentName string `json:"departmentName,optional"`
  1361. // Department Name | 部门备注
  1362. DepartmentRemark string `json:"departmentRemark,optional"`
  1363. }
  1364. // swagger:model WxidReq
  1365. type WxidReq struct {
  1366. Wxid string `json:"wxid"`
  1367. }
  1368. // The data of batch msg information | BatchMsg信息
  1369. // swagger:model BatchMsgInfo
  1370. type BatchMsgInfo struct {
  1371. BaseIDInfo
  1372. // 状态 0 未开始 1 开始发送 2 发送完成 3 发送中止
  1373. Status *uint8 `json:"status,optional"`
  1374. // 批次号
  1375. BatchNo *string `json:"batchNo,optional"`
  1376. // 任务名称
  1377. TaskName *string `json:"taskName,optional"`
  1378. // 发送方微信ID
  1379. Fromwxid *string `json:"fromwxid,optional"`
  1380. // 内容
  1381. Msg *string `json:"msg,optional"`
  1382. // 发送规则 all 全部 tag1,tag2 按tag发送
  1383. Tag *string `json:"tag,optional"`
  1384. // 总数
  1385. Total *int32 `json:"total,optional"`
  1386. // 成功数量
  1387. Success *int32 `json:"success,optional"`
  1388. // 失败数量
  1389. Fail *int32 `json:"fail,optional"`
  1390. // 开始时间
  1391. StartTime *int64 `json:"startTime,optional"`
  1392. StartTimeStr *string `json:"startTimeStr,optional"`
  1393. // 结束时间
  1394. StopTime *int64 `json:"stopTime,optional"`
  1395. // 标签列表
  1396. Labels []string `json:"labels,optional"`
  1397. // 标签列表
  1398. Type *int32 `json:"type,optional"`
  1399. }
  1400. // The response data of batch msg list | BatchMsg列表数据
  1401. // swagger:model BatchMsgListResp
  1402. type BatchMsgListResp struct {
  1403. BaseDataInfo
  1404. // BatchMsg list data | BatchMsg列表数据
  1405. Data BatchMsgListInfo `json:"data"`
  1406. }
  1407. // BatchMsg list data | BatchMsg列表数据
  1408. // swagger:model BatchMsgListInfo
  1409. type BatchMsgListInfo struct {
  1410. BaseListInfo
  1411. // The API list data | BatchMsg列表数据
  1412. Data []BatchMsgInfo `json:"data"`
  1413. }
  1414. // Get batch msg list request params | BatchMsg列表请求参数
  1415. // swagger:model BatchMsgListReq
  1416. type BatchMsgListReq struct {
  1417. PageInfo
  1418. // 批次号
  1419. BatchNo *string `json:"batchNo,optional"`
  1420. // 发送方微信ID
  1421. Fromwxid *string `json:"fromwxid,optional"`
  1422. // 内容
  1423. Msg *string `json:"msg,optional"`
  1424. // 任务名称
  1425. TaskName *string `json:"taskName,optional"`
  1426. // 群发类型
  1427. Type *int32 `json:"type"`
  1428. }
  1429. // BatchMsg information response | BatchMsg信息返回体
  1430. // swagger:model BatchMsgInfoResp
  1431. type BatchMsgInfoResp struct {
  1432. BaseDataInfo
  1433. // BatchMsg information | BatchMsg数据
  1434. Data BatchMsgInfo `json:"data"`
  1435. }
  1436. // The data of msg information | Msg信息
  1437. // swagger:model MsgInfo
  1438. type MsgInfo struct {
  1439. BaseIDInfo
  1440. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1441. Status *uint8 `json:"status,optional"`
  1442. // 发送方微信ID
  1443. Fromwxid *string `json:"fromwxid,optional"`
  1444. // 接收人微信ID/群ID
  1445. Toid *string `json:"toid,optional"`
  1446. // 消息类型
  1447. Msgtype *int32 `json:"msgtype,optional"`
  1448. // 消息
  1449. Msg *string `json:"msg,optional"`
  1450. // 批次号
  1451. BatchNo *string `json:"batchNo,optional"`
  1452. }
  1453. // The response data of msg list | Msg列表数据
  1454. // swagger:model MsgListResp
  1455. type MsgListResp struct {
  1456. BaseDataInfo
  1457. // Msg list data | Msg列表数据
  1458. Data MsgListInfo `json:"data"`
  1459. }
  1460. // Msg list data | Msg列表数据
  1461. // swagger:model MsgListInfo
  1462. type MsgListInfo struct {
  1463. BaseListInfo
  1464. // The API list data | Msg列表数据
  1465. Data []MsgInfo `json:"data"`
  1466. }
  1467. // Get msg list request params | Msg列表请求参数
  1468. // swagger:model MsgListReq
  1469. type MsgListReq struct {
  1470. PageInfo
  1471. // 状态
  1472. Status *uint8 `json:"status,optional"`
  1473. // 接收人微信ID/群ID
  1474. Toid *string `json:"toid,optional"`
  1475. // 群发消息ID
  1476. BatchId *uint64 `json:"batchId"`
  1477. }
  1478. // Msg information response | Msg信息返回体
  1479. // swagger:model MsgInfoResp
  1480. type MsgInfoResp struct {
  1481. BaseDataInfo
  1482. // Msg information | Msg数据
  1483. Data MsgInfo `json:"data"`
  1484. }
  1485. // The data of employee information | Employee信息
  1486. // swagger:model EmployeeInfo
  1487. type EmployeeInfo struct {
  1488. BaseIDInfo
  1489. // title | 标题
  1490. Title *string `json:"title,optional"`
  1491. // avatar | 头像
  1492. Avatar *string `json:"avatar,optional"`
  1493. // tags | 个人标签
  1494. Tags *string `json:"tags,optional"`
  1495. // hire_count | 被雇佣次数
  1496. HireCount *int `json:"hireCount,optional"`
  1497. // service_count | 已服务次数
  1498. ServiceCount *int `json:"serviceCount,optional"`
  1499. // achievement_count | 业绩单数
  1500. AchievementCount *int `json:"achievementCount,optional"`
  1501. // category_id | 分类ID
  1502. CategoryId *uint64 `json:"categoryId,optional"`
  1503. // intro | 个人介绍
  1504. Intro *string `json:"intro,optional"`
  1505. // estimate | 自我评价
  1506. Estimate *string `json:"estimate,optional"`
  1507. // skill | 技能卡
  1508. Skill *string `json:"skill,optional"`
  1509. // ability_type | 能力类型
  1510. AbilityType *string `json:"abilityType,optional"`
  1511. // scene | 使用场景
  1512. Scene *string `json:"scene,optional"`
  1513. SceneList []EmployeeConfigInfo `json:"sceneList,optional"`
  1514. // switch_in | 支持介入
  1515. SwitchIn *string `json:"switchIn,optional"`
  1516. SwitchInList []EmployeeConfigInfo `json:"switchInList,optional"`
  1517. Tutorial []TutorialInfo `json:"tutorial,optional"`
  1518. // video_url | 视频地址
  1519. VideoUrl *string `json:"videoUrl,optional"`
  1520. // work_experience | 工作经验
  1521. WorkExperience []WorkExperienceInfo `json:"workExperience,optional"`
  1522. }
  1523. // The response data of employee list | Employee列表数据
  1524. // swagger:model EmployeeListResp
  1525. type EmployeeListResp struct {
  1526. BaseDataInfo
  1527. // Employee list data | Employee列表数据
  1528. Data EmployeeListInfo `json:"data"`
  1529. }
  1530. // Employee list data | Employee列表数据
  1531. // swagger:model EmployeeListInfo
  1532. type EmployeeListInfo struct {
  1533. BaseListInfo
  1534. // The API list data | Employee列表数据
  1535. Data []EmployeeInfo `json:"data"`
  1536. }
  1537. // Get employee list request params | Employee列表请求参数
  1538. // swagger:model EmployeeListReq
  1539. type EmployeeListReq struct {
  1540. PageInfo
  1541. // title | 标题
  1542. Title *string `json:"title,optional"`
  1543. // tags | 个人标签
  1544. Tags *string `json:"tags,optional"`
  1545. // category_id | 分类ID
  1546. CategoryId *uint64 `json:"categoryId,optional"`
  1547. }
  1548. // Employee information response | Employee信息返回体
  1549. // swagger:model EmployeeInfoResp
  1550. type EmployeeInfoResp struct {
  1551. BaseDataInfo
  1552. // Employee information | Employee数据
  1553. Data EmployeeInfo `json:"data"`
  1554. }
  1555. // The data of work experience information | WorkExperience信息
  1556. // swagger:model WorkExperienceInfo
  1557. type WorkExperienceInfo struct {
  1558. BaseIDInfo
  1559. // employee_id | 员工ID
  1560. EmployeeId *uint64 `json:"employeeId,optional"`
  1561. // start_date | 开始时间
  1562. StartDate *int64 `json:"startDate,optional"`
  1563. StartDateStr *string `json:"startDateStr,optional"`
  1564. // end_date | 结束时间
  1565. EndDate *int64 `json:"endDate,optional"`
  1566. EndDateStr *string `json:"endDateStr,optional"`
  1567. // company | 公司名
  1568. Company *string `json:"company,optional"`
  1569. // experience | 工作内容
  1570. Experience *string `json:"experience,optional"`
  1571. }
  1572. // The response data of work experience list | WorkExperience列表数据
  1573. // swagger:model WorkExperienceListResp
  1574. type WorkExperienceListResp struct {
  1575. BaseDataInfo
  1576. // WorkExperience list data | WorkExperience列表数据
  1577. Data WorkExperienceListInfo `json:"data"`
  1578. }
  1579. // WorkExperience list data | WorkExperience列表数据
  1580. // swagger:model WorkExperienceListInfo
  1581. type WorkExperienceListInfo struct {
  1582. BaseListInfo
  1583. // The API list data | WorkExperience列表数据
  1584. Data []WorkExperienceInfo `json:"data"`
  1585. }
  1586. // Get work experience list request params | WorkExperience列表请求参数
  1587. // swagger:model WorkExperienceListReq
  1588. type WorkExperienceListReq struct {
  1589. PageInfo
  1590. // company | 公司名
  1591. Company *string `json:"company,optional"`
  1592. }
  1593. // WorkExperience information response | WorkExperience信息返回体
  1594. // swagger:model WorkExperienceInfoResp
  1595. type WorkExperienceInfoResp struct {
  1596. BaseDataInfo
  1597. // WorkExperience information | WorkExperience数据
  1598. Data WorkExperienceInfo `json:"data"`
  1599. }
  1600. // The data of tutorial information | Tutorial信息
  1601. // swagger:model TutorialInfo
  1602. type TutorialInfo struct {
  1603. BaseIDInfo
  1604. // employee_id | 员工ID
  1605. EmployeeId *uint64 `json:"employeeId,optional"`
  1606. // index | 序号
  1607. Index *int `json:"index,optional"`
  1608. // title | 标题
  1609. Title *string `json:"title,optional"`
  1610. // content | 内容
  1611. Content *string `json:"content,optional"`
  1612. }
  1613. // The response data of tutorial list | Tutorial列表数据
  1614. // swagger:model TutorialListResp
  1615. type TutorialListResp struct {
  1616. BaseDataInfo
  1617. // Tutorial list data | Tutorial列表数据
  1618. Data TutorialListInfo `json:"data"`
  1619. }
  1620. // Tutorial list data | Tutorial列表数据
  1621. // swagger:model TutorialListInfo
  1622. type TutorialListInfo struct {
  1623. BaseListInfo
  1624. // The API list data | Tutorial列表数据
  1625. Data []TutorialInfo `json:"data"`
  1626. }
  1627. // Get tutorial list request params | Tutorial列表请求参数
  1628. // swagger:model TutorialListReq
  1629. type TutorialListReq struct {
  1630. PageInfo
  1631. // title | 标题
  1632. Title *string `json:"title,optional"`
  1633. // content | 内容
  1634. Content *string `json:"content,optional"`
  1635. }
  1636. // Tutorial information response | Tutorial信息返回体
  1637. // swagger:model TutorialInfoResp
  1638. type TutorialInfoResp struct {
  1639. BaseDataInfo
  1640. // Tutorial information | Tutorial数据
  1641. Data TutorialInfo `json:"data"`
  1642. }
  1643. // The data of employee config information | EmployeeConfig信息
  1644. // swagger:model EmployeeConfigInfo
  1645. type EmployeeConfigInfo struct {
  1646. BaseIDInfo
  1647. // 类型:scene-场景 switch_in-接入方式
  1648. Stype *string `json:"stype,optional"`
  1649. // 标题
  1650. Title *string `json:"title,optional"`
  1651. // 图片地址
  1652. Photo *string `json:"photo,optional"`
  1653. }
  1654. // EmployeeConfig list data | EmployeeConfig列表数据
  1655. // swagger:model EmployeeConfigListInfo
  1656. type EmployeeConfigListInfo struct {
  1657. BaseListInfo
  1658. // The API list data | EmployeeConfig列表数据
  1659. Data []EmployeeConfigInfo `json:"data"`
  1660. }
  1661. // Employee config response | Employee配置信息返回体
  1662. // swagger:model EmployeeConfigListReq
  1663. type EmployeeConfigListReq struct {
  1664. /// 类型:scene-场景 switch_in-接入方式
  1665. Stype *string `json:"stype,optional"`
  1666. }
  1667. // EmployeeConfig information response | EmployeeConfig信息返回体
  1668. type EmployeeConfig struct {
  1669. Scene []EmployeeConfigInfo `json:"scene"`
  1670. SwitchIn []EmployeeConfigInfo `json:"switchIn"`
  1671. }
  1672. // Employee config response | Employee配置信息返回体
  1673. // swagger:model EmployeeConfigListResp
  1674. type EmployeeConfigListResp struct {
  1675. BaseDataInfo
  1676. // Employee information | Employee数据
  1677. Data EmployeeConfig `json:"data"`
  1678. }
  1679. // The data of token information | Token信息
  1680. // swagger:model TokenInfo
  1681. type TokenInfo struct {
  1682. BaseIDInfo
  1683. // 过期时间
  1684. ExpireAt *int64 `json:"expireAt,optional"`
  1685. ExpireAtStr *string `json:"expireAtStr,optional"`
  1686. // Token
  1687. Token *string `json:"token,optional"`
  1688. // Mac地址
  1689. Mac *string `json:"mac,optional"`
  1690. }
  1691. // The response data of token list | Token列表数据
  1692. // swagger:model TokenListResp
  1693. type TokenListResp struct {
  1694. BaseDataInfo
  1695. // Token list data | Token列表数据
  1696. Data TokenListInfo `json:"data"`
  1697. }
  1698. // Token list data | Token列表数据
  1699. // swagger:model TokenListInfo
  1700. type TokenListInfo struct {
  1701. BaseListInfo
  1702. // The API list data | Token列表数据
  1703. Data []TokenInfo `json:"data"`
  1704. }
  1705. // Get token list request params | Token列表请求参数
  1706. // swagger:model TokenListReq
  1707. type TokenListReq struct {
  1708. PageInfo
  1709. // Token
  1710. Token *string `json:"token,optional"`
  1711. // Mac地址
  1712. Mac *string `json:"mac,optional"`
  1713. }
  1714. // Token information response | Token信息返回体
  1715. // swagger:model TokenInfoResp
  1716. type TokenInfoResp struct {
  1717. BaseDataInfo
  1718. // Token information | Token数据
  1719. Data TokenInfo `json:"data"`
  1720. }
  1721. // swagger:model CheckTokenReq
  1722. type CheckTokenReq struct {
  1723. // Token
  1724. Token *string `json:"token"`
  1725. // Mac地址
  1726. Mac *string `json:"mac"`
  1727. }
  1728. // swagger:model CheckTokenResp
  1729. type CheckTokenResp struct {
  1730. // 是否合法
  1731. Valid *bool `json:"valid"`
  1732. // Sign 签名内容
  1733. Sign *string `json:"sign"`
  1734. // Timestamp 时间戳
  1735. Timestamp *int64 `json:"timestamp"`
  1736. }
  1737. // The data of category information | Category信息
  1738. // swagger:model CategoryInfo
  1739. type CategoryInfo struct {
  1740. BaseIDInfo
  1741. // name | 角色名称
  1742. Name *string `json:"name,optional"`
  1743. // organization_id | 租户ID
  1744. OrganizationId *uint64 `json:"organizationId,optional"`
  1745. }
  1746. // The response data of category list | Category列表数据
  1747. // swagger:model CategoryListResp
  1748. type CategoryListResp struct {
  1749. BaseDataInfo
  1750. // Category list data | Category列表数据
  1751. Data CategoryListInfo `json:"data"`
  1752. }
  1753. // Category list data | Category列表数据
  1754. // swagger:model CategoryListInfo
  1755. type CategoryListInfo struct {
  1756. BaseListInfo
  1757. // The API list data | Category列表数据
  1758. Data []CategoryInfo `json:"data"`
  1759. }
  1760. // Get category list request params | Category列表请求参数
  1761. // swagger:model CategoryListReq
  1762. type CategoryListReq struct {
  1763. PageInfo
  1764. // name | 角色名称
  1765. Name *string `json:"name,optional"`
  1766. }
  1767. // Category information response | Category信息返回体
  1768. // swagger:model CategoryInfoResp
  1769. type CategoryInfoResp struct {
  1770. BaseDataInfo
  1771. // Category information | Category数据
  1772. Data CategoryInfo `json:"data"`
  1773. }