广告平台(站长下代理使用)
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.
 
 
 
 
 
 

1761 lines
56 KiB

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