wechat.json 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263
  1. {
  2. "consumes": [
  3. "application/json"
  4. ],
  5. "produces": [
  6. "application/json"
  7. ],
  8. "schemes": [
  9. "http",
  10. "https"
  11. ],
  12. "swagger": "2.0",
  13. "info": {
  14. "description": "Description: wechat service",
  15. "title": "wechat",
  16. "version": "0.0.1"
  17. },
  18. "host": "localhost:19101",
  19. "basePath": "/",
  20. "paths": {
  21. "/init/database": {
  22. "get": {
  23. "description": "Initialize database | 初始化数据库",
  24. "tags": [
  25. "base"
  26. ],
  27. "summary": "Initialize database | 初始化数据库",
  28. "operationId": "InitDatabase",
  29. "responses": {
  30. "200": {
  31. "description": "BaseMsgResp",
  32. "schema": {
  33. "$ref": "#/definitions/BaseMsgResp"
  34. }
  35. }
  36. }
  37. }
  38. },
  39. "/server": {
  40. "post": {
  41. "description": "Get server by ID | 通过ID获取Server",
  42. "tags": [
  43. "WechatServer"
  44. ],
  45. "summary": "Get server by ID | 通过ID获取Server",
  46. "operationId": "GetServerById",
  47. "parameters": [
  48. {
  49. "name": "body",
  50. "in": "body",
  51. "schema": {
  52. "type": "object",
  53. "$ref": "#/definitions/IDReq"
  54. }
  55. }
  56. ],
  57. "responses": {
  58. "200": {
  59. "description": "ServerInfoResp",
  60. "schema": {
  61. "$ref": "#/definitions/ServerInfoResp"
  62. }
  63. }
  64. }
  65. }
  66. },
  67. "/server/create": {
  68. "post": {
  69. "description": "Create server information | 创建Server",
  70. "tags": [
  71. "WechatServer"
  72. ],
  73. "summary": "Create server information | 创建Server",
  74. "operationId": "CreateServer",
  75. "parameters": [
  76. {
  77. "name": "body",
  78. "in": "body",
  79. "schema": {
  80. "type": "object",
  81. "$ref": "#/definitions/ServerInfo"
  82. }
  83. }
  84. ],
  85. "responses": {
  86. "200": {
  87. "description": "BaseMsgResp",
  88. "schema": {
  89. "$ref": "#/definitions/BaseMsgResp"
  90. }
  91. }
  92. }
  93. }
  94. },
  95. "/server/delete": {
  96. "post": {
  97. "description": "Delete server information | 删除Server信息",
  98. "tags": [
  99. "WechatServer"
  100. ],
  101. "summary": "Delete server information | 删除Server信息",
  102. "operationId": "DeleteServer",
  103. "parameters": [
  104. {
  105. "name": "body",
  106. "in": "body",
  107. "schema": {
  108. "type": "object",
  109. "$ref": "#/definitions/IDsReq"
  110. }
  111. }
  112. ],
  113. "responses": {
  114. "200": {
  115. "description": "BaseMsgResp",
  116. "schema": {
  117. "$ref": "#/definitions/BaseMsgResp"
  118. }
  119. }
  120. }
  121. }
  122. },
  123. "/server/list": {
  124. "post": {
  125. "description": "Get server list | 获取Server列表",
  126. "tags": [
  127. "WechatServer"
  128. ],
  129. "summary": "Get server list | 获取Server列表",
  130. "operationId": "GetServerList",
  131. "parameters": [
  132. {
  133. "name": "body",
  134. "in": "body",
  135. "schema": {
  136. "type": "object",
  137. "$ref": "#/definitions/ServerListReq"
  138. }
  139. }
  140. ],
  141. "responses": {
  142. "200": {
  143. "description": "ServerListResp",
  144. "schema": {
  145. "$ref": "#/definitions/ServerListResp"
  146. }
  147. }
  148. }
  149. }
  150. },
  151. "/server/update": {
  152. "post": {
  153. "description": "Update server information | 更新Server",
  154. "tags": [
  155. "WechatServer"
  156. ],
  157. "summary": "Update server information | 更新Server",
  158. "operationId": "UpdateServer",
  159. "parameters": [
  160. {
  161. "name": "body",
  162. "in": "body",
  163. "schema": {
  164. "type": "object",
  165. "$ref": "#/definitions/ServerInfo"
  166. }
  167. }
  168. ],
  169. "responses": {
  170. "200": {
  171. "description": "BaseMsgResp",
  172. "schema": {
  173. "$ref": "#/definitions/BaseMsgResp"
  174. }
  175. }
  176. }
  177. }
  178. },
  179. "/wx": {
  180. "post": {
  181. "description": "Get wx by ID | 通过ID获取Wx",
  182. "tags": [
  183. "Wx"
  184. ],
  185. "summary": "Get wx by ID | 通过ID获取Wx",
  186. "operationId": "GetWxById",
  187. "parameters": [
  188. {
  189. "name": "body",
  190. "in": "body",
  191. "schema": {
  192. "type": "object",
  193. "$ref": "#/definitions/IDReq"
  194. }
  195. }
  196. ],
  197. "responses": {
  198. "200": {
  199. "description": "WxInfoResp",
  200. "schema": {
  201. "$ref": "#/definitions/WxInfoResp"
  202. }
  203. }
  204. }
  205. }
  206. },
  207. "/wx/create": {
  208. "post": {
  209. "description": "Create wx information | 创建Wx",
  210. "tags": [
  211. "Wx"
  212. ],
  213. "summary": "Create wx information | 创建Wx",
  214. "operationId": "CreateWx",
  215. "parameters": [
  216. {
  217. "name": "body",
  218. "in": "body",
  219. "schema": {
  220. "type": "object",
  221. "$ref": "#/definitions/WxInfo"
  222. }
  223. }
  224. ],
  225. "responses": {
  226. "200": {
  227. "description": "BaseMsgResp",
  228. "schema": {
  229. "$ref": "#/definitions/BaseMsgResp"
  230. }
  231. }
  232. }
  233. }
  234. },
  235. "/wx/delete": {
  236. "post": {
  237. "description": "Delete wx information | 删除Wx信息",
  238. "tags": [
  239. "Wx"
  240. ],
  241. "summary": "Delete wx information | 删除Wx信息",
  242. "operationId": "DeleteWx",
  243. "parameters": [
  244. {
  245. "name": "body",
  246. "in": "body",
  247. "schema": {
  248. "type": "object",
  249. "$ref": "#/definitions/IDsReq"
  250. }
  251. }
  252. ],
  253. "responses": {
  254. "200": {
  255. "description": "BaseMsgResp",
  256. "schema": {
  257. "$ref": "#/definitions/BaseMsgResp"
  258. }
  259. }
  260. }
  261. }
  262. },
  263. "/wx/list": {
  264. "post": {
  265. "description": "Get wx list | 获取Wx列表",
  266. "tags": [
  267. "Wx"
  268. ],
  269. "summary": "Get wx list | 获取Wx列表",
  270. "operationId": "GetWxList",
  271. "parameters": [
  272. {
  273. "name": "body",
  274. "in": "body",
  275. "schema": {
  276. "type": "object",
  277. "$ref": "#/definitions/WxListReq"
  278. }
  279. }
  280. ],
  281. "responses": {
  282. "200": {
  283. "description": "WxListResp",
  284. "schema": {
  285. "$ref": "#/definitions/WxListResp"
  286. }
  287. }
  288. }
  289. }
  290. },
  291. "/wx/refreshLoginQR": {
  292. "post": {
  293. "description": "Refresh login QR code | 刷新登陆二维码",
  294. "tags": [
  295. "Wx"
  296. ],
  297. "summary": "Refresh login QR code | 刷新登陆二维码",
  298. "operationId": "RefreshLoginQR",
  299. "parameters": [
  300. {
  301. "name": "body",
  302. "in": "body",
  303. "schema": {
  304. "type": "object",
  305. "$ref": "#/definitions/RefreshLoginQRReq"
  306. }
  307. }
  308. ],
  309. "responses": {
  310. "200": {
  311. "description": "RefreshLoginQRResp",
  312. "schema": {
  313. "$ref": "#/definitions/RefreshLoginQRResp"
  314. }
  315. }
  316. }
  317. }
  318. },
  319. "/wx/update": {
  320. "post": {
  321. "description": "Update wx information | 更新Wx",
  322. "tags": [
  323. "Wx"
  324. ],
  325. "summary": "Update wx information | 更新Wx",
  326. "operationId": "UpdateWx",
  327. "parameters": [
  328. {
  329. "name": "body",
  330. "in": "body",
  331. "schema": {
  332. "type": "object",
  333. "$ref": "#/definitions/WxInfo"
  334. }
  335. }
  336. ],
  337. "responses": {
  338. "200": {
  339. "description": "BaseMsgResp",
  340. "schema": {
  341. "$ref": "#/definitions/BaseMsgResp"
  342. }
  343. }
  344. }
  345. }
  346. },
  347. "/wxhook/refreshLoginQR": {
  348. "post": {
  349. "description": "Refresh login QR code | 刷新登陆二维码",
  350. "tags": [
  351. "Wxhook"
  352. ],
  353. "summary": "Refresh login QR code | 刷新登陆二维码",
  354. "operationId": "RefreshLoginQR",
  355. "parameters": [
  356. {
  357. "name": "body",
  358. "in": "body",
  359. "schema": {
  360. "type": "object",
  361. "$ref": "#/definitions/RefreshLoginQRReq"
  362. }
  363. }
  364. ],
  365. "responses": {
  366. "200": {
  367. "description": "RefreshLoginQRResp",
  368. "schema": {
  369. "$ref": "#/definitions/RefreshLoginQRResp"
  370. }
  371. }
  372. }
  373. }
  374. }
  375. },
  376. "definitions": {
  377. "BaseDataInfo": {
  378. "description": "The basic response with data | 基础带数据信息",
  379. "type": "object",
  380. "properties": {
  381. "code": {
  382. "description": "Error code | 错误代码",
  383. "type": "integer",
  384. "format": "int64",
  385. "x-go-name": "Code"
  386. },
  387. "data": {
  388. "description": "Data | 数据",
  389. "type": "string",
  390. "x-go-name": "Data"
  391. },
  392. "msg": {
  393. "description": "Message | 提示信息",
  394. "type": "string",
  395. "x-go-name": "Msg"
  396. }
  397. },
  398. "x-go-package": "wechat/internal/types"
  399. },
  400. "BaseIDInfo": {
  401. "description": "The base ID response data | 基础ID信息",
  402. "type": "object",
  403. "properties": {
  404. "createdAt": {
  405. "description": "Create date | 创建日期",
  406. "type": "integer",
  407. "format": "int64",
  408. "x-go-name": "CreatedAt"
  409. },
  410. "id": {
  411. "description": "ID",
  412. "type": "integer",
  413. "format": "uint64",
  414. "x-go-name": "Id"
  415. },
  416. "updatedAt": {
  417. "description": "Update date | 更新日期",
  418. "type": "integer",
  419. "format": "int64",
  420. "x-go-name": "UpdatedAt"
  421. }
  422. },
  423. "x-go-package": "wechat/internal/types"
  424. },
  425. "BaseIDInt32Info": {
  426. "description": "The base ID response data (int32) | 基础ID信息 (int32)",
  427. "type": "object",
  428. "properties": {
  429. "createdAt": {
  430. "description": "Create date | 创建日期",
  431. "type": "integer",
  432. "format": "int64",
  433. "x-go-name": "CreatedAt"
  434. },
  435. "id": {
  436. "description": "ID",
  437. "type": "integer",
  438. "format": "int32",
  439. "x-go-name": "Id"
  440. },
  441. "updatedAt": {
  442. "description": "Update date | 更新日期",
  443. "type": "integer",
  444. "format": "int64",
  445. "x-go-name": "UpdatedAt"
  446. }
  447. },
  448. "x-go-package": "wechat/internal/types"
  449. },
  450. "BaseIDInt64Info": {
  451. "description": "The base ID response data (int64) | 基础ID信息 (int64)",
  452. "type": "object",
  453. "properties": {
  454. "createdAt": {
  455. "description": "Create date | 创建日期",
  456. "type": "integer",
  457. "format": "int64",
  458. "x-go-name": "CreatedAt"
  459. },
  460. "id": {
  461. "description": "ID",
  462. "type": "integer",
  463. "format": "int64",
  464. "x-go-name": "Id"
  465. },
  466. "updatedAt": {
  467. "description": "Update date | 更新日期",
  468. "type": "integer",
  469. "format": "int64",
  470. "x-go-name": "UpdatedAt"
  471. }
  472. },
  473. "x-go-package": "wechat/internal/types"
  474. },
  475. "BaseIDUint32Info": {
  476. "description": "The base ID response data (uint32) | 基础ID信息 (uint32)",
  477. "type": "object",
  478. "properties": {
  479. "createdAt": {
  480. "description": "Create date | 创建日期",
  481. "type": "integer",
  482. "format": "int64",
  483. "x-go-name": "CreatedAt"
  484. },
  485. "id": {
  486. "description": "ID",
  487. "type": "integer",
  488. "format": "uint32",
  489. "x-go-name": "Id"
  490. },
  491. "updatedAt": {
  492. "description": "Update date | 更新日期",
  493. "type": "integer",
  494. "format": "int64",
  495. "x-go-name": "UpdatedAt"
  496. }
  497. },
  498. "x-go-package": "wechat/internal/types"
  499. },
  500. "BaseListInfo": {
  501. "description": "The basic response with data | 基础带数据信息",
  502. "type": "object",
  503. "properties": {
  504. "data": {
  505. "description": "Data | 数据",
  506. "type": "string",
  507. "x-go-name": "Data"
  508. },
  509. "total": {
  510. "description": "The total number of data | 数据总数",
  511. "type": "integer",
  512. "format": "uint64",
  513. "x-go-name": "Total"
  514. }
  515. },
  516. "x-go-package": "wechat/internal/types"
  517. },
  518. "BaseMsgResp": {
  519. "description": "The basic response without data | 基础不带数据信息",
  520. "type": "object",
  521. "properties": {
  522. "code": {
  523. "description": "Error code | 错误代码",
  524. "type": "integer",
  525. "format": "int64",
  526. "x-go-name": "Code"
  527. },
  528. "msg": {
  529. "description": "Message | 提示信息",
  530. "type": "string",
  531. "x-go-name": "Msg"
  532. }
  533. },
  534. "x-go-package": "wechat/internal/types"
  535. },
  536. "BaseUUIDInfo": {
  537. "description": "The base UUID response data | 基础UUID信息",
  538. "type": "object",
  539. "properties": {
  540. "createdAt": {
  541. "description": "Create date | 创建日期",
  542. "type": "integer",
  543. "format": "int64",
  544. "x-go-name": "CreatedAt"
  545. },
  546. "id": {
  547. "description": "ID",
  548. "type": "string",
  549. "x-go-name": "Id"
  550. },
  551. "updatedAt": {
  552. "description": "Update date | 更新日期",
  553. "type": "integer",
  554. "format": "int64",
  555. "x-go-name": "UpdatedAt"
  556. }
  557. },
  558. "x-go-package": "wechat/internal/types"
  559. },
  560. "IDInt32PathReq": {
  561. "description": "Basic ID request (int32) | 基础ID地址参数请求 (int32)",
  562. "type": "object",
  563. "required": [
  564. "Id"
  565. ],
  566. "properties": {
  567. "Id": {
  568. "description": "ID",
  569. "type": "integer",
  570. "format": "int32"
  571. }
  572. },
  573. "x-go-package": "wechat/internal/types"
  574. },
  575. "IDInt32Req": {
  576. "description": "Basic ID request (int32) | 基础ID参数请求 (int32)",
  577. "type": "object",
  578. "required": [
  579. "id"
  580. ],
  581. "properties": {
  582. "id": {
  583. "description": "ID",
  584. "type": "integer",
  585. "format": "int32",
  586. "x-go-name": "Id"
  587. }
  588. },
  589. "x-go-package": "wechat/internal/types"
  590. },
  591. "IDInt64PathReq": {
  592. "description": "Basic ID request (int64) | 基础ID地址参数请求 (int64)",
  593. "type": "object",
  594. "required": [
  595. "Id"
  596. ],
  597. "properties": {
  598. "Id": {
  599. "description": "ID",
  600. "type": "integer",
  601. "format": "int64"
  602. }
  603. },
  604. "x-go-package": "wechat/internal/types"
  605. },
  606. "IDInt64Req": {
  607. "description": "Basic ID request (int64) | 基础ID参数请求 (int64)",
  608. "type": "object",
  609. "required": [
  610. "id"
  611. ],
  612. "properties": {
  613. "id": {
  614. "description": "ID",
  615. "type": "integer",
  616. "format": "int64",
  617. "x-go-name": "Id"
  618. }
  619. },
  620. "x-go-package": "wechat/internal/types"
  621. },
  622. "IDPathReq": {
  623. "description": "Basic ID request | 基础ID地址参数请求",
  624. "type": "object",
  625. "required": [
  626. "Id"
  627. ],
  628. "properties": {
  629. "Id": {
  630. "description": "ID",
  631. "type": "integer",
  632. "format": "uint64"
  633. }
  634. },
  635. "x-go-package": "wechat/internal/types"
  636. },
  637. "IDReq": {
  638. "description": "Basic ID request | 基础ID参数请求",
  639. "type": "object",
  640. "required": [
  641. "id"
  642. ],
  643. "properties": {
  644. "id": {
  645. "description": "ID",
  646. "type": "integer",
  647. "format": "uint64",
  648. "x-go-name": "Id"
  649. }
  650. },
  651. "x-go-package": "wechat/internal/types"
  652. },
  653. "IDUint32PathReq": {
  654. "description": "Basic ID request (uint32) | 基础ID地址参数请求 (uint32)",
  655. "type": "object",
  656. "required": [
  657. "Id"
  658. ],
  659. "properties": {
  660. "Id": {
  661. "description": "ID",
  662. "type": "integer",
  663. "format": "uint32"
  664. }
  665. },
  666. "x-go-package": "wechat/internal/types"
  667. },
  668. "IDUint32Req": {
  669. "description": "Basic ID request (uint32) | 基础ID参数请求 (uint32)",
  670. "type": "object",
  671. "required": [
  672. "id"
  673. ],
  674. "properties": {
  675. "id": {
  676. "description": "ID",
  677. "type": "integer",
  678. "format": "uint32",
  679. "x-go-name": "Id"
  680. }
  681. },
  682. "x-go-package": "wechat/internal/types"
  683. },
  684. "IDsInt32Req": {
  685. "description": "Basic IDs request (int32) | 基础ID数组参数请求 (int32)",
  686. "type": "object",
  687. "required": [
  688. "ids"
  689. ],
  690. "properties": {
  691. "ids": {
  692. "description": "IDs",
  693. "type": "array",
  694. "items": {
  695. "type": "integer",
  696. "format": "int32"
  697. },
  698. "x-go-name": "Ids"
  699. }
  700. },
  701. "x-go-package": "wechat/internal/types"
  702. },
  703. "IDsInt64Req": {
  704. "description": "Basic IDs request (int64) | 基础ID数组参数请求 (int64)",
  705. "type": "object",
  706. "required": [
  707. "ids"
  708. ],
  709. "properties": {
  710. "ids": {
  711. "description": "IDs",
  712. "type": "array",
  713. "items": {
  714. "type": "integer",
  715. "format": "int64"
  716. },
  717. "x-go-name": "Ids"
  718. }
  719. },
  720. "x-go-package": "wechat/internal/types"
  721. },
  722. "IDsReq": {
  723. "description": "Basic IDs request | 基础ID数组参数请求",
  724. "type": "object",
  725. "required": [
  726. "ids"
  727. ],
  728. "properties": {
  729. "ids": {
  730. "description": "IDs",
  731. "type": "array",
  732. "items": {
  733. "type": "integer",
  734. "format": "uint64"
  735. },
  736. "x-go-name": "Ids"
  737. }
  738. },
  739. "x-go-package": "wechat/internal/types"
  740. },
  741. "IDsUint32Req": {
  742. "description": "Basic IDs request (uint32) | 基础ID数组参数请求 (uint32)",
  743. "type": "object",
  744. "required": [
  745. "ids"
  746. ],
  747. "properties": {
  748. "ids": {
  749. "description": "IDs",
  750. "type": "array",
  751. "items": {
  752. "type": "integer",
  753. "format": "uint32"
  754. },
  755. "x-go-name": "Ids"
  756. }
  757. },
  758. "x-go-package": "wechat/internal/types"
  759. },
  760. "LoginQRStatus": {
  761. "type": "object",
  762. "properties": {
  763. "qRCode": {
  764. "description": "登陆二维码",
  765. "type": "string",
  766. "x-go-name": "QRCode"
  767. },
  768. "status": {
  769. "description": "登陆二维码状态",
  770. "type": "string",
  771. "x-go-name": "Status"
  772. },
  773. "statusDesc": {
  774. "description": "登陆二维码状态描述",
  775. "type": "string",
  776. "x-go-name": "StatusDesc"
  777. }
  778. },
  779. "x-go-package": "wechat/internal/types"
  780. },
  781. "PageInfo": {
  782. "description": "The page request parameters | 列表请求参数",
  783. "type": "object",
  784. "required": [
  785. "page",
  786. "pageSize"
  787. ],
  788. "properties": {
  789. "page": {
  790. "description": "Page number | 第几页",
  791. "type": "integer",
  792. "format": "uint64",
  793. "minimum": 0,
  794. "x-go-name": "Page"
  795. },
  796. "pageSize": {
  797. "description": "Page size | 单页数据行数",
  798. "type": "integer",
  799. "format": "uint64",
  800. "maximum": 100000,
  801. "x-go-name": "PageSize"
  802. }
  803. },
  804. "x-go-package": "wechat/internal/types"
  805. },
  806. "RefreshLoginQRReq": {
  807. "description": "刷新登陆二维码请求参数",
  808. "type": "object",
  809. "properties": {
  810. "callback": {
  811. "description": "回调地址",
  812. "type": "string",
  813. "x-go-name": "Callback"
  814. },
  815. "port": {
  816. "description": "端口号",
  817. "type": "string",
  818. "x-go-name": "Port"
  819. },
  820. "serverId": {
  821. "description": "服务器id",
  822. "type": "integer",
  823. "format": "uint64",
  824. "x-go-name": "ServerId"
  825. }
  826. },
  827. "x-go-package": "wechat/internal/types"
  828. },
  829. "RefreshLoginQRResp": {
  830. "description": "刷新登陆二维码返回参数",
  831. "type": "object",
  832. "properties": {
  833. "code": {
  834. "description": "Error code | 错误代码",
  835. "type": "integer",
  836. "format": "int64",
  837. "x-go-name": "Code"
  838. },
  839. "data": {
  840. "description": "Data | 数据",
  841. "type": "string",
  842. "x-go-name": "Data",
  843. "$ref": "#/definitions/LoginQRStatus"
  844. },
  845. "msg": {
  846. "description": "Message | 提示信息",
  847. "type": "string",
  848. "x-go-name": "Msg"
  849. }
  850. },
  851. "x-go-package": "wechat/internal/types"
  852. },
  853. "ServerInfo": {
  854. "description": "The response data of server information | Server信息",
  855. "type": "object",
  856. "properties": {
  857. "adminPort": {
  858. "description": "管理端口",
  859. "type": "string",
  860. "x-go-name": "AdminPort"
  861. },
  862. "createdAt": {
  863. "description": "Create date | 创建日期",
  864. "type": "integer",
  865. "format": "int64",
  866. "x-go-name": "CreatedAt"
  867. },
  868. "id": {
  869. "description": "ID",
  870. "type": "integer",
  871. "format": "uint64",
  872. "x-go-name": "Id"
  873. },
  874. "name": {
  875. "description": "名称",
  876. "type": "string",
  877. "x-go-name": "Name"
  878. },
  879. "privateIp": {
  880. "description": "内网ip",
  881. "type": "string",
  882. "x-go-name": "PrivateIp"
  883. },
  884. "publicIp": {
  885. "description": "公网ip",
  886. "type": "string",
  887. "x-go-name": "PublicIp"
  888. },
  889. "status": {
  890. "description": "Status 1: normal 2: ban | 状态 1 正常 2 禁用",
  891. "type": "integer",
  892. "format": "uint8",
  893. "x-go-name": "Status"
  894. },
  895. "updatedAt": {
  896. "description": "Update date | 更新日期",
  897. "type": "integer",
  898. "format": "int64",
  899. "x-go-name": "UpdatedAt"
  900. }
  901. },
  902. "x-go-package": "wechat/internal/types"
  903. },
  904. "ServerInfoResp": {
  905. "description": "Server information response | Server信息返回体",
  906. "type": "object",
  907. "properties": {
  908. "code": {
  909. "description": "Error code | 错误代码",
  910. "type": "integer",
  911. "format": "int64",
  912. "x-go-name": "Code"
  913. },
  914. "data": {
  915. "description": "Data | 数据",
  916. "type": "string",
  917. "x-go-name": "Data",
  918. "$ref": "#/definitions/ServerInfo"
  919. },
  920. "msg": {
  921. "description": "Message | 提示信息",
  922. "type": "string",
  923. "x-go-name": "Msg"
  924. }
  925. },
  926. "x-go-package": "wechat/internal/types"
  927. },
  928. "ServerListInfo": {
  929. "description": "Server list data | Server列表数据",
  930. "type": "object",
  931. "properties": {
  932. "data": {
  933. "description": "The API list data | Server列表数据",
  934. "type": "array",
  935. "items": {
  936. "$ref": "#/definitions/ServerInfo"
  937. },
  938. "x-go-name": "Data"
  939. },
  940. "total": {
  941. "description": "The total number of data | 数据总数",
  942. "type": "integer",
  943. "format": "uint64",
  944. "x-go-name": "Total"
  945. }
  946. },
  947. "x-go-package": "wechat/internal/types"
  948. },
  949. "ServerListReq": {
  950. "description": "Get server list request params | Server列表请求参数",
  951. "type": "object",
  952. "required": [
  953. "page",
  954. "pageSize"
  955. ],
  956. "properties": {
  957. "name": {
  958. "description": "名称",
  959. "type": "string",
  960. "x-go-name": "Name"
  961. },
  962. "page": {
  963. "description": "Page number | 第几页",
  964. "type": "integer",
  965. "format": "uint64",
  966. "minimum": 0,
  967. "x-go-name": "Page"
  968. },
  969. "pageSize": {
  970. "description": "Page size | 单页数据行数",
  971. "type": "integer",
  972. "format": "uint64",
  973. "maximum": 100000,
  974. "x-go-name": "PageSize"
  975. },
  976. "privateIp": {
  977. "description": "内网ip",
  978. "type": "string",
  979. "x-go-name": "PrivateIp"
  980. },
  981. "publicIp": {
  982. "description": "公网ip",
  983. "type": "string",
  984. "x-go-name": "PublicIp"
  985. }
  986. },
  987. "x-go-package": "wechat/internal/types"
  988. },
  989. "ServerListResp": {
  990. "description": "The response data of server list | Server列表数据",
  991. "type": "object",
  992. "properties": {
  993. "code": {
  994. "description": "Error code | 错误代码",
  995. "type": "integer",
  996. "format": "int64",
  997. "x-go-name": "Code"
  998. },
  999. "data": {
  1000. "description": "Data | 数据",
  1001. "type": "string",
  1002. "x-go-name": "Data",
  1003. "$ref": "#/definitions/ServerListInfo"
  1004. },
  1005. "msg": {
  1006. "description": "Message | 提示信息",
  1007. "type": "string",
  1008. "x-go-name": "Msg"
  1009. }
  1010. },
  1011. "x-go-package": "wechat/internal/types"
  1012. },
  1013. "UUIDPathReq": {
  1014. "description": "Basic UUID request in path | 基础UUID地址参数请求",
  1015. "type": "object",
  1016. "required": [
  1017. "Id"
  1018. ],
  1019. "properties": {
  1020. "Id": {
  1021. "description": "ID",
  1022. "type": "string"
  1023. }
  1024. },
  1025. "x-go-package": "wechat/internal/types"
  1026. },
  1027. "UUIDReq": {
  1028. "description": "Basic UUID request | 基础UUID参数请求",
  1029. "type": "object",
  1030. "required": [
  1031. "id"
  1032. ],
  1033. "properties": {
  1034. "id": {
  1035. "description": "ID",
  1036. "type": "string",
  1037. "maxLength": 36,
  1038. "minLength": 36,
  1039. "x-go-name": "Id"
  1040. }
  1041. },
  1042. "x-go-package": "wechat/internal/types"
  1043. },
  1044. "UUIDsReq": {
  1045. "description": "Basic UUID array request | 基础UUID数组参数请求",
  1046. "type": "object",
  1047. "required": [
  1048. "ids"
  1049. ],
  1050. "properties": {
  1051. "ids": {
  1052. "description": "Ids",
  1053. "type": "array",
  1054. "items": {
  1055. "type": "string"
  1056. },
  1057. "x-go-name": "Ids"
  1058. }
  1059. },
  1060. "x-go-package": "wechat/internal/types"
  1061. },
  1062. "WxInfo": {
  1063. "description": "The response data of wx information | Wx信息",
  1064. "type": "object",
  1065. "properties": {
  1066. "account": {
  1067. "description": "微信账号",
  1068. "type": "string",
  1069. "x-go-name": "Account"
  1070. },
  1071. "callback": {
  1072. "description": "回调地址",
  1073. "type": "string",
  1074. "x-go-name": "Callback"
  1075. },
  1076. "createdAt": {
  1077. "description": "Create date | 创建日期",
  1078. "type": "integer",
  1079. "format": "int64",
  1080. "x-go-name": "CreatedAt"
  1081. },
  1082. "headBig": {
  1083. "description": "微信头像",
  1084. "type": "string",
  1085. "x-go-name": "HeadBig"
  1086. },
  1087. "id": {
  1088. "description": "ID",
  1089. "type": "integer",
  1090. "format": "uint64",
  1091. "x-go-name": "Id"
  1092. },
  1093. "nickname": {
  1094. "description": "微信昵称",
  1095. "type": "string",
  1096. "x-go-name": "Nickname"
  1097. },
  1098. "port": {
  1099. "description": "端口号",
  1100. "type": "string",
  1101. "x-go-name": "Port"
  1102. },
  1103. "processId": {
  1104. "description": "进程号",
  1105. "type": "string",
  1106. "x-go-name": "ProcessId"
  1107. },
  1108. "serverId": {
  1109. "description": "服务器id",
  1110. "type": "integer",
  1111. "format": "uint64",
  1112. "x-go-name": "ServerId"
  1113. },
  1114. "status": {
  1115. "description": "Status 1: normal 2: ban | 状态 1 正常 2 禁用",
  1116. "type": "integer",
  1117. "format": "uint8",
  1118. "x-go-name": "Status"
  1119. },
  1120. "tel": {
  1121. "description": "手机号",
  1122. "type": "string",
  1123. "x-go-name": "Tel"
  1124. },
  1125. "updatedAt": {
  1126. "description": "Update date | 更新日期",
  1127. "type": "integer",
  1128. "format": "int64",
  1129. "x-go-name": "UpdatedAt"
  1130. },
  1131. "wxid": {
  1132. "description": "微信id",
  1133. "type": "string",
  1134. "x-go-name": "Wxid"
  1135. }
  1136. },
  1137. "x-go-package": "wechat/internal/types"
  1138. },
  1139. "WxInfoResp": {
  1140. "description": "Wx information response | Wx信息返回体",
  1141. "type": "object",
  1142. "properties": {
  1143. "code": {
  1144. "description": "Error code | 错误代码",
  1145. "type": "integer",
  1146. "format": "int64",
  1147. "x-go-name": "Code"
  1148. },
  1149. "data": {
  1150. "description": "Data | 数据",
  1151. "type": "string",
  1152. "x-go-name": "Data",
  1153. "$ref": "#/definitions/WxInfo"
  1154. },
  1155. "msg": {
  1156. "description": "Message | 提示信息",
  1157. "type": "string",
  1158. "x-go-name": "Msg"
  1159. }
  1160. },
  1161. "x-go-package": "wechat/internal/types"
  1162. },
  1163. "WxListInfo": {
  1164. "description": "Wx list data | Wx列表数据",
  1165. "type": "object",
  1166. "properties": {
  1167. "data": {
  1168. "description": "The API list data | Wx列表数据",
  1169. "type": "array",
  1170. "items": {
  1171. "$ref": "#/definitions/WxInfo"
  1172. },
  1173. "x-go-name": "Data"
  1174. },
  1175. "total": {
  1176. "description": "The total number of data | 数据总数",
  1177. "type": "integer",
  1178. "format": "uint64",
  1179. "x-go-name": "Total"
  1180. }
  1181. },
  1182. "x-go-package": "wechat/internal/types"
  1183. },
  1184. "WxListReq": {
  1185. "description": "Get wx list request params | Wx列表请求参数",
  1186. "type": "object",
  1187. "required": [
  1188. "page",
  1189. "pageSize"
  1190. ],
  1191. "properties": {
  1192. "callback": {
  1193. "description": "回调地址",
  1194. "type": "string",
  1195. "x-go-name": "Callback"
  1196. },
  1197. "page": {
  1198. "description": "Page number | 第几页",
  1199. "type": "integer",
  1200. "format": "uint64",
  1201. "minimum": 0,
  1202. "x-go-name": "Page"
  1203. },
  1204. "pageSize": {
  1205. "description": "Page size | 单页数据行数",
  1206. "type": "integer",
  1207. "format": "uint64",
  1208. "maximum": 100000,
  1209. "x-go-name": "PageSize"
  1210. },
  1211. "port": {
  1212. "description": "端口号",
  1213. "type": "string",
  1214. "x-go-name": "Port"
  1215. },
  1216. "processId": {
  1217. "description": "进程号",
  1218. "type": "string",
  1219. "x-go-name": "ProcessId"
  1220. }
  1221. },
  1222. "x-go-package": "wechat/internal/types"
  1223. },
  1224. "WxListResp": {
  1225. "description": "The response data of wx list | Wx列表数据",
  1226. "type": "object",
  1227. "properties": {
  1228. "code": {
  1229. "description": "Error code | 错误代码",
  1230. "type": "integer",
  1231. "format": "int64",
  1232. "x-go-name": "Code"
  1233. },
  1234. "data": {
  1235. "description": "Data | 数据",
  1236. "type": "string",
  1237. "x-go-name": "Data",
  1238. "$ref": "#/definitions/WxListInfo"
  1239. },
  1240. "msg": {
  1241. "description": "Message | 提示信息",
  1242. "type": "string",
  1243. "x-go-name": "Msg"
  1244. }
  1245. },
  1246. "x-go-package": "wechat/internal/types"
  1247. }
  1248. },
  1249. "securityDefinitions": {
  1250. "Token": {
  1251. "type": "apiKey",
  1252. "name": "Authorization",
  1253. "in": "header"
  1254. }
  1255. },
  1256. "security": [
  1257. {
  1258. "Token": [
  1259. "[]"
  1260. ]
  1261. }
  1262. ]
  1263. }