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

swagger.yaml 27 KiB

3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
2 months ago
3 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
2 months ago
2 months ago
2 months ago
3 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155
  1. definitions:
  2. md.AccountBase:
  3. properties:
  4. admin_phone:
  5. example: 管理员手机号
  6. type: string
  7. agent_id:
  8. example: 账户ID
  9. type: string
  10. company_abbreviation:
  11. example: 公司简称
  12. type: string
  13. company_name:
  14. example: 公司名称
  15. type: string
  16. contact_address:
  17. example: 联系地址
  18. type: string
  19. contact_email:
  20. example: 邮箱
  21. type: string
  22. contact_name:
  23. example: 联系人
  24. type: string
  25. contact_phone:
  26. example: 联系电话
  27. type: string
  28. country_region:
  29. example: 国家地区
  30. type: string
  31. currency_conf:
  32. example: 结算币种
  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.AgentBankInfo:
  81. properties:
  82. agent_id:
  83. type: string
  84. bank:
  85. type: string
  86. bank_branch:
  87. type: string
  88. bank_no:
  89. type: string
  90. currency_conf:
  91. type: string
  92. id:
  93. type: string
  94. licence:
  95. type: string
  96. memo:
  97. type: string
  98. state:
  99. type: string
  100. uuid:
  101. type: string
  102. type: object
  103. md.AgentContactInfo:
  104. properties:
  105. address:
  106. type: string
  107. agent_id:
  108. type: string
  109. email:
  110. type: string
  111. id:
  112. type: string
  113. memo:
  114. type: string
  115. name:
  116. type: string
  117. phone:
  118. type: string
  119. state:
  120. type: string
  121. uuid:
  122. type: string
  123. type: object
  124. md.AgentList:
  125. properties:
  126. agent_id:
  127. type: string
  128. business_license_address:
  129. type: string
  130. business_license_img_url:
  131. type: string
  132. certificate_first_type:
  133. type: string
  134. certificate_type:
  135. type: string
  136. certificate_validity:
  137. type: string
  138. company_abbreviation:
  139. type: string
  140. company_name:
  141. type: string
  142. country_region:
  143. type: string
  144. country_region_id:
  145. type: string
  146. id:
  147. type: string
  148. kind:
  149. type: string
  150. legal_representative:
  151. type: string
  152. memo:
  153. type: string
  154. registered_address:
  155. type: string
  156. registered_address_city_id:
  157. type: string
  158. registered_address_country_id:
  159. type: string
  160. registered_address_county_id:
  161. type: string
  162. registered_address_province_id:
  163. type: string
  164. state:
  165. type: string
  166. unified_social_credit_code:
  167. type: string
  168. uuid:
  169. type: string
  170. type: object
  171. md.BindAdminRoleReq:
  172. properties:
  173. id:
  174. type: integer
  175. role_ids:
  176. items:
  177. type: integer
  178. type: array
  179. required:
  180. - id
  181. type: object
  182. md.ImgReqUpload:
  183. properties:
  184. dir:
  185. type: string
  186. file_name:
  187. type: string
  188. file_size:
  189. description: 文件大小, 单位byte
  190. type: integer
  191. type: object
  192. md.LoginPhoneReq:
  193. properties:
  194. captcha:
  195. example: 验证码
  196. type: string
  197. username:
  198. example: 登录账号
  199. type: string
  200. required:
  201. - captcha
  202. - username
  203. type: object
  204. md.LoginReq:
  205. properties:
  206. code:
  207. example: 验证码
  208. type: string
  209. password:
  210. example: 登录密码
  211. type: string
  212. username:
  213. example: 登录账号
  214. type: string
  215. required:
  216. - password
  217. - username
  218. type: object
  219. md.LoginResponse:
  220. properties:
  221. token:
  222. type: string
  223. type: object
  224. md.MediumListData:
  225. properties:
  226. account:
  227. example: 媒体账号
  228. type: string
  229. business_license_address:
  230. example: 营业执照地址
  231. type: string
  232. company_name:
  233. example: 公司名称
  234. type: string
  235. id:
  236. example: id
  237. type: string
  238. legal_representative:
  239. example: 法定代表人
  240. type: string
  241. medium_id:
  242. example: 媒体id
  243. type: string
  244. memo:
  245. example: 备注 审核时填写的
  246. type: string
  247. state:
  248. example: 状态(0:待提交 1:待审核 2:审核通过 3:审核拒绝)
  249. type: string
  250. unified_social_credit_code:
  251. example: 统一社会信用代码
  252. type: string
  253. type: object
  254. md.MediumListRes:
  255. properties:
  256. list:
  257. items:
  258. $ref: '#/definitions/md.MediumListData'
  259. type: array
  260. state:
  261. items:
  262. $ref: '#/definitions/md.SelectData'
  263. type: array
  264. total:
  265. type: integer
  266. type: object
  267. md.Response:
  268. properties:
  269. code:
  270. example: 响应码
  271. type: string
  272. data:
  273. description: 内容
  274. msg:
  275. example: 具体错误原因
  276. type: string
  277. type: object
  278. md.RoleBindPermissionGroupReq:
  279. properties:
  280. permission_ids:
  281. items:
  282. type: integer
  283. type: array
  284. role_id:
  285. type: integer
  286. required:
  287. - role_id
  288. type: object
  289. md.SelectData:
  290. properties:
  291. name:
  292. example: 名称
  293. type: string
  294. value:
  295. example: 值
  296. type: string
  297. type: object
  298. md.SmsReq:
  299. properties:
  300. phone:
  301. type: string
  302. type:
  303. example: 手机号登陆:fast_login 注册:register 修改密码:update_password
  304. type: string
  305. type: object
  306. md.UpdateAdminReq:
  307. properties:
  308. id:
  309. type: integer
  310. memo:
  311. type: string
  312. password:
  313. type: string
  314. username:
  315. type: string
  316. required:
  317. - id
  318. - password
  319. - username
  320. type: object
  321. md.UpdateAdminStateReq:
  322. properties:
  323. id:
  324. type: integer
  325. state:
  326. type: integer
  327. required:
  328. - id
  329. - state
  330. type: object
  331. md.UpdateRoleReq:
  332. properties:
  333. memo:
  334. type: string
  335. name:
  336. type: string
  337. role_id:
  338. type: integer
  339. required:
  340. - memo
  341. - name
  342. - role_id
  343. type: object
  344. md.UpdateRoleStateReq:
  345. properties:
  346. role_id:
  347. type: integer
  348. state:
  349. type: integer
  350. required:
  351. - role_id
  352. - state
  353. type: object
  354. host: localhost:1003 or advertisement.dengbiao.top
  355. info:
  356. contact:
  357. email: 1239118001@qq.com
  358. name: dengbiao
  359. url: http://www.swagger.io/support
  360. description: 渠道代理后台接口
  361. license:
  362. name: Apache 2.0
  363. url: http://www.apache.org/licenses/LICENSE-2.0.html
  364. termsOfService: http://swagger.io/terms/
  365. title: 广告联盟-渠道代理平台
  366. version: "1.0"
  367. paths:
  368. /api/account/base:
  369. get:
  370. consumes:
  371. - application/json
  372. description: 账号信息
  373. parameters:
  374. - description: 验证参数Bearer和token空格拼接
  375. in: header
  376. name: Authorization
  377. required: true
  378. type: string
  379. produces:
  380. - application/json
  381. responses:
  382. "200":
  383. description: 具体看返回内容
  384. schema:
  385. $ref: '#/definitions/md.AccountBase'
  386. "400":
  387. description: 具体错误
  388. schema:
  389. $ref: '#/definitions/md.Response'
  390. summary: 账号信息
  391. tags:
  392. - 账号中心------嘉俊
  393. /api/account/qualification/bank/save:
  394. post:
  395. consumes:
  396. - application/json
  397. description: 资质认证-银行资质保存
  398. parameters:
  399. - description: 验证参数Bearer和token空格拼接
  400. in: header
  401. name: Authorization
  402. required: true
  403. type: string
  404. - description: 请求参数
  405. in: body
  406. name: args
  407. required: true
  408. schema:
  409. $ref: '#/definitions/md.AgentBankInfo'
  410. produces:
  411. - application/json
  412. responses:
  413. "200":
  414. description: 具体看返回内容
  415. schema:
  416. type: string
  417. "400":
  418. description: 具体错误
  419. schema:
  420. $ref: '#/definitions/md.Response'
  421. summary: 银行资质保存
  422. tags:
  423. - 资质认证------嘉俊
  424. /api/account/qualification/contact/save:
  425. post:
  426. consumes:
  427. - application/json
  428. description: 资质认证-联系方式保存
  429. parameters:
  430. - description: 验证参数Bearer和token空格拼接
  431. in: header
  432. name: Authorization
  433. required: true
  434. type: string
  435. - description: 请求参数
  436. in: body
  437. name: args
  438. required: true
  439. schema:
  440. $ref: '#/definitions/md.AgentContactInfo'
  441. produces:
  442. - application/json
  443. responses:
  444. "200":
  445. description: 具体看返回内容
  446. schema:
  447. type: string
  448. "400":
  449. description: 具体错误
  450. schema:
  451. $ref: '#/definitions/md.Response'
  452. summary: 联系方式保存
  453. tags:
  454. - 资质认证------嘉俊
  455. /api/account/qualification/enterprise/save:
  456. post:
  457. consumes:
  458. - application/json
  459. description: 资质认证-企业认证保存
  460. parameters:
  461. - description: 验证参数Bearer和token空格拼接
  462. in: header
  463. name: Authorization
  464. required: true
  465. type: string
  466. - description: 请求参数
  467. in: body
  468. name: args
  469. required: true
  470. schema:
  471. $ref: '#/definitions/md.AgentList'
  472. produces:
  473. - application/json
  474. responses:
  475. "200":
  476. description: 具体看返回内容
  477. schema:
  478. type: string
  479. "400":
  480. description: 具体错误
  481. schema:
  482. $ref: '#/definitions/md.Response'
  483. summary: 企业认证保存
  484. tags:
  485. - 资质认证------嘉俊
  486. /api/account/qualification/info:
  487. get:
  488. consumes:
  489. - application/json
  490. description: 资质认证-基本信息
  491. parameters:
  492. - description: 验证参数Bearer和token空格拼接
  493. in: header
  494. name: Authorization
  495. required: true
  496. type: string
  497. produces:
  498. - application/json
  499. responses:
  500. "200":
  501. description: 具体看返回内容
  502. schema:
  503. type: string
  504. "400":
  505. description: 具体错误
  506. schema:
  507. $ref: '#/definitions/md.Response'
  508. summary: 基本信息
  509. tags:
  510. - 资质认证------嘉俊
  511. /api/account/qualification/select/base:
  512. get:
  513. consumes:
  514. - application/json
  515. description: 资质认证-认证下拉框选择内容
  516. parameters:
  517. - description: 验证参数Bearer和token空格拼接
  518. in: header
  519. name: Authorization
  520. required: true
  521. type: string
  522. produces:
  523. - application/json
  524. responses:
  525. "200":
  526. description: 具体看返回内容
  527. schema:
  528. type: string
  529. "400":
  530. description: 具体错误
  531. schema:
  532. $ref: '#/definitions/md.Response'
  533. summary: 认证下拉框选择内容
  534. tags:
  535. - 资质认证------嘉俊
  536. /api/account/update/password:
  537. post:
  538. consumes:
  539. - application/json
  540. description: 资质认证-企业认证保存
  541. parameters:
  542. - description: 验证参数Bearer和token空格拼接
  543. in: header
  544. name: Authorization
  545. required: true
  546. type: string
  547. - description: 请求参数
  548. in: body
  549. name: args
  550. required: true
  551. schema:
  552. $ref: '#/definitions/md.AccountUpdatePasswordReq'
  553. produces:
  554. - application/json
  555. responses:
  556. "200":
  557. description: 具体看返回内容
  558. schema:
  559. type: string
  560. "400":
  561. description: 具体错误
  562. schema:
  563. $ref: '#/definitions/md.Response'
  564. summary: 企业认证保存
  565. tags:
  566. - 账号中心------嘉俊
  567. /api/login:
  568. post:
  569. consumes:
  570. - application/json
  571. description: 登入
  572. parameters:
  573. - description: 用户名密码
  574. in: body
  575. name: req
  576. required: true
  577. schema:
  578. $ref: '#/definitions/md.LoginReq'
  579. produces:
  580. - application/json
  581. responses:
  582. "200":
  583. description: token
  584. schema:
  585. $ref: '#/definitions/md.LoginResponse'
  586. "400":
  587. description: 具体错误
  588. schema:
  589. $ref: '#/definitions/md.Response'
  590. summary: 登陆
  591. tags:
  592. - ADMIN
  593. /api/login/phone:
  594. post:
  595. consumes:
  596. - application/json
  597. description: 手机号登入
  598. parameters:
  599. - description: 用户名、验证码
  600. in: body
  601. name: req
  602. required: true
  603. schema:
  604. $ref: '#/definitions/md.LoginPhoneReq'
  605. produces:
  606. - application/json
  607. responses:
  608. "200":
  609. description: token
  610. schema:
  611. $ref: '#/definitions/md.LoginResponse'
  612. "400":
  613. description: 具体错误
  614. schema:
  615. $ref: '#/definitions/md.Response'
  616. summary: 手机号登陆
  617. tags:
  618. - ADMIN
  619. /api/login/register:
  620. post:
  621. consumes:
  622. - application/json
  623. description: 手机号注册
  624. parameters:
  625. - description: 用户名、验证码
  626. in: body
  627. name: req
  628. required: true
  629. schema:
  630. $ref: '#/definitions/md.LoginReq'
  631. produces:
  632. - application/json
  633. responses:
  634. "200":
  635. description: token
  636. schema:
  637. $ref: '#/definitions/md.LoginResponse'
  638. "400":
  639. description: 具体错误
  640. schema:
  641. $ref: '#/definitions/md.Response'
  642. summary: 手机号注册
  643. tags:
  644. - ADMIN
  645. /api/medium/list:
  646. post:
  647. consumes:
  648. - application/json
  649. description: 媒体中心-媒体列表
  650. parameters:
  651. - description: 验证参数Bearer和token空格拼接
  652. in: header
  653. name: Authorization
  654. required: true
  655. type: string
  656. produces:
  657. - application/json
  658. responses:
  659. "200":
  660. description: 具体看返回内容 data里面的数据
  661. schema:
  662. $ref: '#/definitions/md.MediumListRes'
  663. "400":
  664. description: 具体错误
  665. schema:
  666. $ref: '#/definitions/md.Response'
  667. summary: 媒体列表
  668. tags:
  669. - 媒体中心------嘉俊
  670. /api/qiniuyun/upload:
  671. post:
  672. consumes:
  673. - application/json
  674. description: 七牛云-七牛云上传
  675. parameters:
  676. - description: 验证参数Bearer和token空格拼接
  677. in: header
  678. name: Authorization
  679. type: string
  680. - description: 请求参数
  681. in: body
  682. name: args
  683. required: true
  684. schema:
  685. $ref: '#/definitions/md.ImgReqUpload'
  686. produces:
  687. - application/json
  688. responses:
  689. "200":
  690. description: success
  691. schema:
  692. type: string
  693. "400":
  694. description: 具体错误
  695. schema:
  696. $ref: '#/definitions/md.Response'
  697. summary: 七牛云上传
  698. tags:
  699. - 七牛云
  700. /api/role/addAdmin:
  701. post:
  702. consumes:
  703. - application/json
  704. description: 新增管理员
  705. parameters:
  706. - description: 验证参数Bearer和token空格拼接
  707. in: header
  708. name: Authorization
  709. required: true
  710. type: string
  711. - description: 请求参数
  712. in: body
  713. name: args
  714. required: true
  715. schema:
  716. $ref: '#/definitions/md.AddAdminReq'
  717. produces:
  718. - application/json
  719. responses:
  720. "200":
  721. description: success
  722. schema:
  723. type: string
  724. "400":
  725. description: 具体错误
  726. schema:
  727. $ref: '#/definitions/md.Response'
  728. summary: 新增管理员
  729. tags:
  730. - ADMIN-权限管理
  731. /api/role/addRole:
  732. post:
  733. consumes:
  734. - application/json
  735. description: 添加角色
  736. parameters:
  737. - description: 验证参数Bearer和token空格拼接
  738. in: header
  739. name: Authorization
  740. required: true
  741. type: string
  742. - description: 请求参数
  743. in: body
  744. name: args
  745. required: true
  746. schema:
  747. $ref: '#/definitions/md.AddRoleReq'
  748. produces:
  749. - application/json
  750. responses:
  751. "200":
  752. description: success
  753. schema:
  754. type: string
  755. "400":
  756. description: 具体错误
  757. schema:
  758. $ref: '#/definitions/md.Response'
  759. summary: 添加角色
  760. tags:
  761. - ADMIN-权限管理
  762. /api/role/adminInfo:
  763. get:
  764. consumes:
  765. - application/json
  766. description: 管理员信息
  767. parameters:
  768. - description: 验证参数Bearer和token空格拼接
  769. in: header
  770. name: Authorization
  771. required: true
  772. type: string
  773. - description: 管理员id
  774. in: query
  775. name: adm_id
  776. required: true
  777. type: string
  778. produces:
  779. - application/json
  780. responses:
  781. "200":
  782. description: 具体看返回内容
  783. schema:
  784. type: string
  785. "400":
  786. description: 具体错误
  787. schema:
  788. $ref: '#/definitions/md.Response'
  789. summary: 管理员信息
  790. tags:
  791. - ADMIN-权限管理
  792. /api/role/adminList:
  793. post:
  794. consumes:
  795. - application/json
  796. description: 管理员列表
  797. parameters:
  798. - description: 验证参数Bearer和token空格拼接
  799. in: header
  800. name: Authorization
  801. required: true
  802. type: string
  803. - description: 请求参数
  804. in: body
  805. name: args
  806. required: true
  807. schema:
  808. $ref: '#/definitions/md.AdminListReq'
  809. produces:
  810. - application/json
  811. responses:
  812. "200":
  813. description: 具体看返回内容
  814. schema:
  815. type: string
  816. "400":
  817. description: 具体错误
  818. schema:
  819. $ref: '#/definitions/md.Response'
  820. summary: 管理员列表
  821. tags:
  822. - ADMIN-权限管理
  823. /api/role/bindAdminRole/:
  824. post:
  825. consumes:
  826. - application/json
  827. description: 管理员绑定角色
  828. parameters:
  829. - description: 验证参数Bearer和token空格拼接
  830. in: header
  831. name: Authorization
  832. required: true
  833. type: string
  834. - description: 请求参数
  835. in: body
  836. name: args
  837. required: true
  838. schema:
  839. $ref: '#/definitions/md.BindAdminRoleReq'
  840. produces:
  841. - application/json
  842. responses:
  843. "200":
  844. description: success
  845. schema:
  846. type: string
  847. "400":
  848. description: 具体错误
  849. schema:
  850. $ref: '#/definitions/md.Response'
  851. summary: 管理员绑定角色
  852. tags:
  853. - ADMIN-权限管理
  854. /api/role/deleteAdmin/{$adm_id}:
  855. delete:
  856. consumes:
  857. - application/json
  858. description: 删除管理员
  859. parameters:
  860. - description: 验证参数Bearer和token空格拼接
  861. in: header
  862. name: Authorization
  863. required: true
  864. type: string
  865. produces:
  866. - application/json
  867. responses:
  868. "200":
  869. description: success
  870. schema:
  871. type: string
  872. "400":
  873. description: 具体错误
  874. schema:
  875. $ref: '#/definitions/md.Response'
  876. summary: 删除管理员
  877. tags:
  878. - ADMIN-权限管理
  879. /api/role/deleteRole/{$id}:
  880. delete:
  881. consumes:
  882. - application/json
  883. description: 删除角色
  884. parameters:
  885. - description: 验证参数Bearer和token空格拼接
  886. in: header
  887. name: Authorization
  888. required: true
  889. type: string
  890. - description: 请求参数
  891. in: body
  892. name: args
  893. required: true
  894. schema:
  895. $ref: '#/definitions/md.UpdateRoleStateReq'
  896. produces:
  897. - application/json
  898. responses:
  899. "200":
  900. description: success
  901. schema:
  902. type: string
  903. "400":
  904. description: 具体错误
  905. schema:
  906. $ref: '#/definitions/md.Response'
  907. summary: 删除角色
  908. tags:
  909. - ADMIN-权限管理
  910. /api/role/permissionGroupList:
  911. get:
  912. consumes:
  913. - application/json
  914. description: 权限组列表
  915. parameters:
  916. - description: 验证参数Bearer和token空格拼接
  917. in: header
  918. name: Authorization
  919. required: true
  920. type: string
  921. - description: 管理员id
  922. in: query
  923. name: adm_id
  924. required: true
  925. type: string
  926. produces:
  927. - application/json
  928. responses:
  929. "200":
  930. description: 具体看返回内容
  931. schema:
  932. type: string
  933. "400":
  934. description: 具体错误
  935. schema:
  936. $ref: '#/definitions/md.Response'
  937. summary: 权限组列表
  938. tags:
  939. - ADMIN-权限管理
  940. /api/role/roleBindPermissionGroup:
  941. post:
  942. consumes:
  943. - application/json
  944. description: 角色绑定权限组
  945. parameters:
  946. - description: 验证参数Bearer和token空格拼接
  947. in: header
  948. name: Authorization
  949. required: true
  950. type: string
  951. - description: 请求参数
  952. in: body
  953. name: args
  954. required: true
  955. schema:
  956. $ref: '#/definitions/md.RoleBindPermissionGroupReq'
  957. produces:
  958. - application/json
  959. responses:
  960. "200":
  961. description: success
  962. schema:
  963. type: string
  964. "400":
  965. description: 具体错误
  966. schema:
  967. $ref: '#/definitions/md.Response'
  968. summary: 角色绑定权限组
  969. tags:
  970. - ADMIN-权限管理
  971. /api/role/roleList:
  972. get:
  973. consumes:
  974. - application/json
  975. description: 角色列表
  976. parameters:
  977. - description: 验证参数Bearer和token空格拼接
  978. in: header
  979. name: Authorization
  980. required: true
  981. type: string
  982. produces:
  983. - application/json
  984. responses:
  985. "200":
  986. description: 具体看返回内容
  987. schema:
  988. type: string
  989. "400":
  990. description: 具体错误
  991. schema:
  992. $ref: '#/definitions/md.Response'
  993. summary: 角色列表
  994. tags:
  995. - ADMIN-权限管理
  996. /api/role/updateAdmin:
  997. post:
  998. consumes:
  999. - application/json
  1000. description: 修改管理员信息
  1001. parameters:
  1002. - description: 验证参数Bearer和token空格拼接
  1003. in: header
  1004. name: Authorization
  1005. required: true
  1006. type: string
  1007. - description: 请求参数
  1008. in: body
  1009. name: args
  1010. required: true
  1011. schema:
  1012. $ref: '#/definitions/md.UpdateAdminReq'
  1013. produces:
  1014. - application/json
  1015. responses:
  1016. "200":
  1017. description: success
  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/updateAdminState:
  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.UpdateAdminStateReq'
  1044. produces:
  1045. - application/json
  1046. responses:
  1047. "200":
  1048. description: success
  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/updateRole:
  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.UpdateRoleReq'
  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/updateRoleState:
  1090. post:
  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. - description: 请求参数
  1101. in: body
  1102. name: args
  1103. required: true
  1104. schema:
  1105. $ref: '#/definitions/md.UpdateRoleStateReq'
  1106. produces:
  1107. - application/json
  1108. responses:
  1109. "200":
  1110. description: success
  1111. schema:
  1112. type: string
  1113. "400":
  1114. description: 具体错误
  1115. schema:
  1116. $ref: '#/definitions/md.Response'
  1117. summary: 修改角色状态
  1118. tags:
  1119. - ADMIN-权限管理
  1120. /api/sms:
  1121. post:
  1122. consumes:
  1123. - application/json
  1124. description: 短信-短信发送
  1125. parameters:
  1126. - description: 验证参数Bearer和token空格拼接
  1127. in: header
  1128. name: Authorization
  1129. type: string
  1130. - description: 请求参数
  1131. in: body
  1132. name: args
  1133. required: true
  1134. schema:
  1135. $ref: '#/definitions/md.SmsReq'
  1136. produces:
  1137. - application/json
  1138. responses:
  1139. "200":
  1140. description: success
  1141. schema:
  1142. type: string
  1143. "400":
  1144. description: 具体错误
  1145. schema:
  1146. $ref: '#/definitions/md.Response'
  1147. summary: 短信发送
  1148. tags:
  1149. - 短信
  1150. securityDefinitions:
  1151. MasterID:
  1152. in: header
  1153. name: MasterID
  1154. type: apiKey
  1155. swagger: "2.0"