types.go 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516
  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. // 模式ID
  284. AgentId *uint64 `json:"agentId,optional"`
  285. // 模式信息
  286. AgentInfo *AgentInfo `json:"agentInfo,optional"`
  287. }
  288. // The response data of wx list | Wx列表数据
  289. // swagger:model WxListResp
  290. type WxListResp struct {
  291. BaseDataInfo
  292. // Wx list data | Wx列表数据
  293. Data WxListInfo `json:"data"`
  294. }
  295. // Wx list data | Wx列表数据
  296. // swagger:model WxListInfo
  297. type WxListInfo struct {
  298. BaseListInfo
  299. // The API list data | Wx列表数据
  300. Data []WxInfo `json:"data"`
  301. }
  302. // Get wx list request params | Wx列表请求参数
  303. // swagger:model WxListReq
  304. type WxListReq struct {
  305. PageInfo
  306. // 端口号
  307. Port *string `json:"port,optional"`
  308. // 进程号
  309. ProcessId *string `json:"processId,optional"`
  310. // 回调地址
  311. Callback *string `json:"callback,optional"`
  312. }
  313. // Wx information response | Wx信息返回体
  314. // swagger:model WxInfoResp
  315. type WxInfoResp struct {
  316. BaseDataInfo
  317. // Wx information | Wx数据
  318. Data WxInfo `json:"data"`
  319. }
  320. // The data of agent information | Agent信息
  321. // swagger:model AgentInfo
  322. type AgentInfo struct {
  323. BaseIDInfo
  324. // name | 角色名称
  325. Name *string `json:"name,optional"`
  326. // role | 角色设定
  327. Role *string `json:"role,optional"`
  328. // status | 状态 1-正常 2-禁用
  329. Status *int `json:"status,optional"`
  330. // background | 背景介绍
  331. Background *string `json:"background,optional"`
  332. // examples | 对话案例
  333. Examples *string `json:"examples,optional"`
  334. }
  335. // The response data of agent list | Agent列表数据
  336. // swagger:model AgentListResp
  337. type AgentListResp struct {
  338. BaseDataInfo
  339. // Agent list data | Agent列表数据
  340. Data AgentListInfo `json:"data"`
  341. }
  342. // Agent list data | Agent列表数据
  343. // swagger:model AgentListInfo
  344. type AgentListInfo struct {
  345. BaseListInfo
  346. // The API list data | Agent列表数据
  347. Data []AgentInfo `json:"data"`
  348. }
  349. // Get agent list request params | Agent列表请求参数
  350. // swagger:model AgentListReq
  351. type AgentListReq struct {
  352. PageInfo
  353. // name | 角色名称
  354. Name *string `json:"name,optional"`
  355. // role | 角色设定
  356. Role *string `json:"role,optional"`
  357. // background | 背景介绍
  358. Background *string `json:"background,optional"`
  359. // status | 状态 1-可用 2-不可用
  360. Status *int `json:"status,optional"`
  361. }
  362. // Agent information response | Agent信息返回体
  363. // swagger:model AgentInfoResp
  364. type AgentInfoResp struct {
  365. BaseDataInfo
  366. // Agent information | Agent数据
  367. Data AgentInfo `json:"data"`
  368. }
  369. type LoginQRStatus struct {
  370. // 登陆二维码
  371. QRCode string `json:"qRCode,optional"`
  372. // 登陆二维码状态
  373. Status string `json:"status,optional"`
  374. // 登陆二维码状态描述
  375. StatusDesc string `json:"statusDesc,optional"`
  376. }
  377. // 刷新登陆二维码请求参数
  378. // swagger:model RefreshLoginQRReq
  379. type RefreshLoginQRReq struct {
  380. // 服务器id
  381. ServerId *uint64 `json:"serverId,optional"`
  382. // 端口号
  383. Port *string `json:"port,optional"`
  384. // 回调地址
  385. Callback *string `json:"callback,optional"`
  386. }
  387. // 刷新登陆二维码返回参数
  388. // swagger:model RefreshLoginQRResp
  389. type RefreshLoginQRResp struct {
  390. BaseDataInfo
  391. // 二维码Base64
  392. Data LoginQRStatus `json:"data,optional"`
  393. }
  394. // 发送微信文本消息请求参数
  395. // swagger:model SendTextMsgReq
  396. type SendTextMsgReq struct {
  397. // 属主微信id
  398. WxWxid *string `json:"senderWxId"`
  399. // 微信id 公众号微信ID
  400. Wxid *string `json:"receiverWxId"`
  401. // 微信文本消息内容
  402. Msg *string `json:"msg"`
  403. }
  404. // 发送微信图片消息请求参数
  405. // swagger:model SendPicMsgReq
  406. type SendPicMsgReq struct {
  407. // 属主微信id
  408. WxWxid *string `json:"wxWxid"`
  409. // 微信id 公众号微信ID
  410. Wxid *string `json:"wxid"`
  411. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  412. Picpath *string `json:"picpath"`
  413. // 微信图片自定义名称(此属性只有网络图片有)
  414. Diyfilename *string `json:"diyfilename,optional"`
  415. }
  416. // 发送微信图片(本地)请求参数
  417. // swagger:model SendPicMsgLocalReq
  418. type SendPicMsgLocalReq struct {
  419. // 属主微信id
  420. WxWxid *string `json:"wxWxid"`
  421. // 微信id 公众号微信ID
  422. Wxid *string `json:"wxid"`
  423. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  424. Picpath *string `json:"picpath"`
  425. }
  426. // The response data of contact list | Contact列表数据
  427. // swagger:model ContactListResp
  428. type ContactListResp struct {
  429. BaseDataInfo
  430. // Contact list data | Contact列表数据
  431. Data ContactListInfo `json:"data"`
  432. }
  433. // Contact list data | Contact列表数据
  434. // swagger:model ContactListInfo
  435. type ContactListInfo struct {
  436. BaseListInfo
  437. // The API list data | Contact列表数据
  438. Data []ContactInfo `json:"data"`
  439. }
  440. // Get contact list request params | Contact列表请求参数
  441. // swagger:model ContactListReq
  442. type ContactListReq struct {
  443. PageInfo
  444. // Label ID list | 标签ID列表
  445. LabelIDs []uint64 `json:"labelIDs,optional"`
  446. // 属主微信id
  447. WxWxid *string `json:"wxWxid,optional"`
  448. // 微信id 公众号微信ID
  449. Wxid *string `json:"wxid,optional"`
  450. // 微信账号
  451. Account *string `json:"account,optional"`
  452. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  453. Type *int `json:"type,optional"`
  454. }
  455. // Contact information response | Contact信息返回体
  456. // swagger:model ContactInfoResp
  457. type ContactInfoResp struct {
  458. BaseDataInfo
  459. // Contact information | Contact数据
  460. Data ContactInfo `json:"data"`
  461. }
  462. // swagger:model AddNewFriendReq
  463. type AddNewFriendReq struct {
  464. OwnerWxid string `json:"ownerWxid"`
  465. Wxid string `json:"wxid"`
  466. Gid string `json:"gid"`
  467. Desc string `json:"desc"`
  468. AddType string `json:"addType"`
  469. }
  470. // ContactLabelList | Contact标签列表
  471. type ContactLabelList struct {
  472. // label
  473. Label *string `json:"label,optional"`
  474. // value
  475. Value *uint64 `json:"value,optional"`
  476. }
  477. // The response data of contact information | Contact信息
  478. // swagger:model ContactInfo
  479. type ContactInfo struct {
  480. BaseIDInfo
  481. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  482. Status *uint8 `json:"status,optional"`
  483. // 属主微信id
  484. WxWxid *string `json:"wxWxid,optional"`
  485. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  486. Type *int `json:"type,optional"`
  487. // 微信id 公众号微信ID
  488. Wxid *string `json:"wxid,optional"`
  489. // 微信账号
  490. Account *string `json:"account,optional"`
  491. // 微信昵称 群备注名称
  492. Nickname *string `json:"nickname,optional"`
  493. // 备注名
  494. Markname *string `json:"markname,optional"`
  495. // 头像
  496. Headimg *string `json:"headimg,optional"`
  497. // 性别 0未知 1男 2女
  498. Sex *int `json:"sex,optional"`
  499. // 星标 65/67=星标 1/3=未星标
  500. Starrole *string `json:"starrole,optional"`
  501. // 不让他看我的朋友圈 0可以看 1不让看
  502. Dontseeit *int `json:"dontseeit,optional"`
  503. // 不看他的朋友圈 0可以看 1不看 1=开启了不看他 128/129=仅聊天
  504. Dontseeme *int `json:"dontseeme,optional"`
  505. // 所属标签id清单,多开会用逗号隔开
  506. Lag *string `json:"lag,optional"`
  507. // 群组id
  508. Gid *string `json:"gid,optional"`
  509. // 群组名称
  510. Gname *string `json:"gname,optional"`
  511. // v3数据
  512. V3 *string `json:"v3,optional"`
  513. // Label Relationships | 标签关系
  514. LabelRelationships []ContactLabelList `json:"labelRelationships,optional"`
  515. // 组织ID
  516. OrganizationId *uint64 `json:"organizationId,optional"`
  517. }
  518. // The response data of label information | Label信息
  519. // swagger:model LabelInfo
  520. type LabelInfo struct {
  521. BaseIDInfo
  522. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  523. Status *uint8 `json:"status,optional"`
  524. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  525. Type *int `json:"type,optional"`
  526. // 标签名称
  527. Name *string `json:"name,optional"`
  528. // 标签来源:1后台创建 2个微同步
  529. From *int `json:"from,optional"`
  530. // 标签模式:1动态 2静态
  531. Mode *int `json:"mode,optional"`
  532. // 标签的触达条件
  533. Conditions *string `json:"conditions,optional"`
  534. // 组织ID
  535. OrganizationId *uint64 `json:"organizationId,optional"`
  536. // Label Relationships | 标签关系
  537. LabelRelationships []LabelRelationshipInfo `json:"labelRelationships,optional"`
  538. }
  539. // The response data of label relationship information | LabelRelationship信息
  540. // swagger:model LabelRelationshipInfo
  541. type LabelRelationshipInfo struct {
  542. BaseIDInfo
  543. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  544. Status *uint8 `json:"status,optional"`
  545. // 标签 ID
  546. LabelId *uint64 `json:"labelId,optional"`
  547. // 联系人 ID
  548. ContactId *uint64 `json:"contactId,optional"`
  549. // Contact information | 联系人信息
  550. Contact ContactInfo `json:"contact,optional"`
  551. // Label information | 标签信息
  552. Label LabelInfo `json:"label,optional"`
  553. // 组织ID
  554. OrganizationId *uint64 `json:"organizationId,optional"`
  555. }
  556. // The response data of label relationship information | LabelRelationship信息
  557. // swagger:model LabelRelationshipsInfo
  558. type LabelRelationshipsInfo struct {
  559. BaseIDInfo
  560. // 更新类型:为空或“all”时表示全量更新,为 “add” 时表示仅追加
  561. UpdateType *string `json:"updateType,optional"`
  562. // 标签 ID
  563. LabelIds []uint64 `json:"labelIds,optional"`
  564. // 联系人 ID
  565. ContactId *uint64 `json:"contactId,optional"`
  566. }
  567. // swagger:model BatchLabelRelationshipsInfo
  568. type BatchLabelRelationshipsInfo struct {
  569. // 更新类型:为1 时表示增加标签,为 -1 时表示移除标签
  570. UpdateType int `json:"updateType,optional"`
  571. // 标签 ID
  572. LabelIds []uint64 `json:"labelIds,optional"`
  573. // 联系人 ID
  574. ContactIds []uint64 `json:"contactIds,optional"`
  575. }
  576. // The response data of label relationship list | LabelRelationship列表数据
  577. // swagger:model LabelRelationshipListResp
  578. type LabelRelationshipListResp struct {
  579. BaseDataInfo
  580. // LabelRelationship list data | LabelRelationship列表数据
  581. Data LabelRelationshipListInfo `json:"data"`
  582. }
  583. // LabelRelationship list data | LabelRelationship列表数据
  584. // swagger:model LabelRelationshipListInfo
  585. type LabelRelationshipListInfo struct {
  586. BaseListInfo
  587. // The API list data | LabelRelationship列表数据
  588. Data []LabelRelationshipInfo `json:"data"`
  589. }
  590. // Get label relationship list request params | LabelRelationship列表请求参数
  591. // swagger:model LabelRelationshipListReq
  592. type LabelRelationshipListReq struct {
  593. PageInfo
  594. }
  595. // LabelRelationship information response | LabelRelationship信息返回体
  596. // swagger:model LabelRelationshipInfoResp
  597. type LabelRelationshipInfoResp struct {
  598. BaseDataInfo
  599. // LabelRelationship information | LabelRelationship数据
  600. Data LabelRelationshipInfo `json:"data"`
  601. }
  602. // The response data of message information | Message信息
  603. // swagger:model MessageInfo
  604. type MessageInfo struct {
  605. BaseIDInfo
  606. // 属主微信id
  607. WxWxid *string `json:"wxWxid"`
  608. // 微信id 公众号微信ID
  609. Wxid *string `json:"wxid"`
  610. // 微信消息内容
  611. Msg *string `json:"msg"`
  612. }
  613. // The response data of message list | Message列表数据
  614. // swagger:model MessageListResp
  615. type MessageListResp struct {
  616. BaseDataInfo
  617. // Message list data | Message列表数据
  618. Data MessageListInfo `json:"data"`
  619. }
  620. // Message list data | Message列表数据
  621. // swagger:model MessageListInfo
  622. type MessageListInfo struct {
  623. BaseListInfo
  624. // The API list data | Message列表数据
  625. Data []MessageInfo `json:"data"`
  626. }
  627. // Get message list request params | Message列表请求参数
  628. // swagger:model MessageListReq
  629. type MessageListReq struct {
  630. PageInfo
  631. // 属主微信id
  632. WxWxid *string `json:"wxWxid,optional"`
  633. // 微信id 公众号微信ID
  634. Wxid *string `json:"wxid,optional"`
  635. }
  636. // Message information response | Message信息返回体
  637. // swagger:model MessageInfoResp
  638. type MessageInfoResp struct {
  639. BaseDataInfo
  640. // Message information | Message数据
  641. Data MessageInfo `json:"data"`
  642. }
  643. // The response data of label list | Label列表数据
  644. // swagger:model LabelSelectListResp
  645. type LabelSelectListResp struct {
  646. BaseDataInfo
  647. // Label list data | Label列表数据
  648. Data []LabelSelectListInfo `json:"data"`
  649. }
  650. // The response data of label list | Label列表数据
  651. // swagger:model LabelListResp
  652. type LabelListResp struct {
  653. BaseDataInfo
  654. // Label list data | Label列表数据
  655. Data LabelListInfo `json:"data"`
  656. }
  657. // Label list data | Label列表数据
  658. // swagger:model LabelListInfo
  659. type LabelListInfo struct {
  660. BaseListInfo
  661. // The API list data | Label列表数据
  662. Data []LabelInfo `json:"data"`
  663. }
  664. // Get label list request params | Label列表请求参数
  665. // swagger:model LabelListReq
  666. type LabelListReq struct {
  667. PageInfo
  668. // Label ID list | Label ID列表
  669. LabelIDs []uint64 `json:"labelIDs,optional"`
  670. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  671. Type *int `json:"type,optional"`
  672. // 标签名称
  673. Name *string `json:"name,optional"`
  674. // 标签来源:1后台创建 2个微同步
  675. From *int `json:"from,optional"`
  676. // 标签模式:1动态 2静态
  677. Mode *int `json:"mode,optional"`
  678. }
  679. // Label information response | Label信息返回体
  680. // swagger:model LabelInfoResp
  681. type LabelInfoResp struct {
  682. BaseDataInfo
  683. // Label information | Label数据
  684. Data LabelInfo `json:"data"`
  685. }
  686. // swagger:model LabelSelectListInfo
  687. type LabelSelectListInfo struct {
  688. // label
  689. Label *string `json:"label,optional"`
  690. // value
  691. Value *uint64 `json:"value,optional"`
  692. }
  693. // The response data of sop task list | SopTask列表数据
  694. // swagger:model SopTaskListResp
  695. type SopTaskListResp struct {
  696. BaseDataInfo
  697. // SopTask list data | SopTask列表数据
  698. Data SopTaskListInfo `json:"data"`
  699. }
  700. // The response data of sop task record list | SopTask列表数据
  701. // swagger:model SopTaskRecordListResp
  702. type SopTaskRecordListResp struct {
  703. BaseDataInfo
  704. // SopTask list data | SopTask列表数据
  705. Data []SopTaskRecordInfo `json:"data"`
  706. }
  707. // SopTask list data | SopTask列表数据
  708. // swagger:model SopTaskRecordInfo
  709. type SopTaskRecordInfo struct {
  710. // NodeId 节点ID
  711. SourceType *int `json:"sourceType,optional"`
  712. // NodeId 节点ID
  713. SourceId *uint64 `json:"sourceId,optional"`
  714. // 节点名称
  715. Name *string `json:"name,optional"`
  716. // 消息总数
  717. TotalCount *int64 `json:"totalCount,optional"`
  718. // 成功数
  719. SuccessCount *int64 `json:"successCount,optional"`
  720. // 失败数
  721. FailureCount *int64 `json:"failureCount,optional"`
  722. // 成功率
  723. SuccessRate *int64 `json:"successRate,optional"`
  724. }
  725. // SopTask list data | SopTask列表数据
  726. // swagger:model SopTaskListInfo
  727. type SopTaskListInfo struct {
  728. BaseListInfo
  729. // The API list data | SopTask列表数据
  730. Data []SopTaskInfo `json:"data"`
  731. }
  732. // Get sop task list request params | SopTask列表请求参数
  733. // swagger:model SopTaskListReq
  734. type SopTaskListReq struct {
  735. PageInfo
  736. // SOP 任务名称
  737. Name *string `json:"name,optional"`
  738. // 创建者 id
  739. CreatorId *string `json:"creatorId,optional"`
  740. }
  741. // SopTask information response | SopTask信息返回体
  742. // swagger:model SopTaskInfoResp
  743. type SopTaskInfoResp struct {
  744. BaseDataInfo
  745. // SopTask information | SopTask数据
  746. Data SopTaskInfo `json:"data"`
  747. }
  748. // SopTask create response | SopTask创建回体
  749. // swagger:model SopTaskCreateResp
  750. type SopTaskCreateResp struct {
  751. BaseDataInfo
  752. // SopTask id | SopTask id
  753. Data uint64 `json:"data"`
  754. }
  755. // The response data of sop stage information | SopStage信息
  756. // swagger:model SopStageInfo
  757. type SopStageInfo struct {
  758. BaseIDInfo
  759. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  760. Status *uint8 `json:"status,optional"`
  761. // SOP 任务 ID
  762. TaskId *uint64 `json:"taskId,optional"`
  763. // 阶段名称
  764. Name *string `json:"name,optional"`
  765. // 客群筛选条件类型 1 按标签筛选 2 按客户基本信息筛选
  766. ConditionType *int `json:"conditionType,optional"`
  767. // 筛选条件关系 1 满足所有条件(and) 2 满足任意条件(or)
  768. ConditionOperator *int `json:"conditionOperator,optional"`
  769. // 筛选条件列表
  770. ConditionList []Condition `json:"conditionList,optional"`
  771. // 命中后发送的消息内容
  772. ActionMessage []Action `json:"actionMessage,optional"`
  773. // 命中后需要打的标签
  774. ActionLabel []uint64 `json:"actionLabel,optional"`
  775. // 阶段顺序
  776. IndexSort *int `json:"indexSort,optional"`
  777. // sop 任务信息
  778. TaskInfo *SopTaskInfo `json:"taskInfo,optional"`
  779. // node 信息
  780. NodeList []SopNodeInfo `json:"nodeList,optional"`
  781. }
  782. // The response data of sop task information | SopTask信息
  783. // swagger:model SopTaskInfo
  784. type SopTaskInfo struct {
  785. BaseIDInfo
  786. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  787. Status *uint8 `json:"status,optional"`
  788. // SOP 任务名称
  789. Name *string `json:"name,optional"`
  790. // 机器人微信 id 列表
  791. BotWxidList []string `json:"botWxidList,optional"`
  792. // 标签类型:1好友,2群组,3企业微信联系人
  793. Type *int `json:"type,optional"`
  794. // 任务计划开始时间
  795. PlanStartTime *int64 `json:"planStartTime,optional"`
  796. // 任务计划结束时间
  797. PlanEndTime *int64 `json:"planEndTime,optional"`
  798. // 创建者 id
  799. CreatorId *string `json:"creatorId,optional"`
  800. // 阶段信息
  801. StageList []SopStageInfo `json:"stageList,optional"`
  802. // 组织ID
  803. OrganizationId *uint64 `json:"organizationId,optional"`
  804. }
  805. // The response data of sop node information | SopNode信息
  806. // swagger:model SopNodeInfo
  807. type SopNodeInfo struct {
  808. BaseIDInfo
  809. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  810. Status *uint8 `json:"status,optional"`
  811. // 阶段 ID
  812. StageId *uint64 `json:"stageId,optional"`
  813. // 父节点 ID
  814. ParentId *uint64 `json:"parentId,optional"`
  815. // 节点名称
  816. Name *string `json:"name,optional"`
  817. // 触发条件类型 1 客户回复后触发 2 超时后触发
  818. ConditionType *int `json:"conditionType,optional"`
  819. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  820. ConditionList []string `json:"conditionList,optional"`
  821. // 超时触发时间(分钟)
  822. NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
  823. // 命中后发送的消息内容
  824. ActionMessage []Action `json:"actionMessage,optional"`
  825. // 命中后需要打的标签
  826. ActionLabel []uint64 `json:"actionLabel,optional"`
  827. // 阶段信息
  828. StageInfo *SopStageInfo `json:"stageInfo,optional"`
  829. }
  830. // The response data of sop stage list | SopStage列表数据
  831. // swagger:model SopStageListResp
  832. type SopStageListResp struct {
  833. BaseDataInfo
  834. // SopStage list data | SopStage列表数据
  835. Data SopStageListInfo `json:"data"`
  836. }
  837. // SopStage list data | SopStage列表数据
  838. // swagger:model SopStageListInfo
  839. type SopStageListInfo struct {
  840. BaseListInfo
  841. // The API list data | SopStage列表数据
  842. Data []SopStageInfo `json:"data"`
  843. }
  844. // Get sop stage list request params | SopStage列表请求参数
  845. // swagger:model SopStageListReq
  846. type SopStageListReq struct {
  847. TaskId *uint64 `json:"taskId"`
  848. }
  849. // SopStage information response | SopStage信息返回体
  850. // swagger:model SopStageInfoResp
  851. type SopStageInfoResp struct {
  852. BaseDataInfo
  853. // SopStage information | SopStage数据
  854. Data SopStageInfo `json:"data"`
  855. }
  856. // SopStage create response | SopStage创建回体
  857. // swagger:model SopStageCreateResp
  858. type SopStageCreateResp struct {
  859. BaseDataInfo
  860. // SopStage id | SopStage id
  861. Data uint64 `json:"data"`
  862. }
  863. // Move sop stage request params | 移动阶段请求参数
  864. // swagger:model SopStageMoveReq
  865. type SopStageMoveReq struct {
  866. BaseIDInfo
  867. // 阶段名称
  868. Offset *int `json:"offset,optional"`
  869. }
  870. // The response data of sop node list | SopNode列表数据
  871. // swagger:model SopNodeListResp
  872. type SopNodeListResp struct {
  873. BaseDataInfo
  874. // SopNode list data | SopNode列表数据
  875. Data []*SopChildNodeInfo `json:"data"`
  876. }
  877. // SopNode list data | SopNode列表数据
  878. // swagger:model SopChildNodeInfo
  879. type SopChildNodeInfo struct {
  880. NodeName *string `json:"nodeName,optional"`
  881. ChildNode *SopChildNodeInfo `json:"childNode,optional"`
  882. // The API list data | SopNode列表数据
  883. ConditionNodes []*SopChildNodeInfo `json:"conditionNodes"`
  884. SopNodeInfo
  885. }
  886. // SopNode list data | SopNode列表数据
  887. // swagger:model SopNodeListInfo
  888. type SopNodeListInfo struct {
  889. BaseListInfo
  890. // The API list data | SopNode列表数据
  891. Data []SopNodeInfo `json:"data"`
  892. }
  893. // Get sop node list request params | SopNode列表请求参数
  894. // swagger:model SopNodeListReq
  895. type SopNodeListReq struct {
  896. StageId *uint64 `json:"stageId"`
  897. }
  898. // SopNode information response | SopNode信息返回体
  899. // swagger:model SopNodeInfoResp
  900. type SopNodeInfoResp struct {
  901. BaseDataInfo
  902. // SopNode information | SopNode数据
  903. Data SopNodeInfo `json:"data"`
  904. }
  905. // SopNode create response | SopNode创建返回体
  906. // swagger:model SopNodeCreateResp
  907. type SopNodeCreateResp struct {
  908. BaseDataInfo
  909. // SopNode id | SopNode id
  910. Data uint64 `json:"data"`
  911. }
  912. // The response data of message records information | MessageRecords信息
  913. // swagger:model MessageRecordsInfo
  914. type MessageRecordsInfo struct {
  915. BaseIDInfo
  916. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  917. Status *uint8 `json:"status,optional"`
  918. // 机器人微信 id
  919. BotWxid *string `json:"botWxid,optional"`
  920. // 联系人 id
  921. ContactId *uint64 `json:"contactId,optional"`
  922. // 类型:1好友,2群组,3企业微信联系人
  923. ContactType *int `json:"contactType,optional"`
  924. // 接收方微信 id
  925. ContactWxid *string `json:"contactWxid,optional"`
  926. // 内容类型 1 文本 2 文件
  927. ContentType *int `json:"contentType,optional"`
  928. // 发送内容
  929. Content *string `json:"content,optional"`
  930. // 元数据
  931. Meta *Meta `json:"meta,optional"`
  932. // 异常原因
  933. ErrorDetail *string `json:"errorDetail,optional"`
  934. // 发送时间
  935. SendTime *int64 `json:"sendTime,optional"`
  936. // 源类型 1 点发 2 群发 3 SOP
  937. SourceType *int `json:"sourceType,optional"`
  938. // 源 ID
  939. SourceId *uint64 `json:"sourceId,optional"`
  940. // 次源 ID
  941. SubSourceId *uint64 `json:"subSourceId,optional"`
  942. // 组织ID
  943. OrganizationId *uint64 `json:"organizationId,optional"`
  944. }
  945. // The response data of message records list | MessageRecords列表数据
  946. // swagger:model MessageRecordsListResp
  947. type MessageRecordsListResp struct {
  948. BaseDataInfo
  949. // MessageRecords list data | MessageRecords列表数据
  950. Data MessageRecordsListInfo `json:"data"`
  951. }
  952. // MessageRecords list data | MessageRecords列表数据
  953. // swagger:model MessageRecordsListInfo
  954. type MessageRecordsListInfo struct {
  955. BaseListInfo
  956. // The API list data | MessageRecords列表数据
  957. Data []MessageRecordsInfo `json:"data"`
  958. }
  959. // Get message records list request params | MessageRecords列表请求参数
  960. // swagger:model MessageRecordsListReq
  961. type MessageRecordsListReq struct {
  962. PageInfo
  963. // 群发消息ID
  964. BatchMsgId *uint64 `json:"batchMsgId,optional"`
  965. // 机器人微信 id
  966. BotWxid *string `json:"botWxid,optional"`
  967. // 接收方微信 id
  968. ContactWxid *string `json:"contactWxid,optional"`
  969. // 发送内容
  970. Status *uint8 `json:"status,optional"`
  971. }
  972. // MessageRecords information response | MessageRecords信息返回体
  973. // swagger:model MessageRecordsInfoResp
  974. type MessageRecordsInfoResp struct {
  975. BaseDataInfo
  976. // MessageRecords information | MessageRecords数据
  977. Data MessageRecordsInfo `json:"data"`
  978. }
  979. // The response data of chatroom member information | ChatroomMember信息
  980. // swagger:model ChatroomMemberInfo
  981. type ChatroomMemberInfo struct {
  982. // 名称
  983. Wxid *string `json:"wxid,optional"`
  984. // 群组
  985. ChatRoom *string `json:"chatRoom,optional"`
  986. // 属主Wxid
  987. OwnerWxid *string `json:"ownerWxid,optional"`
  988. // 账号
  989. Account *string `json:"account,optional"`
  990. }
  991. // The response data of chatroom member list | ChatroomMember列表数据
  992. // swagger:model ChatroomMemberListResp
  993. type ChatroomMemberListResp struct {
  994. BaseDataInfo
  995. // chatroom member list data | chatroom member 列表数据
  996. Data ChatroomMemberListInfo `json:"data"`
  997. }
  998. // chatroom member list data | chatroom member列表数据
  999. // swagger:model ChatroomMemberListInfo
  1000. type ChatroomMemberListInfo struct {
  1001. BaseListInfo
  1002. // The API list data | chatroom member列表数据
  1003. Data []ChatroomMemberInfo `json:"data"`
  1004. }
  1005. // Get chatroom member list request params | ChatroomMember列表请求参数
  1006. // swagger:model ChatroomMemberListReq
  1007. type ChatroomMemberListReq struct {
  1008. PageInfo
  1009. // 属主Wxid
  1010. OwnerWxid *string `json:"ownerWxid,optional"`
  1011. // 群组
  1012. ChatRoom *string `json:"chatRoom,optional"`
  1013. }
  1014. // chatroom member information response | ChatroomMember信息返回体
  1015. // swagger:model ChatroomMemberInfoResp
  1016. type ChatroomMemberInfoResp struct {
  1017. BaseDataInfo
  1018. // Server information | Server数据
  1019. Data ChatroomMemberInfo `json:"data"`
  1020. }
  1021. // The response data of user information | 用户信息
  1022. // swagger:model UserInfo
  1023. type UserInfo struct {
  1024. BaseUUIDInfo
  1025. // Status | 状态
  1026. // max : 20
  1027. Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"`
  1028. // Username | 用户名
  1029. // max length : 50
  1030. Username *string `json:"username,optional" validate:"omitempty,max=50"`
  1031. // Nickname | 昵称
  1032. // max length : 40
  1033. Nickname *string `json:"nickname,optional" validate:"omitempty,max=40"`
  1034. // Password | 密码
  1035. // min length : 6
  1036. Password *string `json:"password,optional" validate:"omitempty,min=6"`
  1037. // Description | 描述
  1038. // max length : 100
  1039. Description *string `json:"description,optional" validate:"omitempty,max=100"`
  1040. // HomePath | 首页
  1041. // max length : 70
  1042. HomePath *string `json:"homePath,optional" validate:"omitempty,max=70"`
  1043. // RoleId | 角色ID
  1044. RoleIds []uint64 `json:"roleIds,optional"`
  1045. // Mobile | 手机号
  1046. // max length : 18
  1047. Mobile *string `json:"mobile,optional" validate:"omitempty,max=18"`
  1048. // Email | 邮箱
  1049. // max length : 80
  1050. Email *string `json:"email,optional" validate:"omitempty,max=80"`
  1051. // Avatar | 头像地址
  1052. // max length : 300
  1053. Avatar *string `json:"avatar,optional" validate:"omitempty,max=300"`
  1054. // Department ID | 部门ID
  1055. DepartmentId *uint64 `json:"departmentId,optional,omitempty"`
  1056. // Position ID | 职位ID
  1057. PositionIds []uint64 `json:"positionId,optional,omitempty"`
  1058. }
  1059. // User information response | 用户信息返回体
  1060. // swagger:model UserInfoResp
  1061. type UserInfoResp struct {
  1062. BaseDataInfo
  1063. // User information | User数据
  1064. Data UserInfo `json:"data"`
  1065. }
  1066. // The response data of user's basic information | 用户基本信息返回数据
  1067. // swagger:model UserBaseIDInfoResp
  1068. type UserBaseIDInfoResp struct {
  1069. BaseDataInfo
  1070. // The data of user's basic information | 用户基本信息
  1071. Data UserBaseIDInfo `json:"data"`
  1072. }
  1073. // The data of user's basic information | 用户基本信息
  1074. // swagger:model UserBaseIDInfo
  1075. type UserBaseIDInfo struct {
  1076. // User's UUID | 用户的UUID
  1077. UUID *string `json:"userId"`
  1078. // User's name | 用户名
  1079. Username *string `json:"username"`
  1080. // User's nickname | 用户的昵称
  1081. Nickname *string `json:"nickname"`
  1082. // The user's avatar path | 用户的头像路径
  1083. Avatar *string `json:"avatar"`
  1084. // The home page that the user enters after logging in | 用户登陆后进入的首页
  1085. HomePath *string `json:"homePath"`
  1086. // The description of user | 用户的描述信息
  1087. Description *string `json:"desc"`
  1088. // User's Role Name | 用户的角色名称
  1089. RoleName []string `json:"roleName"`
  1090. // Department Name | 部门名称
  1091. DepartmentName string `json:"departmentName,optional"`
  1092. // Department Name | 部门备注
  1093. DepartmentRemark string `json:"departmentRemark,optional"`
  1094. }
  1095. // swagger:model WxidReq
  1096. type WxidReq struct {
  1097. Wxid string `json:"wxid"`
  1098. }
  1099. // The data of batch msg information | BatchMsg信息
  1100. // swagger:model BatchMsgInfo
  1101. type BatchMsgInfo struct {
  1102. BaseIDInfo
  1103. // 状态 0 未开始 1 开始发送 2 发送完成 3 发送中止
  1104. Status *uint8 `json:"status,optional"`
  1105. // 批次号
  1106. BatchNo *string `json:"batchNo,optional"`
  1107. // 任务名称
  1108. TaskName *string `json:"taskName,optional"`
  1109. // 发送方微信ID
  1110. Fromwxid *string `json:"fromwxid,optional"`
  1111. // 内容
  1112. Msg *string `json:"msg,optional"`
  1113. // 发送规则 all 全部 tag1,tag2 按tag发送
  1114. Tag *string `json:"tag,optional"`
  1115. // 总数
  1116. Total *int32 `json:"total,optional"`
  1117. // 成功数量
  1118. Success *int32 `json:"success,optional"`
  1119. // 失败数量
  1120. Fail *int32 `json:"fail,optional"`
  1121. // 开始时间
  1122. StartTime *int64 `json:"startTime,optional"`
  1123. StartTimeStr *string `json:"startTimeStr,optional"`
  1124. // 结束时间
  1125. StopTime *int64 `json:"stopTime,optional"`
  1126. // 发送时间
  1127. SendTime *int64 `json:"sendTime,optional"`
  1128. SendTimeStr *string `json:"sendTimeStr,optional"`
  1129. // 标签列表
  1130. Labels []string `json:"labels,optional"`
  1131. // 标签列表
  1132. Type *int32 `json:"type,optional"`
  1133. }
  1134. // The response data of batch msg list | BatchMsg列表数据
  1135. // swagger:model BatchMsgListResp
  1136. type BatchMsgListResp struct {
  1137. BaseDataInfo
  1138. // BatchMsg list data | BatchMsg列表数据
  1139. Data BatchMsgListInfo `json:"data"`
  1140. }
  1141. // BatchMsg list data | BatchMsg列表数据
  1142. // swagger:model BatchMsgListInfo
  1143. type BatchMsgListInfo struct {
  1144. BaseListInfo
  1145. // The API list data | BatchMsg列表数据
  1146. Data []BatchMsgInfo `json:"data"`
  1147. }
  1148. // Get batch msg list request params | BatchMsg列表请求参数
  1149. // swagger:model BatchMsgListReq
  1150. type BatchMsgListReq struct {
  1151. PageInfo
  1152. // 批次号
  1153. BatchNo *string `json:"batchNo,optional"`
  1154. // 发送方微信ID
  1155. Fromwxid *string `json:"fromwxid,optional"`
  1156. // 内容
  1157. Msg *string `json:"msg,optional"`
  1158. // 任务名称
  1159. TaskName *string `json:"taskName,optional"`
  1160. // 群发类型
  1161. Type *int32 `json:"type"`
  1162. }
  1163. // BatchMsg information response | BatchMsg信息返回体
  1164. // swagger:model BatchMsgInfoResp
  1165. type BatchMsgInfoResp struct {
  1166. BaseDataInfo
  1167. // BatchMsg information | BatchMsg数据
  1168. Data BatchMsgInfo `json:"data"`
  1169. }
  1170. // The data of employee information | Employee信息
  1171. // swagger:model EmployeeInfo
  1172. type EmployeeInfo struct {
  1173. BaseIDInfo
  1174. // title | 标题
  1175. Title *string `json:"title,optional"`
  1176. // avatar | 头像
  1177. Avatar *string `json:"avatar,optional"`
  1178. // tags | 个人标签
  1179. Tags *string `json:"tags,optional"`
  1180. // hire_count | 被雇佣次数
  1181. HireCount *int `json:"hireCount,optional"`
  1182. // service_count | 已服务次数
  1183. ServiceCount *int `json:"serviceCount,optional"`
  1184. // achievement_count | 业绩单数
  1185. AchievementCount *int `json:"achievementCount,optional"`
  1186. // intro | 个人介绍
  1187. Intro *string `json:"intro,optional"`
  1188. // estimate | 自我评价
  1189. Estimate *string `json:"estimate,optional"`
  1190. // skill | 技能卡
  1191. Skill *string `json:"skill,optional"`
  1192. // ability_type | 能力类型
  1193. AbilityType *string `json:"abilityType,optional"`
  1194. // scene | 使用场景
  1195. Scene *string `json:"scene,optional"`
  1196. // switch_in | 支持介入
  1197. SwitchIn *string `json:"switchIn,optional"`
  1198. Tutorial []TutorialInfo `json:"tutorial,optional"`
  1199. // video_url | 视频地址
  1200. VideoUrl *string `json:"videoUrl,optional"`
  1201. // work_experience | 工作经验
  1202. WorkExperience []WorkExperienceInfo `json:"workExperience,optional"`
  1203. }
  1204. // The response data of employee list | Employee列表数据
  1205. // swagger:model EmployeeListResp
  1206. type EmployeeListResp struct {
  1207. BaseDataInfo
  1208. // Employee list data | Employee列表数据
  1209. Data EmployeeListInfo `json:"data"`
  1210. }
  1211. // Employee list data | Employee列表数据
  1212. // swagger:model EmployeeListInfo
  1213. type EmployeeListInfo struct {
  1214. BaseListInfo
  1215. // The API list data | Employee列表数据
  1216. Data []EmployeeInfo `json:"data"`
  1217. }
  1218. // Get employee list request params | Employee列表请求参数
  1219. // swagger:model EmployeeListReq
  1220. type EmployeeListReq struct {
  1221. PageInfo
  1222. // title | 标题
  1223. Title *string `json:"title,optional"`
  1224. // tags | 个人标签
  1225. Tags *string `json:"tags,optional"`
  1226. }
  1227. // Employee information response | Employee信息返回体
  1228. // swagger:model EmployeeInfoResp
  1229. type EmployeeInfoResp struct {
  1230. BaseDataInfo
  1231. // Employee information | Employee数据
  1232. Data EmployeeInfo `json:"data"`
  1233. }
  1234. // The data of work experience information | WorkExperience信息
  1235. // swagger:model WorkExperienceInfo
  1236. type WorkExperienceInfo struct {
  1237. BaseIDInfo
  1238. // employee_id | 员工ID
  1239. EmployeeId *uint64 `json:"employeeId,optional"`
  1240. // start_date | 开始时间
  1241. StartDate *int64 `json:"startDate,optional"`
  1242. StartDateStr *string `json:"startDateStr,optional"`
  1243. // end_date | 结束时间
  1244. EndDate *int64 `json:"endDate,optional"`
  1245. EndDateStr *string `json:"endDateStr,optional"`
  1246. // company | 公司名
  1247. Company *string `json:"company,optional"`
  1248. // experience | 工作内容
  1249. Experience *string `json:"experience,optional"`
  1250. }
  1251. // The response data of work experience list | WorkExperience列表数据
  1252. // swagger:model WorkExperienceListResp
  1253. type WorkExperienceListResp struct {
  1254. BaseDataInfo
  1255. // WorkExperience list data | WorkExperience列表数据
  1256. Data WorkExperienceListInfo `json:"data"`
  1257. }
  1258. // WorkExperience list data | WorkExperience列表数据
  1259. // swagger:model WorkExperienceListInfo
  1260. type WorkExperienceListInfo struct {
  1261. BaseListInfo
  1262. // The API list data | WorkExperience列表数据
  1263. Data []WorkExperienceInfo `json:"data"`
  1264. }
  1265. // Get work experience list request params | WorkExperience列表请求参数
  1266. // swagger:model WorkExperienceListReq
  1267. type WorkExperienceListReq struct {
  1268. PageInfo
  1269. // company | 公司名
  1270. Company *string `json:"company,optional"`
  1271. }
  1272. // WorkExperience information response | WorkExperience信息返回体
  1273. // swagger:model WorkExperienceInfoResp
  1274. type WorkExperienceInfoResp struct {
  1275. BaseDataInfo
  1276. // WorkExperience information | WorkExperience数据
  1277. Data WorkExperienceInfo `json:"data"`
  1278. }
  1279. // The data of tutorial information | Tutorial信息
  1280. // swagger:model TutorialInfo
  1281. type TutorialInfo struct {
  1282. BaseIDInfo
  1283. // employee_id | 员工ID
  1284. EmployeeId *uint64 `json:"employeeId,optional"`
  1285. // index | 序号
  1286. Index *int `json:"index,optional"`
  1287. // title | 标题
  1288. Title *string `json:"title,optional"`
  1289. // content | 内容
  1290. Content *string `json:"content,optional"`
  1291. }
  1292. // The response data of tutorial list | Tutorial列表数据
  1293. // swagger:model TutorialListResp
  1294. type TutorialListResp struct {
  1295. BaseDataInfo
  1296. // Tutorial list data | Tutorial列表数据
  1297. Data TutorialListInfo `json:"data"`
  1298. }
  1299. // Tutorial list data | Tutorial列表数据
  1300. // swagger:model TutorialListInfo
  1301. type TutorialListInfo struct {
  1302. BaseListInfo
  1303. // The API list data | Tutorial列表数据
  1304. Data []TutorialInfo `json:"data"`
  1305. }
  1306. // Get tutorial list request params | Tutorial列表请求参数
  1307. // swagger:model TutorialListReq
  1308. type TutorialListReq struct {
  1309. PageInfo
  1310. // title | 标题
  1311. Title *string `json:"title,optional"`
  1312. // content | 内容
  1313. Content *string `json:"content,optional"`
  1314. }
  1315. // Tutorial information response | Tutorial信息返回体
  1316. // swagger:model TutorialInfoResp
  1317. type TutorialInfoResp struct {
  1318. BaseDataInfo
  1319. // Tutorial information | Tutorial数据
  1320. Data TutorialInfo `json:"data"`
  1321. }
  1322. // The data of token information | Token信息
  1323. // swagger:model TokenInfo
  1324. type TokenInfo struct {
  1325. BaseIDInfo
  1326. // 过期时间
  1327. ExpireAt *int64 `json:"expireAt,optional"`
  1328. // Token
  1329. Token *string `json:"token,optional"`
  1330. // Mac地址
  1331. Mac *string `json:"mac,optional"`
  1332. }
  1333. // The response data of token list | Token列表数据
  1334. // swagger:model TokenListResp
  1335. type TokenListResp struct {
  1336. BaseDataInfo
  1337. // Token list data | Token列表数据
  1338. Data TokenListInfo `json:"data"`
  1339. }
  1340. // Token list data | Token列表数据
  1341. // swagger:model TokenListInfo
  1342. type TokenListInfo struct {
  1343. BaseListInfo
  1344. // The API list data | Token列表数据
  1345. Data []TokenInfo `json:"data"`
  1346. }
  1347. // Get token list request params | Token列表请求参数
  1348. // swagger:model TokenListReq
  1349. type TokenListReq struct {
  1350. PageInfo
  1351. // Token
  1352. Token *string `json:"token,optional"`
  1353. // Mac地址
  1354. Mac *string `json:"mac,optional"`
  1355. }
  1356. // Token information response | Token信息返回体
  1357. // swagger:model TokenInfoResp
  1358. type TokenInfoResp struct {
  1359. BaseDataInfo
  1360. // Token information | Token数据
  1361. Data TokenInfo `json:"data"`
  1362. }
  1363. // swagger:model CheckTokenReq
  1364. type CheckTokenReq struct {
  1365. // Token
  1366. Token *string `json:"token"`
  1367. // Mac地址
  1368. Mac *string `json:"mac"`
  1369. }
  1370. // swagger:model CheckTokenResp
  1371. type CheckTokenResp struct {
  1372. // 是否合法
  1373. Valid *bool `json:"valid"`
  1374. // Sign 签名内容
  1375. Sign *string `json:"sign"`
  1376. // Timestamp 时间戳
  1377. Timestamp *int64 `json:"timestamp"`
  1378. }