types.go 45 KB

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