广告平台(媒体使用)
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

swagger.yaml 27 KiB

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