广告平台(站长下代理使用)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1736 regels
56 KiB

  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "渠道代理后台接口",
  5. "title": "广告联盟-渠道代理平台",
  6. "termsOfService": "http://swagger.io/terms/",
  7. "contact": {
  8. "name": "dengbiao",
  9. "url": "http://www.swagger.io/support",
  10. "email": "1239118001@qq.com"
  11. },
  12. "license": {
  13. "name": "Apache 2.0",
  14. "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
  15. },
  16. "version": "1.0"
  17. },
  18. "host": "localhost:1003 or advertisement.dengbiao.top",
  19. "paths": {
  20. "/api/account/base": {
  21. "get": {
  22. "description": "账号信息",
  23. "consumes": [
  24. "application/json"
  25. ],
  26. "produces": [
  27. "application/json"
  28. ],
  29. "tags": [
  30. "账号中心------嘉俊"
  31. ],
  32. "summary": "账号信息",
  33. "parameters": [
  34. {
  35. "type": "string",
  36. "description": "验证参数Bearer和token空格拼接",
  37. "name": "Authorization",
  38. "in": "header",
  39. "required": true
  40. }
  41. ],
  42. "responses": {
  43. "200": {
  44. "description": "具体看返回内容",
  45. "schema": {
  46. "$ref": "#/definitions/md.AccountBase"
  47. }
  48. },
  49. "400": {
  50. "description": "具体错误",
  51. "schema": {
  52. "$ref": "#/definitions/md.Response"
  53. }
  54. }
  55. }
  56. }
  57. },
  58. "/api/account/qualification/bank/save": {
  59. "post": {
  60. "description": "资质认证-银行资质保存",
  61. "consumes": [
  62. "application/json"
  63. ],
  64. "produces": [
  65. "application/json"
  66. ],
  67. "tags": [
  68. "资质认证------嘉俊"
  69. ],
  70. "summary": "银行资质保存",
  71. "parameters": [
  72. {
  73. "type": "string",
  74. "description": "验证参数Bearer和token空格拼接",
  75. "name": "Authorization",
  76. "in": "header",
  77. "required": true
  78. },
  79. {
  80. "description": "请求参数",
  81. "name": "args",
  82. "in": "body",
  83. "required": true,
  84. "schema": {
  85. "$ref": "#/definitions/md.AgentBankInfo"
  86. }
  87. }
  88. ],
  89. "responses": {
  90. "200": {
  91. "description": "具体看返回内容",
  92. "schema": {
  93. "type": "string"
  94. }
  95. },
  96. "400": {
  97. "description": "具体错误",
  98. "schema": {
  99. "$ref": "#/definitions/md.Response"
  100. }
  101. }
  102. }
  103. }
  104. },
  105. "/api/account/qualification/contact/save": {
  106. "post": {
  107. "description": "资质认证-联系方式保存",
  108. "consumes": [
  109. "application/json"
  110. ],
  111. "produces": [
  112. "application/json"
  113. ],
  114. "tags": [
  115. "资质认证------嘉俊"
  116. ],
  117. "summary": "联系方式保存",
  118. "parameters": [
  119. {
  120. "type": "string",
  121. "description": "验证参数Bearer和token空格拼接",
  122. "name": "Authorization",
  123. "in": "header",
  124. "required": true
  125. },
  126. {
  127. "description": "请求参数",
  128. "name": "args",
  129. "in": "body",
  130. "required": true,
  131. "schema": {
  132. "$ref": "#/definitions/md.AgentContactInfo"
  133. }
  134. }
  135. ],
  136. "responses": {
  137. "200": {
  138. "description": "具体看返回内容",
  139. "schema": {
  140. "type": "string"
  141. }
  142. },
  143. "400": {
  144. "description": "具体错误",
  145. "schema": {
  146. "$ref": "#/definitions/md.Response"
  147. }
  148. }
  149. }
  150. }
  151. },
  152. "/api/account/qualification/enterprise/save": {
  153. "post": {
  154. "description": "资质认证-企业认证保存",
  155. "consumes": [
  156. "application/json"
  157. ],
  158. "produces": [
  159. "application/json"
  160. ],
  161. "tags": [
  162. "资质认证------嘉俊"
  163. ],
  164. "summary": "企业认证保存",
  165. "parameters": [
  166. {
  167. "type": "string",
  168. "description": "验证参数Bearer和token空格拼接",
  169. "name": "Authorization",
  170. "in": "header",
  171. "required": true
  172. },
  173. {
  174. "description": "请求参数",
  175. "name": "args",
  176. "in": "body",
  177. "required": true,
  178. "schema": {
  179. "$ref": "#/definitions/md.AgentList"
  180. }
  181. }
  182. ],
  183. "responses": {
  184. "200": {
  185. "description": "具体看返回内容",
  186. "schema": {
  187. "type": "string"
  188. }
  189. },
  190. "400": {
  191. "description": "具体错误",
  192. "schema": {
  193. "$ref": "#/definitions/md.Response"
  194. }
  195. }
  196. }
  197. }
  198. },
  199. "/api/account/qualification/info": {
  200. "get": {
  201. "description": "资质认证-基本信息",
  202. "consumes": [
  203. "application/json"
  204. ],
  205. "produces": [
  206. "application/json"
  207. ],
  208. "tags": [
  209. "资质认证------嘉俊"
  210. ],
  211. "summary": "基本信息",
  212. "parameters": [
  213. {
  214. "type": "string",
  215. "description": "验证参数Bearer和token空格拼接",
  216. "name": "Authorization",
  217. "in": "header",
  218. "required": true
  219. }
  220. ],
  221. "responses": {
  222. "200": {
  223. "description": "具体看返回内容",
  224. "schema": {
  225. "type": "string"
  226. }
  227. },
  228. "400": {
  229. "description": "具体错误",
  230. "schema": {
  231. "$ref": "#/definitions/md.Response"
  232. }
  233. }
  234. }
  235. }
  236. },
  237. "/api/account/qualification/select/base": {
  238. "get": {
  239. "description": "资质认证-认证下拉框选择内容",
  240. "consumes": [
  241. "application/json"
  242. ],
  243. "produces": [
  244. "application/json"
  245. ],
  246. "tags": [
  247. "资质认证------嘉俊"
  248. ],
  249. "summary": "认证下拉框选择内容",
  250. "parameters": [
  251. {
  252. "type": "string",
  253. "description": "验证参数Bearer和token空格拼接",
  254. "name": "Authorization",
  255. "in": "header",
  256. "required": true
  257. }
  258. ],
  259. "responses": {
  260. "200": {
  261. "description": "具体看返回内容",
  262. "schema": {
  263. "type": "string"
  264. }
  265. },
  266. "400": {
  267. "description": "具体错误",
  268. "schema": {
  269. "$ref": "#/definitions/md.Response"
  270. }
  271. }
  272. }
  273. }
  274. },
  275. "/api/account/update/password": {
  276. "post": {
  277. "description": "资质认证-企业认证保存",
  278. "consumes": [
  279. "application/json"
  280. ],
  281. "produces": [
  282. "application/json"
  283. ],
  284. "tags": [
  285. "账号中心------嘉俊"
  286. ],
  287. "summary": "企业认证保存",
  288. "parameters": [
  289. {
  290. "type": "string",
  291. "description": "验证参数Bearer和token空格拼接",
  292. "name": "Authorization",
  293. "in": "header",
  294. "required": true
  295. },
  296. {
  297. "description": "请求参数",
  298. "name": "args",
  299. "in": "body",
  300. "required": true,
  301. "schema": {
  302. "$ref": "#/definitions/md.AccountUpdatePasswordReq"
  303. }
  304. }
  305. ],
  306. "responses": {
  307. "200": {
  308. "description": "具体看返回内容",
  309. "schema": {
  310. "type": "string"
  311. }
  312. },
  313. "400": {
  314. "description": "具体错误",
  315. "schema": {
  316. "$ref": "#/definitions/md.Response"
  317. }
  318. }
  319. }
  320. }
  321. },
  322. "/api/login": {
  323. "post": {
  324. "description": "登入",
  325. "consumes": [
  326. "application/json"
  327. ],
  328. "produces": [
  329. "application/json"
  330. ],
  331. "tags": [
  332. "ADMIN"
  333. ],
  334. "summary": "登陆",
  335. "parameters": [
  336. {
  337. "description": "用户名密码",
  338. "name": "req",
  339. "in": "body",
  340. "required": true,
  341. "schema": {
  342. "$ref": "#/definitions/md.LoginReq"
  343. }
  344. }
  345. ],
  346. "responses": {
  347. "200": {
  348. "description": "token",
  349. "schema": {
  350. "$ref": "#/definitions/md.LoginResponse"
  351. }
  352. },
  353. "400": {
  354. "description": "具体错误",
  355. "schema": {
  356. "$ref": "#/definitions/md.Response"
  357. }
  358. }
  359. }
  360. }
  361. },
  362. "/api/login/phone": {
  363. "post": {
  364. "description": "手机号登入",
  365. "consumes": [
  366. "application/json"
  367. ],
  368. "produces": [
  369. "application/json"
  370. ],
  371. "tags": [
  372. "ADMIN"
  373. ],
  374. "summary": "手机号登陆",
  375. "parameters": [
  376. {
  377. "description": "用户名、验证码",
  378. "name": "req",
  379. "in": "body",
  380. "required": true,
  381. "schema": {
  382. "$ref": "#/definitions/md.LoginPhoneReq"
  383. }
  384. }
  385. ],
  386. "responses": {
  387. "200": {
  388. "description": "token",
  389. "schema": {
  390. "$ref": "#/definitions/md.LoginResponse"
  391. }
  392. },
  393. "400": {
  394. "description": "具体错误",
  395. "schema": {
  396. "$ref": "#/definitions/md.Response"
  397. }
  398. }
  399. }
  400. }
  401. },
  402. "/api/login/register": {
  403. "post": {
  404. "description": "手机号注册",
  405. "consumes": [
  406. "application/json"
  407. ],
  408. "produces": [
  409. "application/json"
  410. ],
  411. "tags": [
  412. "ADMIN"
  413. ],
  414. "summary": "手机号注册",
  415. "parameters": [
  416. {
  417. "description": "用户名、验证码",
  418. "name": "req",
  419. "in": "body",
  420. "required": true,
  421. "schema": {
  422. "$ref": "#/definitions/md.LoginReq"
  423. }
  424. }
  425. ],
  426. "responses": {
  427. "200": {
  428. "description": "token",
  429. "schema": {
  430. "$ref": "#/definitions/md.LoginResponse"
  431. }
  432. },
  433. "400": {
  434. "description": "具体错误",
  435. "schema": {
  436. "$ref": "#/definitions/md.Response"
  437. }
  438. }
  439. }
  440. }
  441. },
  442. "/api/medium/list": {
  443. "post": {
  444. "description": "媒体中心-媒体列表",
  445. "consumes": [
  446. "application/json"
  447. ],
  448. "produces": [
  449. "application/json"
  450. ],
  451. "tags": [
  452. "媒体中心------嘉俊"
  453. ],
  454. "summary": "媒体列表",
  455. "parameters": [
  456. {
  457. "type": "string",
  458. "description": "验证参数Bearer和token空格拼接",
  459. "name": "Authorization",
  460. "in": "header",
  461. "required": true
  462. }
  463. ],
  464. "responses": {
  465. "200": {
  466. "description": "具体看返回内容 data里面的数据",
  467. "schema": {
  468. "$ref": "#/definitions/md.MediumListRes"
  469. }
  470. },
  471. "400": {
  472. "description": "具体错误",
  473. "schema": {
  474. "$ref": "#/definitions/md.Response"
  475. }
  476. }
  477. }
  478. }
  479. },
  480. "/api/qiniuyun/upload": {
  481. "post": {
  482. "description": "七牛云-七牛云上传",
  483. "consumes": [
  484. "application/json"
  485. ],
  486. "produces": [
  487. "application/json"
  488. ],
  489. "tags": [
  490. "七牛云"
  491. ],
  492. "summary": "七牛云上传",
  493. "parameters": [
  494. {
  495. "type": "string",
  496. "description": "验证参数Bearer和token空格拼接",
  497. "name": "Authorization",
  498. "in": "header"
  499. },
  500. {
  501. "description": "请求参数",
  502. "name": "args",
  503. "in": "body",
  504. "required": true,
  505. "schema": {
  506. "$ref": "#/definitions/md.ImgReqUpload"
  507. }
  508. }
  509. ],
  510. "responses": {
  511. "200": {
  512. "description": "success",
  513. "schema": {
  514. "type": "string"
  515. }
  516. },
  517. "400": {
  518. "description": "具体错误",
  519. "schema": {
  520. "$ref": "#/definitions/md.Response"
  521. }
  522. }
  523. }
  524. }
  525. },
  526. "/api/role/addAdmin": {
  527. "post": {
  528. "description": "新增管理员",
  529. "consumes": [
  530. "application/json"
  531. ],
  532. "produces": [
  533. "application/json"
  534. ],
  535. "tags": [
  536. "ADMIN-权限管理"
  537. ],
  538. "summary": "新增管理员",
  539. "parameters": [
  540. {
  541. "type": "string",
  542. "description": "验证参数Bearer和token空格拼接",
  543. "name": "Authorization",
  544. "in": "header",
  545. "required": true
  546. },
  547. {
  548. "description": "请求参数",
  549. "name": "args",
  550. "in": "body",
  551. "required": true,
  552. "schema": {
  553. "$ref": "#/definitions/md.AddAdminReq"
  554. }
  555. }
  556. ],
  557. "responses": {
  558. "200": {
  559. "description": "success",
  560. "schema": {
  561. "type": "string"
  562. }
  563. },
  564. "400": {
  565. "description": "具体错误",
  566. "schema": {
  567. "$ref": "#/definitions/md.Response"
  568. }
  569. }
  570. }
  571. }
  572. },
  573. "/api/role/addRole": {
  574. "post": {
  575. "description": "添加角色",
  576. "consumes": [
  577. "application/json"
  578. ],
  579. "produces": [
  580. "application/json"
  581. ],
  582. "tags": [
  583. "ADMIN-权限管理"
  584. ],
  585. "summary": "添加角色",
  586. "parameters": [
  587. {
  588. "type": "string",
  589. "description": "验证参数Bearer和token空格拼接",
  590. "name": "Authorization",
  591. "in": "header",
  592. "required": true
  593. },
  594. {
  595. "description": "请求参数",
  596. "name": "args",
  597. "in": "body",
  598. "required": true,
  599. "schema": {
  600. "$ref": "#/definitions/md.AddRoleReq"
  601. }
  602. }
  603. ],
  604. "responses": {
  605. "200": {
  606. "description": "success",
  607. "schema": {
  608. "type": "string"
  609. }
  610. },
  611. "400": {
  612. "description": "具体错误",
  613. "schema": {
  614. "$ref": "#/definitions/md.Response"
  615. }
  616. }
  617. }
  618. }
  619. },
  620. "/api/role/adminInfo": {
  621. "get": {
  622. "description": "管理员信息",
  623. "consumes": [
  624. "application/json"
  625. ],
  626. "produces": [
  627. "application/json"
  628. ],
  629. "tags": [
  630. "ADMIN-权限管理"
  631. ],
  632. "summary": "管理员信息",
  633. "parameters": [
  634. {
  635. "type": "string",
  636. "description": "验证参数Bearer和token空格拼接",
  637. "name": "Authorization",
  638. "in": "header",
  639. "required": true
  640. },
  641. {
  642. "type": "string",
  643. "description": "管理员id",
  644. "name": "adm_id",
  645. "in": "query",
  646. "required": true
  647. }
  648. ],
  649. "responses": {
  650. "200": {
  651. "description": "具体看返回内容",
  652. "schema": {
  653. "type": "string"
  654. }
  655. },
  656. "400": {
  657. "description": "具体错误",
  658. "schema": {
  659. "$ref": "#/definitions/md.Response"
  660. }
  661. }
  662. }
  663. }
  664. },
  665. "/api/role/adminList": {
  666. "post": {
  667. "description": "管理员列表",
  668. "consumes": [
  669. "application/json"
  670. ],
  671. "produces": [
  672. "application/json"
  673. ],
  674. "tags": [
  675. "ADMIN-权限管理"
  676. ],
  677. "summary": "管理员列表",
  678. "parameters": [
  679. {
  680. "type": "string",
  681. "description": "验证参数Bearer和token空格拼接",
  682. "name": "Authorization",
  683. "in": "header",
  684. "required": true
  685. },
  686. {
  687. "description": "请求参数",
  688. "name": "args",
  689. "in": "body",
  690. "required": true,
  691. "schema": {
  692. "$ref": "#/definitions/md.AdminListReq"
  693. }
  694. }
  695. ],
  696. "responses": {
  697. "200": {
  698. "description": "具体看返回内容",
  699. "schema": {
  700. "type": "string"
  701. }
  702. },
  703. "400": {
  704. "description": "具体错误",
  705. "schema": {
  706. "$ref": "#/definitions/md.Response"
  707. }
  708. }
  709. }
  710. }
  711. },
  712. "/api/role/bindAdminRole/": {
  713. "post": {
  714. "description": "管理员绑定角色",
  715. "consumes": [
  716. "application/json"
  717. ],
  718. "produces": [
  719. "application/json"
  720. ],
  721. "tags": [
  722. "ADMIN-权限管理"
  723. ],
  724. "summary": "管理员绑定角色",
  725. "parameters": [
  726. {
  727. "type": "string",
  728. "description": "验证参数Bearer和token空格拼接",
  729. "name": "Authorization",
  730. "in": "header",
  731. "required": true
  732. },
  733. {
  734. "description": "请求参数",
  735. "name": "args",
  736. "in": "body",
  737. "required": true,
  738. "schema": {
  739. "$ref": "#/definitions/md.BindAdminRoleReq"
  740. }
  741. }
  742. ],
  743. "responses": {
  744. "200": {
  745. "description": "success",
  746. "schema": {
  747. "type": "string"
  748. }
  749. },
  750. "400": {
  751. "description": "具体错误",
  752. "schema": {
  753. "$ref": "#/definitions/md.Response"
  754. }
  755. }
  756. }
  757. }
  758. },
  759. "/api/role/deleteAdmin/{$adm_id}": {
  760. "delete": {
  761. "description": "删除管理员",
  762. "consumes": [
  763. "application/json"
  764. ],
  765. "produces": [
  766. "application/json"
  767. ],
  768. "tags": [
  769. "ADMIN-权限管理"
  770. ],
  771. "summary": "删除管理员",
  772. "parameters": [
  773. {
  774. "type": "string",
  775. "description": "验证参数Bearer和token空格拼接",
  776. "name": "Authorization",
  777. "in": "header",
  778. "required": true
  779. }
  780. ],
  781. "responses": {
  782. "200": {
  783. "description": "success",
  784. "schema": {
  785. "type": "string"
  786. }
  787. },
  788. "400": {
  789. "description": "具体错误",
  790. "schema": {
  791. "$ref": "#/definitions/md.Response"
  792. }
  793. }
  794. }
  795. }
  796. },
  797. "/api/role/deleteRole/{$id}": {
  798. "delete": {
  799. "description": "删除角色",
  800. "consumes": [
  801. "application/json"
  802. ],
  803. "produces": [
  804. "application/json"
  805. ],
  806. "tags": [
  807. "ADMIN-权限管理"
  808. ],
  809. "summary": "删除角色",
  810. "parameters": [
  811. {
  812. "type": "string",
  813. "description": "验证参数Bearer和token空格拼接",
  814. "name": "Authorization",
  815. "in": "header",
  816. "required": true
  817. },
  818. {
  819. "description": "请求参数",
  820. "name": "args",
  821. "in": "body",
  822. "required": true,
  823. "schema": {
  824. "$ref": "#/definitions/md.UpdateRoleStateReq"
  825. }
  826. }
  827. ],
  828. "responses": {
  829. "200": {
  830. "description": "success",
  831. "schema": {
  832. "type": "string"
  833. }
  834. },
  835. "400": {
  836. "description": "具体错误",
  837. "schema": {
  838. "$ref": "#/definitions/md.Response"
  839. }
  840. }
  841. }
  842. }
  843. },
  844. "/api/role/permissionGroupList": {
  845. "get": {
  846. "description": "权限组列表",
  847. "consumes": [
  848. "application/json"
  849. ],
  850. "produces": [
  851. "application/json"
  852. ],
  853. "tags": [
  854. "ADMIN-权限管理"
  855. ],
  856. "summary": "权限组列表",
  857. "parameters": [
  858. {
  859. "type": "string",
  860. "description": "验证参数Bearer和token空格拼接",
  861. "name": "Authorization",
  862. "in": "header",
  863. "required": true
  864. },
  865. {
  866. "type": "string",
  867. "description": "管理员id",
  868. "name": "adm_id",
  869. "in": "query",
  870. "required": true
  871. }
  872. ],
  873. "responses": {
  874. "200": {
  875. "description": "具体看返回内容",
  876. "schema": {
  877. "type": "string"
  878. }
  879. },
  880. "400": {
  881. "description": "具体错误",
  882. "schema": {
  883. "$ref": "#/definitions/md.Response"
  884. }
  885. }
  886. }
  887. }
  888. },
  889. "/api/role/roleBindPermissionGroup": {
  890. "post": {
  891. "description": "角色绑定权限组",
  892. "consumes": [
  893. "application/json"
  894. ],
  895. "produces": [
  896. "application/json"
  897. ],
  898. "tags": [
  899. "ADMIN-权限管理"
  900. ],
  901. "summary": "角色绑定权限组",
  902. "parameters": [
  903. {
  904. "type": "string",
  905. "description": "验证参数Bearer和token空格拼接",
  906. "name": "Authorization",
  907. "in": "header",
  908. "required": true
  909. },
  910. {
  911. "description": "请求参数",
  912. "name": "args",
  913. "in": "body",
  914. "required": true,
  915. "schema": {
  916. "$ref": "#/definitions/md.RoleBindPermissionGroupReq"
  917. }
  918. }
  919. ],
  920. "responses": {
  921. "200": {
  922. "description": "success",
  923. "schema": {
  924. "type": "string"
  925. }
  926. },
  927. "400": {
  928. "description": "具体错误",
  929. "schema": {
  930. "$ref": "#/definitions/md.Response"
  931. }
  932. }
  933. }
  934. }
  935. },
  936. "/api/role/roleList": {
  937. "get": {
  938. "description": "角色列表",
  939. "consumes": [
  940. "application/json"
  941. ],
  942. "produces": [
  943. "application/json"
  944. ],
  945. "tags": [
  946. "ADMIN-权限管理"
  947. ],
  948. "summary": "角色列表",
  949. "parameters": [
  950. {
  951. "type": "string",
  952. "description": "验证参数Bearer和token空格拼接",
  953. "name": "Authorization",
  954. "in": "header",
  955. "required": true
  956. }
  957. ],
  958. "responses": {
  959. "200": {
  960. "description": "具体看返回内容",
  961. "schema": {
  962. "type": "string"
  963. }
  964. },
  965. "400": {
  966. "description": "具体错误",
  967. "schema": {
  968. "$ref": "#/definitions/md.Response"
  969. }
  970. }
  971. }
  972. }
  973. },
  974. "/api/role/updateAdmin": {
  975. "post": {
  976. "description": "修改管理员信息",
  977. "consumes": [
  978. "application/json"
  979. ],
  980. "produces": [
  981. "application/json"
  982. ],
  983. "tags": [
  984. "ADMIN-权限管理"
  985. ],
  986. "summary": "修改管理员信息",
  987. "parameters": [
  988. {
  989. "type": "string",
  990. "description": "验证参数Bearer和token空格拼接",
  991. "name": "Authorization",
  992. "in": "header",
  993. "required": true
  994. },
  995. {
  996. "description": "请求参数",
  997. "name": "args",
  998. "in": "body",
  999. "required": true,
  1000. "schema": {
  1001. "$ref": "#/definitions/md.UpdateAdminReq"
  1002. }
  1003. }
  1004. ],
  1005. "responses": {
  1006. "200": {
  1007. "description": "success",
  1008. "schema": {
  1009. "type": "string"
  1010. }
  1011. },
  1012. "400": {
  1013. "description": "具体错误",
  1014. "schema": {
  1015. "$ref": "#/definitions/md.Response"
  1016. }
  1017. }
  1018. }
  1019. }
  1020. },
  1021. "/api/role/updateAdminState": {
  1022. "post": {
  1023. "description": "修改管理员状态",
  1024. "consumes": [
  1025. "application/json"
  1026. ],
  1027. "produces": [
  1028. "application/json"
  1029. ],
  1030. "tags": [
  1031. "ADMIN-权限管理"
  1032. ],
  1033. "summary": "修改管理员状态",
  1034. "parameters": [
  1035. {
  1036. "type": "string",
  1037. "description": "验证参数Bearer和token空格拼接",
  1038. "name": "Authorization",
  1039. "in": "header",
  1040. "required": true
  1041. },
  1042. {
  1043. "description": "请求参数",
  1044. "name": "args",
  1045. "in": "body",
  1046. "required": true,
  1047. "schema": {
  1048. "$ref": "#/definitions/md.UpdateAdminStateReq"
  1049. }
  1050. }
  1051. ],
  1052. "responses": {
  1053. "200": {
  1054. "description": "success",
  1055. "schema": {
  1056. "type": "string"
  1057. }
  1058. },
  1059. "400": {
  1060. "description": "具体错误",
  1061. "schema": {
  1062. "$ref": "#/definitions/md.Response"
  1063. }
  1064. }
  1065. }
  1066. }
  1067. },
  1068. "/api/role/updateRole": {
  1069. "post": {
  1070. "description": "修改角色",
  1071. "consumes": [
  1072. "application/json"
  1073. ],
  1074. "produces": [
  1075. "application/json"
  1076. ],
  1077. "tags": [
  1078. "ADMIN-权限管理"
  1079. ],
  1080. "summary": "修改角色",
  1081. "parameters": [
  1082. {
  1083. "type": "string",
  1084. "description": "验证参数Bearer和token空格拼接",
  1085. "name": "Authorization",
  1086. "in": "header",
  1087. "required": true
  1088. },
  1089. {
  1090. "description": "请求参数",
  1091. "name": "args",
  1092. "in": "body",
  1093. "required": true,
  1094. "schema": {
  1095. "$ref": "#/definitions/md.UpdateRoleReq"
  1096. }
  1097. }
  1098. ],
  1099. "responses": {
  1100. "200": {
  1101. "description": "success",
  1102. "schema": {
  1103. "type": "string"
  1104. }
  1105. },
  1106. "400": {
  1107. "description": "具体错误",
  1108. "schema": {
  1109. "$ref": "#/definitions/md.Response"
  1110. }
  1111. }
  1112. }
  1113. }
  1114. },
  1115. "/api/role/updateRoleState": {
  1116. "post": {
  1117. "description": "修改角色状态",
  1118. "consumes": [
  1119. "application/json"
  1120. ],
  1121. "produces": [
  1122. "application/json"
  1123. ],
  1124. "tags": [
  1125. "ADMIN-权限管理"
  1126. ],
  1127. "summary": "修改角色状态",
  1128. "parameters": [
  1129. {
  1130. "type": "string",
  1131. "description": "验证参数Bearer和token空格拼接",
  1132. "name": "Authorization",
  1133. "in": "header",
  1134. "required": true
  1135. },
  1136. {
  1137. "description": "请求参数",
  1138. "name": "args",
  1139. "in": "body",
  1140. "required": true,
  1141. "schema": {
  1142. "$ref": "#/definitions/md.UpdateRoleStateReq"
  1143. }
  1144. }
  1145. ],
  1146. "responses": {
  1147. "200": {
  1148. "description": "success",
  1149. "schema": {
  1150. "type": "string"
  1151. }
  1152. },
  1153. "400": {
  1154. "description": "具体错误",
  1155. "schema": {
  1156. "$ref": "#/definitions/md.Response"
  1157. }
  1158. }
  1159. }
  1160. }
  1161. },
  1162. "/api/sms": {
  1163. "post": {
  1164. "description": "短信-短信发送",
  1165. "consumes": [
  1166. "application/json"
  1167. ],
  1168. "produces": [
  1169. "application/json"
  1170. ],
  1171. "tags": [
  1172. "短信"
  1173. ],
  1174. "summary": "短信发送",
  1175. "parameters": [
  1176. {
  1177. "type": "string",
  1178. "description": "验证参数Bearer和token空格拼接",
  1179. "name": "Authorization",
  1180. "in": "header"
  1181. },
  1182. {
  1183. "description": "请求参数",
  1184. "name": "args",
  1185. "in": "body",
  1186. "required": true,
  1187. "schema": {
  1188. "$ref": "#/definitions/md.SmsReq"
  1189. }
  1190. }
  1191. ],
  1192. "responses": {
  1193. "200": {
  1194. "description": "success",
  1195. "schema": {
  1196. "type": "string"
  1197. }
  1198. },
  1199. "400": {
  1200. "description": "具体错误",
  1201. "schema": {
  1202. "$ref": "#/definitions/md.Response"
  1203. }
  1204. }
  1205. }
  1206. }
  1207. }
  1208. },
  1209. "definitions": {
  1210. "md.AccountBase": {
  1211. "type": "object",
  1212. "properties": {
  1213. "admin_phone": {
  1214. "type": "string",
  1215. "example": "管理员手机号"
  1216. },
  1217. "agent_id": {
  1218. "type": "string",
  1219. "example": "账户ID"
  1220. },
  1221. "company_abbreviation": {
  1222. "type": "string",
  1223. "example": "公司简称"
  1224. },
  1225. "company_name": {
  1226. "type": "string",
  1227. "example": "公司名称"
  1228. },
  1229. "contact_address": {
  1230. "type": "string",
  1231. "example": "联系地址"
  1232. },
  1233. "contact_email": {
  1234. "type": "string",
  1235. "example": "邮箱"
  1236. },
  1237. "contact_name": {
  1238. "type": "string",
  1239. "example": "联系人"
  1240. },
  1241. "contact_phone": {
  1242. "type": "string",
  1243. "example": "联系电话"
  1244. },
  1245. "country_region": {
  1246. "type": "string",
  1247. "example": "国家地区"
  1248. },
  1249. "currency_conf": {
  1250. "type": "string",
  1251. "example": "结算币种"
  1252. },
  1253. "nickname": {
  1254. "type": "string",
  1255. "example": "昵称"
  1256. }
  1257. }
  1258. },
  1259. "md.AccountUpdatePasswordReq": {
  1260. "type": "object",
  1261. "properties": {
  1262. "captcha": {
  1263. "type": "string",
  1264. "example": "验证码"
  1265. },
  1266. "password": {
  1267. "type": "string",
  1268. "example": "登录密码"
  1269. }
  1270. }
  1271. },
  1272. "md.AddAdminReq": {
  1273. "type": "object",
  1274. "required": [
  1275. "password",
  1276. "username"
  1277. ],
  1278. "properties": {
  1279. "memo": {
  1280. "type": "string"
  1281. },
  1282. "password": {
  1283. "type": "string"
  1284. },
  1285. "username": {
  1286. "type": "string"
  1287. }
  1288. }
  1289. },
  1290. "md.AddRoleReq": {
  1291. "type": "object",
  1292. "required": [
  1293. "memo",
  1294. "name"
  1295. ],
  1296. "properties": {
  1297. "memo": {
  1298. "type": "string"
  1299. },
  1300. "name": {
  1301. "type": "string"
  1302. }
  1303. }
  1304. },
  1305. "md.AdminListReq": {
  1306. "type": "object",
  1307. "properties": {
  1308. "limit": {
  1309. "type": "integer"
  1310. },
  1311. "page": {
  1312. "type": "integer"
  1313. },
  1314. "state": {
  1315. "type": "integer"
  1316. },
  1317. "username": {
  1318. "type": "string"
  1319. }
  1320. }
  1321. },
  1322. "md.AgentBankInfo": {
  1323. "type": "object",
  1324. "properties": {
  1325. "agent_id": {
  1326. "type": "string"
  1327. },
  1328. "bank": {
  1329. "type": "string"
  1330. },
  1331. "bank_branch": {
  1332. "type": "string"
  1333. },
  1334. "bank_no": {
  1335. "type": "string"
  1336. },
  1337. "currency_conf": {
  1338. "type": "string"
  1339. },
  1340. "id": {
  1341. "type": "string"
  1342. },
  1343. "licence": {
  1344. "type": "string"
  1345. },
  1346. "memo": {
  1347. "type": "string"
  1348. },
  1349. "state": {
  1350. "type": "string"
  1351. },
  1352. "uuid": {
  1353. "type": "string"
  1354. }
  1355. }
  1356. },
  1357. "md.AgentContactInfo": {
  1358. "type": "object",
  1359. "properties": {
  1360. "address": {
  1361. "type": "string"
  1362. },
  1363. "agent_id": {
  1364. "type": "string"
  1365. },
  1366. "email": {
  1367. "type": "string"
  1368. },
  1369. "id": {
  1370. "type": "string"
  1371. },
  1372. "memo": {
  1373. "type": "string"
  1374. },
  1375. "name": {
  1376. "type": "string"
  1377. },
  1378. "phone": {
  1379. "type": "string"
  1380. },
  1381. "state": {
  1382. "type": "string"
  1383. },
  1384. "uuid": {
  1385. "type": "string"
  1386. }
  1387. }
  1388. },
  1389. "md.AgentList": {
  1390. "type": "object",
  1391. "properties": {
  1392. "agent_id": {
  1393. "type": "string"
  1394. },
  1395. "business_license_address": {
  1396. "type": "string"
  1397. },
  1398. "business_license_img_url": {
  1399. "type": "string"
  1400. },
  1401. "certificate_first_type": {
  1402. "type": "string"
  1403. },
  1404. "certificate_type": {
  1405. "type": "string"
  1406. },
  1407. "certificate_validity": {
  1408. "type": "string"
  1409. },
  1410. "company_abbreviation": {
  1411. "type": "string"
  1412. },
  1413. "company_name": {
  1414. "type": "string"
  1415. },
  1416. "country_region": {
  1417. "type": "string"
  1418. },
  1419. "country_region_id": {
  1420. "type": "string"
  1421. },
  1422. "id": {
  1423. "type": "string"
  1424. },
  1425. "kind": {
  1426. "type": "string"
  1427. },
  1428. "legal_representative": {
  1429. "type": "string"
  1430. },
  1431. "memo": {
  1432. "type": "string"
  1433. },
  1434. "registered_address": {
  1435. "type": "string"
  1436. },
  1437. "registered_address_city_id": {
  1438. "type": "string"
  1439. },
  1440. "registered_address_country_id": {
  1441. "type": "string"
  1442. },
  1443. "registered_address_county_id": {
  1444. "type": "string"
  1445. },
  1446. "registered_address_province_id": {
  1447. "type": "string"
  1448. },
  1449. "state": {
  1450. "type": "string"
  1451. },
  1452. "unified_social_credit_code": {
  1453. "type": "string"
  1454. },
  1455. "uuid": {
  1456. "type": "string"
  1457. }
  1458. }
  1459. },
  1460. "md.BindAdminRoleReq": {
  1461. "type": "object",
  1462. "required": [
  1463. "id"
  1464. ],
  1465. "properties": {
  1466. "id": {
  1467. "type": "integer"
  1468. },
  1469. "role_ids": {
  1470. "type": "array",
  1471. "items": {
  1472. "type": "integer"
  1473. }
  1474. }
  1475. }
  1476. },
  1477. "md.ImgReqUpload": {
  1478. "type": "object",
  1479. "properties": {
  1480. "dir": {
  1481. "type": "string"
  1482. },
  1483. "file_name": {
  1484. "type": "string"
  1485. },
  1486. "file_size": {
  1487. "description": "文件大小, 单位byte",
  1488. "type": "integer"
  1489. }
  1490. }
  1491. },
  1492. "md.LoginPhoneReq": {
  1493. "type": "object",
  1494. "required": [
  1495. "captcha",
  1496. "username"
  1497. ],
  1498. "properties": {
  1499. "captcha": {
  1500. "type": "string",
  1501. "example": "验证码"
  1502. },
  1503. "username": {
  1504. "type": "string",
  1505. "example": "登录账号"
  1506. }
  1507. }
  1508. },
  1509. "md.LoginReq": {
  1510. "type": "object",
  1511. "required": [
  1512. "password",
  1513. "username"
  1514. ],
  1515. "properties": {
  1516. "code": {
  1517. "type": "string",
  1518. "example": "验证码"
  1519. },
  1520. "password": {
  1521. "type": "string",
  1522. "example": "登录密码"
  1523. },
  1524. "username": {
  1525. "type": "string",
  1526. "example": "登录账号"
  1527. }
  1528. }
  1529. },
  1530. "md.LoginResponse": {
  1531. "type": "object",
  1532. "properties": {
  1533. "token": {
  1534. "type": "string"
  1535. }
  1536. }
  1537. },
  1538. "md.MediumListData": {
  1539. "type": "object",
  1540. "properties": {
  1541. "account": {
  1542. "type": "string",
  1543. "example": "媒体账号"
  1544. },
  1545. "business_license_address": {
  1546. "type": "string",
  1547. "example": "营业执照地址"
  1548. },
  1549. "company_name": {
  1550. "type": "string",
  1551. "example": "公司名称"
  1552. },
  1553. "id": {
  1554. "type": "string",
  1555. "example": "id"
  1556. },
  1557. "legal_representative": {
  1558. "type": "string",
  1559. "example": "法定代表人"
  1560. },
  1561. "medium_id": {
  1562. "type": "string",
  1563. "example": "媒体id"
  1564. },
  1565. "memo": {
  1566. "type": "string",
  1567. "example": "备注 审核时填写的"
  1568. },
  1569. "state": {
  1570. "type": "string",
  1571. "example": "状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)"
  1572. },
  1573. "unified_social_credit_code": {
  1574. "type": "string",
  1575. "example": "统一社会信用代码"
  1576. }
  1577. }
  1578. },
  1579. "md.MediumListRes": {
  1580. "type": "object",
  1581. "properties": {
  1582. "list": {
  1583. "type": "array",
  1584. "items": {
  1585. "$ref": "#/definitions/md.MediumListData"
  1586. }
  1587. },
  1588. "state": {
  1589. "type": "array",
  1590. "items": {
  1591. "$ref": "#/definitions/md.SelectData"
  1592. }
  1593. },
  1594. "total": {
  1595. "type": "integer"
  1596. }
  1597. }
  1598. },
  1599. "md.Response": {
  1600. "type": "object",
  1601. "properties": {
  1602. "code": {
  1603. "type": "string",
  1604. "example": "响应码"
  1605. },
  1606. "data": {
  1607. "description": "内容"
  1608. },
  1609. "msg": {
  1610. "type": "string",
  1611. "example": "具体错误原因"
  1612. }
  1613. }
  1614. },
  1615. "md.RoleBindPermissionGroupReq": {
  1616. "type": "object",
  1617. "required": [
  1618. "role_id"
  1619. ],
  1620. "properties": {
  1621. "permission_ids": {
  1622. "type": "array",
  1623. "items": {
  1624. "type": "integer"
  1625. }
  1626. },
  1627. "role_id": {
  1628. "type": "integer"
  1629. }
  1630. }
  1631. },
  1632. "md.SelectData": {
  1633. "type": "object",
  1634. "properties": {
  1635. "name": {
  1636. "type": "string",
  1637. "example": "名称"
  1638. },
  1639. "value": {
  1640. "type": "string",
  1641. "example": "值"
  1642. }
  1643. }
  1644. },
  1645. "md.SmsReq": {
  1646. "type": "object",
  1647. "properties": {
  1648. "phone": {
  1649. "type": "string"
  1650. },
  1651. "type": {
  1652. "type": "string",
  1653. "example": "手机号登陆:fast_login 注册:register 修改密码:update_password"
  1654. }
  1655. }
  1656. },
  1657. "md.UpdateAdminReq": {
  1658. "type": "object",
  1659. "required": [
  1660. "id",
  1661. "password",
  1662. "username"
  1663. ],
  1664. "properties": {
  1665. "id": {
  1666. "type": "integer"
  1667. },
  1668. "memo": {
  1669. "type": "string"
  1670. },
  1671. "password": {
  1672. "type": "string"
  1673. },
  1674. "username": {
  1675. "type": "string"
  1676. }
  1677. }
  1678. },
  1679. "md.UpdateAdminStateReq": {
  1680. "type": "object",
  1681. "required": [
  1682. "id",
  1683. "state"
  1684. ],
  1685. "properties": {
  1686. "id": {
  1687. "type": "integer"
  1688. },
  1689. "state": {
  1690. "type": "integer"
  1691. }
  1692. }
  1693. },
  1694. "md.UpdateRoleReq": {
  1695. "type": "object",
  1696. "required": [
  1697. "memo",
  1698. "name",
  1699. "role_id"
  1700. ],
  1701. "properties": {
  1702. "memo": {
  1703. "type": "string"
  1704. },
  1705. "name": {
  1706. "type": "string"
  1707. },
  1708. "role_id": {
  1709. "type": "integer"
  1710. }
  1711. }
  1712. },
  1713. "md.UpdateRoleStateReq": {
  1714. "type": "object",
  1715. "required": [
  1716. "role_id",
  1717. "state"
  1718. ],
  1719. "properties": {
  1720. "role_id": {
  1721. "type": "integer"
  1722. },
  1723. "state": {
  1724. "type": "integer"
  1725. }
  1726. }
  1727. }
  1728. },
  1729. "securityDefinitions": {
  1730. "MasterID": {
  1731. "type": "apiKey",
  1732. "name": "MasterID",
  1733. "in": "header"
  1734. }
  1735. }
  1736. }