types.go 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965
  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. }
  206. // The response data of server information | Server信息
  207. // swagger:model ServerInfo
  208. type ServerInfo struct {
  209. BaseIDInfo
  210. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  211. Status *uint8 `json:"status,optional"`
  212. // 名称
  213. Name *string `json:"name,optional"`
  214. // 公网ip
  215. PublicIp *string `json:"publicIp,optional"`
  216. // 内网ip
  217. PrivateIp *string `json:"privateIp,optional"`
  218. // 管理端口
  219. AdminPort *string `json:"adminPort,optional"`
  220. }
  221. // The response data of server list | Server列表数据
  222. // swagger:model ServerListResp
  223. type ServerListResp struct {
  224. BaseDataInfo
  225. // Server list data | Server列表数据
  226. Data ServerListInfo `json:"data"`
  227. }
  228. // Server list data | Server列表数据
  229. // swagger:model ServerListInfo
  230. type ServerListInfo struct {
  231. BaseListInfo
  232. // The API list data | Server列表数据
  233. Data []ServerInfo `json:"data"`
  234. }
  235. // Get server list request params | Server列表请求参数
  236. // swagger:model ServerListReq
  237. type ServerListReq struct {
  238. PageInfo
  239. // 名称
  240. Name *string `json:"name,optional"`
  241. // 公网ip
  242. PublicIp *string `json:"publicIp,optional"`
  243. // 内网ip
  244. PrivateIp *string `json:"privateIp,optional"`
  245. }
  246. // Server information response | Server信息返回体
  247. // swagger:model ServerInfoResp
  248. type ServerInfoResp struct {
  249. BaseDataInfo
  250. // Server information | Server数据
  251. Data ServerInfo `json:"data"`
  252. }
  253. // The response data of wx information | Wx信息
  254. // swagger:model WxInfo
  255. type WxInfo struct {
  256. BaseIDInfo
  257. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  258. Status *uint8 `json:"status,optional"`
  259. // 服务器id
  260. ServerId *uint64 `json:"serverId,optional"`
  261. // 端口号
  262. Port *string `json:"port,optional"`
  263. // 进程号
  264. ProcessId *string `json:"processId,optional"`
  265. // 回调地址
  266. Callback *string `json:"callback,optional"`
  267. // 微信id
  268. Wxid *string `json:"wxid,optional"`
  269. // 微信账号
  270. Account *string `json:"account,optional"`
  271. // 微信昵称
  272. Nickname *string `json:"nickname,optional"`
  273. // 手机号
  274. Tel *string `json:"tel,optional"`
  275. // 微信头像
  276. HeadBig *string `json:"headBig,optional"`
  277. }
  278. // The response data of wx list | Wx列表数据
  279. // swagger:model WxListResp
  280. type WxListResp struct {
  281. BaseDataInfo
  282. // Wx list data | Wx列表数据
  283. Data WxListInfo `json:"data"`
  284. }
  285. // Wx list data | Wx列表数据
  286. // swagger:model WxListInfo
  287. type WxListInfo struct {
  288. BaseListInfo
  289. // The API list data | Wx列表数据
  290. Data []WxInfo `json:"data"`
  291. }
  292. // Get wx list request params | Wx列表请求参数
  293. // swagger:model WxListReq
  294. type WxListReq struct {
  295. PageInfo
  296. // 端口号
  297. Port *string `json:"port,optional"`
  298. // 进程号
  299. ProcessId *string `json:"processId,optional"`
  300. // 回调地址
  301. Callback *string `json:"callback,optional"`
  302. }
  303. // Wx information response | Wx信息返回体
  304. // swagger:model WxInfoResp
  305. type WxInfoResp struct {
  306. BaseDataInfo
  307. // Wx information | Wx数据
  308. Data WxInfo `json:"data"`
  309. }
  310. type LoginQRStatus struct {
  311. // 登陆二维码
  312. QRCode string `json:"qRCode,optional"`
  313. // 登陆二维码状态
  314. Status string `json:"status,optional"`
  315. // 登陆二维码状态描述
  316. StatusDesc string `json:"statusDesc,optional"`
  317. }
  318. // 刷新登陆二维码请求参数
  319. // swagger:model RefreshLoginQRReq
  320. type RefreshLoginQRReq struct {
  321. // 服务器id
  322. ServerId *uint64 `json:"serverId,optional"`
  323. // 端口号
  324. Port *string `json:"port,optional"`
  325. // 回调地址
  326. Callback *string `json:"callback,optional"`
  327. }
  328. // 刷新登陆二维码返回参数
  329. // swagger:model RefreshLoginQRResp
  330. type RefreshLoginQRResp struct {
  331. BaseDataInfo
  332. // 二维码Base64
  333. Data LoginQRStatus `json:"data,optional"`
  334. }
  335. // 发送微信文本消息请求参数
  336. // swagger:model SendTextMsgReq
  337. type SendTextMsgReq struct {
  338. // 属主微信id
  339. WxWxid *string `json:"senderWxId"`
  340. // 微信id 公众号微信ID
  341. Wxid *string `json:"receiverWxId"`
  342. // 微信文本消息内容
  343. Msg *string `json:"msg"`
  344. }
  345. // 发送微信图片消息请求参数
  346. // swagger:model SendPicMsgReq
  347. type SendPicMsgReq struct {
  348. // 属主微信id
  349. WxWxid *string `json:"wxWxid"`
  350. // 微信id 公众号微信ID
  351. Wxid *string `json:"wxid"`
  352. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  353. Picpath *string `json:"picpath"`
  354. // 微信图片自定义名称(此属性只有网络图片有)
  355. Diyfilename *string `json:"diyfilename,optional"`
  356. }
  357. // 发送微信图片(本地)请求参数
  358. // swagger:model SendPicMsgLocalReq
  359. type SendPicMsgLocalReq struct {
  360. // 属主微信id
  361. WxWxid *string `json:"wxWxid"`
  362. // 微信id 公众号微信ID
  363. Wxid *string `json:"wxid"`
  364. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  365. Picpath *string `json:"picpath"`
  366. }
  367. // The response data of contact list | Contact列表数据
  368. // swagger:model ContactListResp
  369. type ContactListResp struct {
  370. BaseDataInfo
  371. // Contact list data | Contact列表数据
  372. Data ContactListInfo `json:"data"`
  373. }
  374. // Contact list data | Contact列表数据
  375. // swagger:model ContactListInfo
  376. type ContactListInfo struct {
  377. BaseListInfo
  378. // The API list data | Contact列表数据
  379. Data []ContactInfo `json:"data"`
  380. }
  381. // Get contact list request params | Contact列表请求参数
  382. // swagger:model ContactListReq
  383. type ContactListReq struct {
  384. PageInfo
  385. // Label ID list | 标签ID列表
  386. LabelIDs []uint64 `json:"labelIDs,optional"`
  387. // 属主微信id
  388. WxWxid *string `json:"wxWxid,optional"`
  389. // 微信id 公众号微信ID
  390. Wxid *string `json:"wxid,optional"`
  391. // 微信账号
  392. Account *string `json:"account,optional"`
  393. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  394. Type *int `json:"type,optional"`
  395. }
  396. // Contact information response | Contact信息返回体
  397. // swagger:model ContactInfoResp
  398. type ContactInfoResp struct {
  399. BaseDataInfo
  400. // Contact information | Contact数据
  401. Data ContactInfo `json:"data"`
  402. }
  403. // ContactLabelList | Contact标签列表
  404. type ContactLabelList struct {
  405. // label
  406. Label *string `json:"label,optional"`
  407. // value
  408. Value *uint64 `json:"value,optional"`
  409. }
  410. // The response data of contact information | Contact信息
  411. // swagger:model ContactInfo
  412. type ContactInfo struct {
  413. BaseIDInfo
  414. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  415. Status *uint8 `json:"status,optional"`
  416. // 属主微信id
  417. WxWxid *string `json:"wxWxid,optional"`
  418. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  419. Type *int `json:"type,optional"`
  420. // 微信id 公众号微信ID
  421. Wxid *string `json:"wxid,optional"`
  422. // 微信账号
  423. Account *string `json:"account,optional"`
  424. // 微信昵称 群备注名称
  425. Nickname *string `json:"nickname,optional"`
  426. // 备注名
  427. Markname *string `json:"markname,optional"`
  428. // 头像
  429. Headimg *string `json:"headimg,optional"`
  430. // 性别 0未知 1男 2女
  431. Sex *int `json:"sex,optional"`
  432. // 星标 65/67=星标 1/3=未星标
  433. Starrole *string `json:"starrole,optional"`
  434. // 不让他看我的朋友圈 0可以看 1不让看
  435. Dontseeit *int `json:"dontseeit,optional"`
  436. // 不看他的朋友圈 0可以看 1不看 1=开启了不看他 128/129=仅聊天
  437. Dontseeme *int `json:"dontseeme,optional"`
  438. // 所属标签id清单,多开会用逗号隔开
  439. Lag *string `json:"lag,optional"`
  440. // 群组id
  441. Gid *string `json:"gid,optional"`
  442. // 群组名称
  443. Gname *string `json:"gname,optional"`
  444. // v3数据
  445. V3 *string `json:"v3,optional"`
  446. // Label Relationships | 标签关系
  447. LabelRelationships []ContactLabelList `json:"labelRelationships,optional"`
  448. }
  449. // The response data of label information | Label信息
  450. // swagger:model LabelInfo
  451. type LabelInfo struct {
  452. BaseIDInfo
  453. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  454. Status *uint8 `json:"status,optional"`
  455. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  456. Type *int `json:"type,optional"`
  457. // 标签名称
  458. Name *string `json:"name,optional"`
  459. // 标签来源:1后台创建 2个微同步
  460. From *int `json:"from,optional"`
  461. // 标签模式:1动态 2静态
  462. Mode *int `json:"mode,optional"`
  463. // 标签的触达条件
  464. Conditions *string `json:"conditions,optional"`
  465. // Label Relationships | 标签关系
  466. LabelRelationships []LabelRelationshipInfo `json:"labelRelationships,optional"`
  467. }
  468. // The response data of label relationship information | LabelRelationship信息
  469. // swagger:model LabelRelationshipInfo
  470. type LabelRelationshipInfo struct {
  471. BaseIDInfo
  472. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  473. Status *uint8 `json:"status,optional"`
  474. // 标签 ID
  475. LabelId *uint64 `json:"labelId,optional"`
  476. // 联系人 ID
  477. ContactId *uint64 `json:"contactId,optional"`
  478. // Contact information | 联系人信息
  479. Contact ContactInfo `json:"contact,optional"`
  480. // Label information | 标签信息
  481. Label LabelInfo `json:"label,optional"`
  482. }
  483. // The response data of label relationship information | LabelRelationship信息
  484. // swagger:model LabelRelationshipsInfo
  485. type LabelRelationshipsInfo struct {
  486. BaseIDInfo
  487. // 更新类型:为空或“all”时表示全量更新,为 “add” 时表示仅追加
  488. UpdateType *string `json:"updateType,optional"`
  489. // 标签 ID
  490. LabelIds []uint64 `json:"labelIds,optional"`
  491. // 联系人 ID
  492. ContactId *uint64 `json:"contactId,optional"`
  493. }
  494. // The response data of label relationship list | LabelRelationship列表数据
  495. // swagger:model LabelRelationshipListResp
  496. type LabelRelationshipListResp struct {
  497. BaseDataInfo
  498. // LabelRelationship list data | LabelRelationship列表数据
  499. Data LabelRelationshipListInfo `json:"data"`
  500. }
  501. // LabelRelationship list data | LabelRelationship列表数据
  502. // swagger:model LabelRelationshipListInfo
  503. type LabelRelationshipListInfo struct {
  504. BaseListInfo
  505. // The API list data | LabelRelationship列表数据
  506. Data []LabelRelationshipInfo `json:"data"`
  507. }
  508. // Get label relationship list request params | LabelRelationship列表请求参数
  509. // swagger:model LabelRelationshipListReq
  510. type LabelRelationshipListReq struct {
  511. PageInfo
  512. }
  513. // LabelRelationship information response | LabelRelationship信息返回体
  514. // swagger:model LabelRelationshipInfoResp
  515. type LabelRelationshipInfoResp struct {
  516. BaseDataInfo
  517. // LabelRelationship information | LabelRelationship数据
  518. Data LabelRelationshipInfo `json:"data"`
  519. }
  520. // The response data of message information | Message信息
  521. // swagger:model MessageInfo
  522. type MessageInfo struct {
  523. BaseIDInfo
  524. // 属主微信id
  525. WxWxid *string `json:"wxWxid"`
  526. // 微信id 公众号微信ID
  527. Wxid *string `json:"wxid"`
  528. // 微信消息内容
  529. Msg *string `json:"msg"`
  530. }
  531. // The response data of message list | Message列表数据
  532. // swagger:model MessageListResp
  533. type MessageListResp struct {
  534. BaseDataInfo
  535. // Message list data | Message列表数据
  536. Data MessageListInfo `json:"data"`
  537. }
  538. // Message list data | Message列表数据
  539. // swagger:model MessageListInfo
  540. type MessageListInfo struct {
  541. BaseListInfo
  542. // The API list data | Message列表数据
  543. Data []MessageInfo `json:"data"`
  544. }
  545. // Get message list request params | Message列表请求参数
  546. // swagger:model MessageListReq
  547. type MessageListReq struct {
  548. PageInfo
  549. // 属主微信id
  550. WxWxid *string `json:"wxWxid,optional"`
  551. // 微信id 公众号微信ID
  552. Wxid *string `json:"wxid,optional"`
  553. }
  554. // Message information response | Message信息返回体
  555. // swagger:model MessageInfoResp
  556. type MessageInfoResp struct {
  557. BaseDataInfo
  558. // Message information | Message数据
  559. Data MessageInfo `json:"data"`
  560. }
  561. // The response data of label list | Label列表数据
  562. // swagger:model LabelSelectListResp
  563. type LabelSelectListResp struct {
  564. BaseDataInfo
  565. // Label list data | Label列表数据
  566. Data []LabelSelectListInfo `json:"data"`
  567. }
  568. // The response data of label list | Label列表数据
  569. // swagger:model LabelListResp
  570. type LabelListResp struct {
  571. BaseDataInfo
  572. // Label list data | Label列表数据
  573. Data LabelListInfo `json:"data"`
  574. }
  575. // Label list data | Label列表数据
  576. // swagger:model LabelListInfo
  577. type LabelListInfo struct {
  578. BaseListInfo
  579. // The API list data | Label列表数据
  580. Data []LabelInfo `json:"data"`
  581. }
  582. // Get label list request params | Label列表请求参数
  583. // swagger:model LabelListReq
  584. type LabelListReq struct {
  585. PageInfo
  586. // Label ID list | Label ID列表
  587. LabelIDs []uint64 `json:"labelIDs,optional"`
  588. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  589. Type *int `json:"type,optional"`
  590. // 标签名称
  591. Name *string `json:"name,optional"`
  592. // 标签来源:1后台创建 2个微同步
  593. From *int `json:"from,optional"`
  594. // 标签模式:1动态 2静态
  595. Mode *int `json:"mode,optional"`
  596. }
  597. // Label information response | Label信息返回体
  598. // swagger:model LabelInfoResp
  599. type LabelInfoResp struct {
  600. BaseDataInfo
  601. // Label information | Label数据
  602. Data LabelInfo `json:"data"`
  603. }
  604. // swagger:model LabelSelectListInfo
  605. type LabelSelectListInfo struct {
  606. // label
  607. Label *string `json:"label,optional"`
  608. // value
  609. Value *uint64 `json:"value,optional"`
  610. }
  611. // The response data of sop task list | SopTask列表数据
  612. // swagger:model SopTaskListResp
  613. type SopTaskListResp struct {
  614. BaseDataInfo
  615. // SopTask list data | SopTask列表数据
  616. Data SopTaskListInfo `json:"data"`
  617. }
  618. // SopTask list data | SopTask列表数据
  619. // swagger:model SopTaskListInfo
  620. type SopTaskListInfo struct {
  621. BaseListInfo
  622. // The API list data | SopTask列表数据
  623. Data []SopTaskInfo `json:"data"`
  624. }
  625. // Get sop task list request params | SopTask列表请求参数
  626. // swagger:model SopTaskListReq
  627. type SopTaskListReq struct {
  628. PageInfo
  629. // SOP 任务名称
  630. Name *string `json:"name,optional"`
  631. // 创建者 id
  632. CreatorId *string `json:"creatorId,optional"`
  633. }
  634. // SopTask information response | SopTask信息返回体
  635. // swagger:model SopTaskInfoResp
  636. type SopTaskInfoResp struct {
  637. BaseDataInfo
  638. // SopTask information | SopTask数据
  639. Data SopTaskInfo `json:"data"`
  640. }
  641. // The response data of sop stage information | SopStage信息
  642. // swagger:model SopStageInfo
  643. type SopStageInfo struct {
  644. BaseIDInfo
  645. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  646. Status *uint8 `json:"status,optional"`
  647. // SOP 任务 ID
  648. TaskId *uint64 `json:"taskId,optional"`
  649. // 阶段名称
  650. Name *string `json:"name,optional"`
  651. // 客群筛选条件类型 1 按标签筛选 2 按客户基本信息筛选
  652. ConditionType *int `json:"conditionType,optional"`
  653. // 筛选条件关系 1 满足所有条件(and) 2 满足任意条件(or)
  654. ConditionOperator *int `json:"conditionOperator,optional"`
  655. // 筛选条件列表
  656. ConditionList []Condition `json:"conditionList,optional"`
  657. // 命中后发送的消息内容
  658. ActionMessage []Action `json:"actionMessage,optional"`
  659. // 命中后需要打的标签
  660. ActionLabel []uint64 `json:"actionLabel,optional"`
  661. // 阶段顺序
  662. IndexSort *int `json:"indexSort,optional"`
  663. // sop 任务信息
  664. TaskInfo *SopTaskInfo `json:"taskInfo,optional"`
  665. // node 信息
  666. NodeList []SopNodeInfo `json:"nodeList,optional"`
  667. }
  668. // The response data of sop task information | SopTask信息
  669. // swagger:model SopTaskInfo
  670. type SopTaskInfo struct {
  671. BaseIDInfo
  672. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  673. Status *uint8 `json:"status,optional"`
  674. // SOP 任务名称
  675. Name *string `json:"name,optional"`
  676. // 机器人微信 id 列表
  677. BotWxidList []string `json:"botWxidList,optional"`
  678. // 标签类型:1好友,2群组,3企业微信联系人
  679. Type *int `json:"type,optional"`
  680. // 任务计划开始时间
  681. PlanStartTime *int64 `json:"planStartTime,optional"`
  682. // 任务计划结束时间
  683. PlanEndTime *int64 `json:"planEndTime,optional"`
  684. // 创建者 id
  685. CreatorId *string `json:"creatorId,optional"`
  686. // 阶段信息
  687. StageList []SopStageInfo `json:"stageList,optional"`
  688. }
  689. // The response data of sop node information | SopNode信息
  690. // swagger:model SopNodeInfo
  691. type SopNodeInfo struct {
  692. BaseIDInfo
  693. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  694. Status *uint8 `json:"status,optional"`
  695. // 阶段 ID
  696. StageId *uint64 `json:"stageId,optional"`
  697. // 父节点 ID
  698. ParentId *uint64 `json:"parentId,optional"`
  699. // 节点名称
  700. Name *string `json:"name,optional"`
  701. // 触发条件类型 1 客户回复后触发 2 超时后触发
  702. ConditionType *int `json:"conditionType,optional"`
  703. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  704. ConditionList []string `json:"conditionList,optional"`
  705. // 命中后发送的消息内容
  706. ActionMessage []Action `json:"actionMessage,optional"`
  707. // 命中后需要打的标签
  708. ActionLabel []uint64 `json:"actionLabel,optional"`
  709. // 阶段信息
  710. StageInfo *SopStageInfo `json:"stageInfo,optional"`
  711. }
  712. // The response data of sop stage list | SopStage列表数据
  713. // swagger:model SopStageListResp
  714. type SopStageListResp struct {
  715. BaseDataInfo
  716. // SopStage list data | SopStage列表数据
  717. Data SopStageListInfo `json:"data"`
  718. }
  719. // SopStage list data | SopStage列表数据
  720. // swagger:model SopStageListInfo
  721. type SopStageListInfo struct {
  722. BaseListInfo
  723. // The API list data | SopStage列表数据
  724. Data []SopStageInfo `json:"data"`
  725. }
  726. // Get sop stage list request params | SopStage列表请求参数
  727. // swagger:model SopStageListReq
  728. type SopStageListReq struct {
  729. TaskId *uint64 `json:"taskId"`
  730. }
  731. // SopStage information response | SopStage信息返回体
  732. // swagger:model SopStageInfoResp
  733. type SopStageInfoResp struct {
  734. BaseDataInfo
  735. // SopStage information | SopStage数据
  736. Data SopStageInfo `json:"data"`
  737. }
  738. // Move sop stage request params | 移动阶段请求参数
  739. // swagger:model SopStageMoveReq
  740. type SopStageMoveReq struct {
  741. BaseIDInfo
  742. // 阶段名称
  743. Offset *int `json:"offset,optional"`
  744. }
  745. // The response data of sop node list | SopNode列表数据
  746. // swagger:model SopNodeListResp
  747. type SopNodeListResp struct {
  748. BaseDataInfo
  749. // SopNode list data | SopNode列表数据
  750. Data SopNodeListInfo `json:"data"`
  751. }
  752. // SopNode list data | SopNode列表数据
  753. // swagger:model SopNodeListInfo
  754. type SopNodeListInfo struct {
  755. BaseListInfo
  756. // The API list data | SopNode列表数据
  757. Data []SopNodeInfo `json:"data"`
  758. }
  759. // Get sop node list request params | SopNode列表请求参数
  760. // swagger:model SopNodeListReq
  761. type SopNodeListReq struct {
  762. StageId *uint64 `json:"stageId"`
  763. }
  764. // SopNode information response | SopNode信息返回体
  765. // swagger:model SopNodeInfoResp
  766. type SopNodeInfoResp struct {
  767. BaseDataInfo
  768. // SopNode information | SopNode数据
  769. Data SopNodeInfo `json:"data"`
  770. }
  771. // The response data of message records information | MessageRecords信息
  772. // swagger:model MessageRecordsInfo
  773. type MessageRecordsInfo struct {
  774. BaseIDInfo
  775. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  776. Status *uint8 `json:"status,optional"`
  777. // 机器人微信 id
  778. BotWxid *string `json:"botWxid,optional"`
  779. // 联系人 id
  780. ContactId *uint64 `json:"contactId,optional"`
  781. // 类型:1好友,2群组,3企业微信联系人
  782. ContactType *int `json:"contactType,optional"`
  783. // 接收方微信 id
  784. ContactWxid *string `json:"contactWxid,optional"`
  785. // 内容类型 1 文本 2 文件
  786. ContentType *int `json:"contentType,optional"`
  787. // 发送内容
  788. Content *string `json:"content,optional"`
  789. // 异常原因
  790. ErrorDetail *string `json:"errorDetail,optional"`
  791. // 发送时间
  792. SendTime *int64 `json:"sendTime,optional"`
  793. // 源类型 1 点发 2 群发 3 SOP
  794. SourceType *int `json:"sourceType,optional"`
  795. // 源 ID
  796. SourceId *uint64 `json:"sourceId,optional"`
  797. // 次源 ID
  798. SubSourceId *uint64 `json:"subSourceId,optional"`
  799. }
  800. // The response data of message records list | MessageRecords列表数据
  801. // swagger:model MessageRecordsListResp
  802. type MessageRecordsListResp struct {
  803. BaseDataInfo
  804. // MessageRecords list data | MessageRecords列表数据
  805. Data MessageRecordsListInfo `json:"data"`
  806. }
  807. // MessageRecords list data | MessageRecords列表数据
  808. // swagger:model MessageRecordsListInfo
  809. type MessageRecordsListInfo struct {
  810. BaseListInfo
  811. // The API list data | MessageRecords列表数据
  812. Data []MessageRecordsInfo `json:"data"`
  813. }
  814. // Get message records list request params | MessageRecords列表请求参数
  815. // swagger:model MessageRecordsListReq
  816. type MessageRecordsListReq struct {
  817. PageInfo
  818. // 机器人微信 id
  819. BotWxid *string `json:"botWxid,optional"`
  820. // 接收方微信 id
  821. ContactWxid *string `json:"contactWxid,optional"`
  822. // 发送内容
  823. Content *string `json:"content,optional"`
  824. }
  825. // MessageRecords information response | MessageRecords信息返回体
  826. // swagger:model MessageRecordsInfoResp
  827. type MessageRecordsInfoResp struct {
  828. BaseDataInfo
  829. // MessageRecords information | MessageRecords数据
  830. Data MessageRecordsInfo `json:"data"`
  831. }
  832. // The response data of chatroom member information | ChatroomMember信息
  833. // swagger:model ChatroomMemberInfo
  834. type ChatroomMemberInfo struct {
  835. // 名称
  836. Wxid *string `json:"wxid,optional"`
  837. // 群组
  838. ChatRoom *string `json:"chatRoom,optional"`
  839. // 属主Wxid
  840. OwnerWxid *string `json:"ownerWxid,optional"`
  841. // 账号
  842. Account *string `json:"account,optional"`
  843. }
  844. // The response data of chatroom member list | ChatroomMember列表数据
  845. // swagger:model ChatroomMemberListResp
  846. type ChatroomMemberListResp struct {
  847. BaseDataInfo
  848. // chatroom member list data | chatroom member 列表数据
  849. Data ChatroomMemberListInfo `json:"data"`
  850. }
  851. // chatroom member list data | chatroom member列表数据
  852. // swagger:model ChatroomMemberListInfo
  853. type ChatroomMemberListInfo struct {
  854. BaseListInfo
  855. // The API list data | chatroom member列表数据
  856. Data []ChatroomMemberInfo `json:"data"`
  857. }
  858. // Get chatroom member list request params | ChatroomMember列表请求参数
  859. // swagger:model ChatroomMemberListReq
  860. type ChatroomMemberListReq struct {
  861. PageInfo
  862. // 属主Wxid
  863. OwnerWxid *string `json:"ownerWxid,optional"`
  864. // 群组
  865. ChatRoom *string `json:"chatRoom,optional"`
  866. }
  867. // chatroom member information response | ChatroomMember信息返回体
  868. // swagger:model ChatroomMemberInfoResp
  869. type ChatroomMemberInfoResp struct {
  870. BaseDataInfo
  871. // Server information | Server数据
  872. Data ChatroomMemberInfo `json:"data"`
  873. }