types.go 55 KB

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