types.go 28 KB

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