types.go 30 KB

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