types.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  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. // The response data of server information | Server信息
  199. // swagger:model ServerInfo
  200. type ServerInfo struct {
  201. BaseIDInfo
  202. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  203. Status *uint8 `json:"status,optional"`
  204. // 名称
  205. Name *string `json:"name,optional"`
  206. // 公网ip
  207. PublicIp *string `json:"publicIp,optional"`
  208. // 内网ip
  209. PrivateIp *string `json:"privateIp,optional"`
  210. // 管理端口
  211. AdminPort *string `json:"adminPort,optional"`
  212. }
  213. // The response data of server list | Server列表数据
  214. // swagger:model ServerListResp
  215. type ServerListResp struct {
  216. BaseDataInfo
  217. // Server list data | Server列表数据
  218. Data ServerListInfo `json:"data"`
  219. }
  220. // Server list data | Server列表数据
  221. // swagger:model ServerListInfo
  222. type ServerListInfo struct {
  223. BaseListInfo
  224. // The API list data | Server列表数据
  225. Data []ServerInfo `json:"data"`
  226. }
  227. // Get server list request params | Server列表请求参数
  228. // swagger:model ServerListReq
  229. type ServerListReq struct {
  230. PageInfo
  231. // 名称
  232. Name *string `json:"name,optional"`
  233. // 公网ip
  234. PublicIp *string `json:"publicIp,optional"`
  235. // 内网ip
  236. PrivateIp *string `json:"privateIp,optional"`
  237. }
  238. // Server information response | Server信息返回体
  239. // swagger:model ServerInfoResp
  240. type ServerInfoResp struct {
  241. BaseDataInfo
  242. // Server information | Server数据
  243. Data ServerInfo `json:"data"`
  244. }
  245. // The response data of wx information | Wx信息
  246. // swagger:model WxInfo
  247. type WxInfo struct {
  248. BaseIDInfo
  249. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  250. Status *uint8 `json:"status,optional"`
  251. // 服务器id
  252. ServerId *uint64 `json:"serverId,optional"`
  253. // 端口号
  254. Port *string `json:"port,optional"`
  255. // 进程号
  256. ProcessId *string `json:"processId,optional"`
  257. // 回调地址
  258. Callback *string `json:"callback,optional"`
  259. // 微信id
  260. Wxid *string `json:"wxid,optional"`
  261. // 微信账号
  262. Account *string `json:"account,optional"`
  263. // 微信昵称
  264. Nickname *string `json:"nickname,optional"`
  265. // 手机号
  266. Tel *string `json:"tel,optional"`
  267. // 微信头像
  268. HeadBig *string `json:"headBig,optional"`
  269. }
  270. // The response data of wx list | Wx列表数据
  271. // swagger:model WxListResp
  272. type WxListResp struct {
  273. BaseDataInfo
  274. // Wx list data | Wx列表数据
  275. Data WxListInfo `json:"data"`
  276. }
  277. // Wx list data | Wx列表数据
  278. // swagger:model WxListInfo
  279. type WxListInfo struct {
  280. BaseListInfo
  281. // The API list data | Wx列表数据
  282. Data []WxInfo `json:"data"`
  283. }
  284. // Get wx list request params | Wx列表请求参数
  285. // swagger:model WxListReq
  286. type WxListReq struct {
  287. PageInfo
  288. // 端口号
  289. Port *string `json:"port,optional"`
  290. // 进程号
  291. ProcessId *string `json:"processId,optional"`
  292. // 回调地址
  293. Callback *string `json:"callback,optional"`
  294. }
  295. // Wx information response | Wx信息返回体
  296. // swagger:model WxInfoResp
  297. type WxInfoResp struct {
  298. BaseDataInfo
  299. // Wx information | Wx数据
  300. Data WxInfo `json:"data"`
  301. }
  302. type LoginQRStatus struct {
  303. // 登陆二维码
  304. QRCode string `json:"qRCode,optional"`
  305. // 登陆二维码状态
  306. Status string `json:"status,optional"`
  307. // 登陆二维码状态描述
  308. StatusDesc string `json:"statusDesc,optional"`
  309. }
  310. // 刷新登陆二维码请求参数
  311. // swagger:model RefreshLoginQRReq
  312. type RefreshLoginQRReq struct {
  313. // 服务器id
  314. ServerId *uint64 `json:"serverId,optional"`
  315. // 端口号
  316. Port *string `json:"port,optional"`
  317. // 回调地址
  318. Callback *string `json:"callback,optional"`
  319. }
  320. // 刷新登陆二维码返回参数
  321. // swagger:model RefreshLoginQRResp
  322. type RefreshLoginQRResp struct {
  323. BaseDataInfo
  324. // 二维码Base64
  325. Data LoginQRStatus `json:"data,optional"`
  326. }
  327. // 发送微信文本消息请求参数
  328. // swagger:model SendTextMsgReq
  329. type SendTextMsgReq struct {
  330. // 属主微信id
  331. WxWxid *string `json:"wxWxid"`
  332. // 微信id 公众号微信ID
  333. Wxid *string `json:"wxid"`
  334. // 微信文本消息内容
  335. Msg *string `json:"msg"`
  336. }
  337. // 发送微信图片消息请求参数
  338. // swagger:model SendPicMsgReq
  339. type SendPicMsgReq struct {
  340. // 属主微信id
  341. WxWxid *string `json:"wxWxid"`
  342. // 微信id 公众号微信ID
  343. Wxid *string `json:"wxid"`
  344. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  345. Picpath *string `json:"picpath"`
  346. // 微信图片自定义名称(此属性只有网络图片有)
  347. Diyfilename *string `json:"diyfilename,optional"`
  348. }
  349. // 发送微信图片(本地)请求参数
  350. // swagger:model SendPicMsgLocalReq
  351. type SendPicMsgLocalReq 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. // The response data of contact information | Contact信息
  360. // swagger:model ContactInfo
  361. type ContactInfo struct {
  362. BaseIDInfo
  363. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  364. Status *uint8 `json:"status,optional"`
  365. // 属主微信id
  366. WxWxid *string `json:"wxWxid,optional"`
  367. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  368. Type *int `json:"type,optional"`
  369. // 微信id 公众号微信ID
  370. Wxid *string `json:"wxid,optional"`
  371. // 微信账号
  372. Account *string `json:"account,optional"`
  373. // 微信昵称 群备注名称
  374. Nickname *string `json:"nickname,optional"`
  375. // 备注名
  376. Markname *string `json:"markname,optional"`
  377. // 头像
  378. Headimg *string `json:"headimg,optional"`
  379. // 性别 0未知 1男 2女
  380. Sex *int `json:"sex,optional"`
  381. // 星标 65/67=星标 1/3=未星标
  382. Starrole *string `json:"starrole,optional"`
  383. // 不让他看我的朋友圈 0可以看 1不让看
  384. Dontseeit *int `json:"dontseeit,optional"`
  385. // 不看他的朋友圈 0可以看 1不看 1=开启了不看他 128/129=仅聊天
  386. Dontseeme *int `json:"dontseeme,optional"`
  387. // 所属标签id清单,多开会用逗号隔开
  388. Lag *string `json:"lag,optional"`
  389. // 群组id
  390. Gid *string `json:"gid,optional"`
  391. // 群组名称
  392. Gname *string `json:"gname,optional"`
  393. // v3数据
  394. V3 *string `json:"v3,optional"`
  395. }
  396. // The response data of contact list | Contact列表数据
  397. // swagger:model ContactListResp
  398. type ContactListResp struct {
  399. BaseDataInfo
  400. // Contact list data | Contact列表数据
  401. Data ContactListInfo `json:"data"`
  402. }
  403. // Contact list data | Contact列表数据
  404. // swagger:model ContactListInfo
  405. type ContactListInfo struct {
  406. BaseListInfo
  407. // The API list data | Contact列表数据
  408. Data []ContactInfo `json:"data"`
  409. }
  410. // Get contact list request params | Contact列表请求参数
  411. // swagger:model ContactListReq
  412. type ContactListReq struct {
  413. PageInfo
  414. // 属主微信id
  415. WxWxid *string `json:"wxWxid,optional"`
  416. // 微信id 公众号微信ID
  417. Wxid *string `json:"wxid,optional"`
  418. // 微信账号
  419. Account *string `json:"account,optional"`
  420. }
  421. // Contact information response | Contact信息返回体
  422. // swagger:model ContactInfoResp
  423. type ContactInfoResp struct {
  424. BaseDataInfo
  425. // Contact information | Contact数据
  426. Data ContactInfo `json:"data"`
  427. }
  428. // The response data of message information | Message信息
  429. // swagger:model MessageInfo
  430. type MessageInfo struct {
  431. BaseIDInfo
  432. // 属主微信id
  433. WxWxid *string `json:"wxWxid"`
  434. // 微信id 公众号微信ID
  435. Wxid *string `json:"wxid"`
  436. // 微信消息内容
  437. Msg *string `json:"msg"`
  438. }
  439. // The response data of message list | Message列表数据
  440. // swagger:model MessageListResp
  441. type MessageListResp struct {
  442. BaseDataInfo
  443. // Message list data | Message列表数据
  444. Data MessageListInfo `json:"data"`
  445. }
  446. // Message list data | Message列表数据
  447. // swagger:model MessageListInfo
  448. type MessageListInfo struct {
  449. BaseListInfo
  450. // The API list data | Message列表数据
  451. Data []MessageInfo `json:"data"`
  452. }
  453. // Get message list request params | Message列表请求参数
  454. // swagger:model MessageListReq
  455. type MessageListReq struct {
  456. PageInfo
  457. // 属主微信id
  458. WxWxid *string `json:"wxWxid,optional"`
  459. // 微信id 公众号微信ID
  460. Wxid *string `json:"wxid,optional"`
  461. }
  462. // Message information response | Message信息返回体
  463. // swagger:model MessageInfoResp
  464. type MessageInfoResp struct {
  465. BaseDataInfo
  466. // Message information | Message数据
  467. Data MessageInfo `json:"data"`
  468. }