types.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916
  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:"wxWxid"`
  340. // 微信id 公众号微信ID
  341. Wxid *string `json:"wxid"`
  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. }
  394. // Contact information response | Contact信息返回体
  395. // swagger:model ContactInfoResp
  396. type ContactInfoResp struct {
  397. BaseDataInfo
  398. // Contact information | Contact数据
  399. Data ContactInfo `json:"data"`
  400. }
  401. // ContactLabelList | Contact标签列表
  402. type ContactLabelList struct {
  403. // label
  404. Label *string `json:"label,optional"`
  405. // value
  406. Value *uint64 `json:"value,optional"`
  407. }
  408. // The response data of contact information | Contact信息
  409. // swagger:model ContactInfo
  410. type ContactInfo struct {
  411. BaseIDInfo
  412. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  413. Status *uint8 `json:"status,optional"`
  414. // 属主微信id
  415. WxWxid *string `json:"wxWxid,optional"`
  416. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  417. Type *int `json:"type,optional"`
  418. // 微信id 公众号微信ID
  419. Wxid *string `json:"wxid,optional"`
  420. // 微信账号
  421. Account *string `json:"account,optional"`
  422. // 微信昵称 群备注名称
  423. Nickname *string `json:"nickname,optional"`
  424. // 备注名
  425. Markname *string `json:"markname,optional"`
  426. // 头像
  427. Headimg *string `json:"headimg,optional"`
  428. // 性别 0未知 1男 2女
  429. Sex *int `json:"sex,optional"`
  430. // 星标 65/67=星标 1/3=未星标
  431. Starrole *string `json:"starrole,optional"`
  432. // 不让他看我的朋友圈 0可以看 1不让看
  433. Dontseeit *int `json:"dontseeit,optional"`
  434. // 不看他的朋友圈 0可以看 1不看 1=开启了不看他 128/129=仅聊天
  435. Dontseeme *int `json:"dontseeme,optional"`
  436. // 所属标签id清单,多开会用逗号隔开
  437. Lag *string `json:"lag,optional"`
  438. // 群组id
  439. Gid *string `json:"gid,optional"`
  440. // 群组名称
  441. Gname *string `json:"gname,optional"`
  442. // v3数据
  443. V3 *string `json:"v3,optional"`
  444. // Label Relationships | 标签关系
  445. LabelRelationships []ContactLabelList `json:"labelRelationships,optional"`
  446. }
  447. // The response data of label information | Label信息
  448. // swagger:model LabelInfo
  449. type LabelInfo struct {
  450. BaseIDInfo
  451. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  452. Status *uint8 `json:"status,optional"`
  453. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  454. Type *int `json:"type,optional"`
  455. // 标签名称
  456. Name *string `json:"name,optional"`
  457. // 标签来源:1后台创建 2个微同步
  458. From *int `json:"from,optional"`
  459. // 标签模式:1动态 2静态
  460. Mode *int `json:"mode,optional"`
  461. // 标签的触达条件
  462. Conditions *string `json:"conditions,optional"`
  463. // Label Relationships | 标签关系
  464. LabelRelationships []LabelRelationshipInfo `json:"labelRelationships,optional"`
  465. }
  466. // The response data of label relationship information | LabelRelationship信息
  467. // swagger:model LabelRelationshipInfo
  468. type LabelRelationshipInfo struct {
  469. BaseIDInfo
  470. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  471. Status *uint8 `json:"status,optional"`
  472. // 标签 ID
  473. LabelId *uint64 `json:"labelId,optional"`
  474. // 联系人 ID
  475. ContactId *uint64 `json:"contactId,optional"`
  476. // Contact information | 联系人信息
  477. Contact ContactInfo `json:"contact,optional"`
  478. // Label information | 标签信息
  479. Label LabelInfo `json:"label,optional"`
  480. }
  481. // The response data of label relationship information | LabelRelationship信息
  482. // swagger:model LabelRelationshipsInfo
  483. type LabelRelationshipsInfo struct {
  484. BaseIDInfo
  485. // 更新类型:为空或“all”时表示全量更新,为 “add” 时表示仅追加
  486. UpdateType *string `json:"updateType,optional"`
  487. // 标签 ID
  488. LabelIds []uint64 `json:"labelIds,optional"`
  489. // 联系人 ID
  490. ContactId *uint64 `json:"contactId,optional"`
  491. }
  492. // The response data of label relationship list | LabelRelationship列表数据
  493. // swagger:model LabelRelationshipListResp
  494. type LabelRelationshipListResp struct {
  495. BaseDataInfo
  496. // LabelRelationship list data | LabelRelationship列表数据
  497. Data LabelRelationshipListInfo `json:"data"`
  498. }
  499. // LabelRelationship list data | LabelRelationship列表数据
  500. // swagger:model LabelRelationshipListInfo
  501. type LabelRelationshipListInfo struct {
  502. BaseListInfo
  503. // The API list data | LabelRelationship列表数据
  504. Data []LabelRelationshipInfo `json:"data"`
  505. }
  506. // Get label relationship list request params | LabelRelationship列表请求参数
  507. // swagger:model LabelRelationshipListReq
  508. type LabelRelationshipListReq struct {
  509. PageInfo
  510. }
  511. // LabelRelationship information response | LabelRelationship信息返回体
  512. // swagger:model LabelRelationshipInfoResp
  513. type LabelRelationshipInfoResp struct {
  514. BaseDataInfo
  515. // LabelRelationship information | LabelRelationship数据
  516. Data LabelRelationshipInfo `json:"data"`
  517. }
  518. // The response data of message information | Message信息
  519. // swagger:model MessageInfo
  520. type MessageInfo struct {
  521. BaseIDInfo
  522. // 属主微信id
  523. WxWxid *string `json:"wxWxid"`
  524. // 微信id 公众号微信ID
  525. Wxid *string `json:"wxid"`
  526. // 微信消息内容
  527. Msg *string `json:"msg"`
  528. }
  529. // The response data of message list | Message列表数据
  530. // swagger:model MessageListResp
  531. type MessageListResp struct {
  532. BaseDataInfo
  533. // Message list data | Message列表数据
  534. Data MessageListInfo `json:"data"`
  535. }
  536. // Message list data | Message列表数据
  537. // swagger:model MessageListInfo
  538. type MessageListInfo struct {
  539. BaseListInfo
  540. // The API list data | Message列表数据
  541. Data []MessageInfo `json:"data"`
  542. }
  543. // Get message list request params | Message列表请求参数
  544. // swagger:model MessageListReq
  545. type MessageListReq struct {
  546. PageInfo
  547. // 属主微信id
  548. WxWxid *string `json:"wxWxid,optional"`
  549. // 微信id 公众号微信ID
  550. Wxid *string `json:"wxid,optional"`
  551. }
  552. // Message information response | Message信息返回体
  553. // swagger:model MessageInfoResp
  554. type MessageInfoResp struct {
  555. BaseDataInfo
  556. // Message information | Message数据
  557. Data MessageInfo `json:"data"`
  558. }
  559. // The response data of label list | Label列表数据
  560. // swagger:model LabelSelectListResp
  561. type LabelSelectListResp struct {
  562. BaseDataInfo
  563. // Label list data | Label列表数据
  564. Data []LabelSelectListInfo `json:"data"`
  565. }
  566. // The response data of label list | Label列表数据
  567. // swagger:model LabelListResp
  568. type LabelListResp struct {
  569. BaseDataInfo
  570. // Label list data | Label列表数据
  571. Data LabelListInfo `json:"data"`
  572. }
  573. // Label list data | Label列表数据
  574. // swagger:model LabelListInfo
  575. type LabelListInfo struct {
  576. BaseListInfo
  577. // The API list data | Label列表数据
  578. Data []LabelInfo `json:"data"`
  579. }
  580. // Get label list request params | Label列表请求参数
  581. // swagger:model LabelListReq
  582. type LabelListReq struct {
  583. PageInfo
  584. // Label ID list | Label ID列表
  585. LabelIDs []uint64 `json:"labelIDs,optional"`
  586. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  587. Type *int `json:"type,optional"`
  588. // 标签名称
  589. Name *string `json:"name,optional"`
  590. // 标签来源:1后台创建 2个微同步
  591. From *int `json:"from,optional"`
  592. // 标签模式:1动态 2静态
  593. Mode *int `json:"mode,optional"`
  594. }
  595. // Label information response | Label信息返回体
  596. // swagger:model LabelInfoResp
  597. type LabelInfoResp struct {
  598. BaseDataInfo
  599. // Label information | Label数据
  600. Data LabelInfo `json:"data"`
  601. }
  602. // swagger:model LabelSelectListInfo
  603. type LabelSelectListInfo struct {
  604. // label
  605. Label *string `json:"label,optional"`
  606. // value
  607. Value *uint64 `json:"value,optional"`
  608. }
  609. // The response data of sop task list | SopTask列表数据
  610. // swagger:model SopTaskListResp
  611. type SopTaskListResp struct {
  612. BaseDataInfo
  613. // SopTask list data | SopTask列表数据
  614. Data SopTaskListInfo `json:"data"`
  615. }
  616. // SopTask list data | SopTask列表数据
  617. // swagger:model SopTaskListInfo
  618. type SopTaskListInfo struct {
  619. BaseListInfo
  620. // The API list data | SopTask列表数据
  621. Data []SopTaskInfo `json:"data"`
  622. }
  623. // Get sop task list request params | SopTask列表请求参数
  624. // swagger:model SopTaskListReq
  625. type SopTaskListReq struct {
  626. PageInfo
  627. // SOP 任务名称
  628. Name *string `json:"name,optional"`
  629. // 创建者 id
  630. CreatorId *string `json:"creatorId,optional"`
  631. }
  632. // SopTask information response | SopTask信息返回体
  633. // swagger:model SopTaskInfoResp
  634. type SopTaskInfoResp struct {
  635. BaseDataInfo
  636. // SopTask information | SopTask数据
  637. Data SopTaskInfo `json:"data"`
  638. }
  639. // The response data of sop stage information | SopStage信息
  640. // swagger:model SopStageInfo
  641. type SopStageInfo struct {
  642. BaseIDInfo
  643. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  644. Status *uint8 `json:"status,optional"`
  645. // SOP 任务 ID
  646. TaskId *uint64 `json:"taskId,optional"`
  647. // 阶段名称
  648. Name *string `json:"name,optional"`
  649. // 客群筛选条件类型 1 按标签筛选 2 按客户基本信息筛选
  650. ConditionType *int `json:"conditionType,optional"`
  651. // 筛选条件关系 1 满足所有条件(and) 2 满足任意条件(or)
  652. ConditionOperator *int `json:"conditionOperator,optional"`
  653. // 筛选条件列表
  654. ConditionList []Condition `json:"conditionList,optional"`
  655. // 命中后发送的消息内容
  656. ActionMessage []Action `json:"actionMessage,optional"`
  657. // 命中后需要打的标签
  658. ActionLabel []uint64 `json:"actionLabel,optional"`
  659. // 阶段顺序
  660. IndexSort *int `json:"indexSort,optional"`
  661. // sop 任务信息
  662. TaskInfo *SopTaskInfo `json:"taskInfo,optional"`
  663. // node 信息
  664. NodeList []SopNodeInfo `json:"nodeList,optional"`
  665. }
  666. // The response data of sop task information | SopTask信息
  667. // swagger:model SopTaskInfo
  668. type SopTaskInfo struct {
  669. BaseIDInfo
  670. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  671. Status *uint8 `json:"status,optional"`
  672. // SOP 任务名称
  673. Name *string `json:"name,optional"`
  674. // 机器人微信 id 列表
  675. BotWxidList []string `json:"botWxidList,optional"`
  676. // 标签类型:1好友,2群组,3企业微信联系人
  677. Type *int `json:"type,optional"`
  678. // 任务计划开始时间
  679. PlanStartTime *int64 `json:"planStartTime,optional"`
  680. // 任务计划结束时间
  681. PlanEndTime *int64 `json:"planEndTime,optional"`
  682. // 创建者 id
  683. CreatorId *string `json:"creatorId,optional"`
  684. // 阶段信息
  685. StageList []SopStageInfo `json:"stageList,optional"`
  686. }
  687. // The response data of sop node information | SopNode信息
  688. // swagger:model SopNodeInfo
  689. type SopNodeInfo struct {
  690. BaseIDInfo
  691. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  692. Status *uint8 `json:"status,optional"`
  693. // 阶段 ID
  694. StageId *uint64 `json:"stageId,optional"`
  695. // 父节点 ID
  696. ParentId *uint64 `json:"parentId,optional"`
  697. // 节点名称
  698. Name *string `json:"name,optional"`
  699. // 触发条件类型 1 客户回复后触发 2 超时后触发
  700. ConditionType *int `json:"conditionType,optional"`
  701. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  702. ConditionList []string `json:"conditionList,optional"`
  703. // 命中后发送的消息内容
  704. ActionMessage []Action `json:"actionMessage,optional"`
  705. // 命中后需要打的标签
  706. ActionLabel []uint64 `json:"actionLabel,optional"`
  707. // 阶段信息
  708. StageInfo *SopStageInfo `json:"stageInfo,optional"`
  709. }
  710. // The response data of sop stage list | SopStage列表数据
  711. // swagger:model SopStageListResp
  712. type SopStageListResp struct {
  713. BaseDataInfo
  714. // SopStage list data | SopStage列表数据
  715. Data SopStageListInfo `json:"data"`
  716. }
  717. // SopStage list data | SopStage列表数据
  718. // swagger:model SopStageListInfo
  719. type SopStageListInfo struct {
  720. BaseListInfo
  721. // The API list data | SopStage列表数据
  722. Data []SopStageInfo `json:"data"`
  723. }
  724. // Get sop stage list request params | SopStage列表请求参数
  725. // swagger:model SopStageListReq
  726. type SopStageListReq struct {
  727. TaskId *uint64 `json:"taskId"`
  728. }
  729. // SopStage information response | SopStage信息返回体
  730. // swagger:model SopStageInfoResp
  731. type SopStageInfoResp struct {
  732. BaseDataInfo
  733. // SopStage information | SopStage数据
  734. Data SopStageInfo `json:"data"`
  735. }
  736. // Move sop stage request params | 移动阶段请求参数
  737. // swagger:model SopStageMoveReq
  738. type SopStageMoveReq struct {
  739. BaseIDInfo
  740. // 阶段名称
  741. Offset *int `json:"offset,optional"`
  742. }
  743. // The response data of sop node list | SopNode列表数据
  744. // swagger:model SopNodeListResp
  745. type SopNodeListResp struct {
  746. BaseDataInfo
  747. // SopNode list data | SopNode列表数据
  748. Data SopNodeListInfo `json:"data"`
  749. }
  750. // SopNode list data | SopNode列表数据
  751. // swagger:model SopNodeListInfo
  752. type SopNodeListInfo struct {
  753. BaseListInfo
  754. // The API list data | SopNode列表数据
  755. Data []SopNodeInfo `json:"data"`
  756. }
  757. // Get sop node list request params | SopNode列表请求参数
  758. // swagger:model SopNodeListReq
  759. type SopNodeListReq struct {
  760. StageId *uint64 `json:"stageId"`
  761. }
  762. // SopNode information response | SopNode信息返回体
  763. // swagger:model SopNodeInfoResp
  764. type SopNodeInfoResp struct {
  765. BaseDataInfo
  766. // SopNode information | SopNode数据
  767. Data SopNodeInfo `json:"data"`
  768. }
  769. // The response data of message records information | MessageRecords信息
  770. // swagger:model MessageRecordsInfo
  771. type MessageRecordsInfo struct {
  772. BaseIDInfo
  773. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  774. Status *uint8 `json:"status,optional"`
  775. // 机器人微信 id
  776. BotWxid *string `json:"botWxid,optional"`
  777. // 联系人 id
  778. ContactId *uint64 `json:"contactId,optional"`
  779. // 类型:1好友,2群组,3企业微信联系人
  780. ContactType *int `json:"contactType,optional"`
  781. // 接收方微信 id
  782. ContactWxid *string `json:"contactWxid,optional"`
  783. // 内容类型 1 文本 2 文件
  784. ContentType *int `json:"contentType,optional"`
  785. // 发送内容
  786. Content *string `json:"content,optional"`
  787. // 异常原因
  788. ErrorDetail *string `json:"errorDetail,optional"`
  789. // 发送时间
  790. SendTime *int64 `json:"sendTime,optional"`
  791. // 源类型 1 点发 2 群发 3 SOP
  792. SourceType *int `json:"sourceType,optional"`
  793. // 源 ID
  794. SourceId *uint64 `json:"sourceId,optional"`
  795. // 次源 ID
  796. SubSourceId *uint64 `json:"subSourceId,optional"`
  797. }
  798. // The response data of message records list | MessageRecords列表数据
  799. // swagger:model MessageRecordsListResp
  800. type MessageRecordsListResp struct {
  801. BaseDataInfo
  802. // MessageRecords list data | MessageRecords列表数据
  803. Data MessageRecordsListInfo `json:"data"`
  804. }
  805. // MessageRecords list data | MessageRecords列表数据
  806. // swagger:model MessageRecordsListInfo
  807. type MessageRecordsListInfo struct {
  808. BaseListInfo
  809. // The API list data | MessageRecords列表数据
  810. Data []MessageRecordsInfo `json:"data"`
  811. }
  812. // Get message records list request params | MessageRecords列表请求参数
  813. // swagger:model MessageRecordsListReq
  814. type MessageRecordsListReq struct {
  815. PageInfo
  816. // 机器人微信 id
  817. BotWxid *string `json:"botWxid,optional"`
  818. // 接收方微信 id
  819. ContactWxid *string `json:"contactWxid,optional"`
  820. // 发送内容
  821. Content *string `json:"content,optional"`
  822. }
  823. // MessageRecords information response | MessageRecords信息返回体
  824. // swagger:model MessageRecordsInfoResp
  825. type MessageRecordsInfoResp struct {
  826. BaseDataInfo
  827. // MessageRecords information | MessageRecords数据
  828. Data MessageRecordsInfo `json:"data"`
  829. }