types.go 33 KB

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