广告平台(媒体使用)
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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