广告平台(媒体使用)
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

1391 satır
32 KiB

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