types.go 47 KB

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