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

docs.go 31 KiB

1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999
  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. "/admin/role/addAdmin": {
  26. "post": {
  27. "description": "权限管理-新增管理员",
  28. "consumes": [
  29. "application/json"
  30. ],
  31. "produces": [
  32. "application/json"
  33. ],
  34. "tags": [
  35. "权限管理"
  36. ],
  37. "summary": "新增管理员",
  38. "parameters": [
  39. {
  40. "type": "string",
  41. "description": "验证参数Bearer和token空格拼接",
  42. "name": "Authorization",
  43. "in": "header",
  44. "required": true
  45. },
  46. {
  47. "description": "请求参数",
  48. "name": "args",
  49. "in": "body",
  50. "required": true,
  51. "schema": {
  52. "$ref": "#/definitions/md.AddAdminReq"
  53. }
  54. }
  55. ],
  56. "responses": {
  57. "200": {
  58. "description": "success",
  59. "schema": {
  60. "type": "string"
  61. }
  62. },
  63. "400": {
  64. "description": "具体错误",
  65. "schema": {
  66. "$ref": "#/definitions/md.Response"
  67. }
  68. }
  69. }
  70. }
  71. },
  72. "/admin/role/permissionGroupList": {
  73. "get": {
  74. "description": "权限管理-权限组列表",
  75. "consumes": [
  76. "application/json"
  77. ],
  78. "produces": [
  79. "application/json"
  80. ],
  81. "tags": [
  82. "权限管理"
  83. ],
  84. "summary": "权限组列表",
  85. "parameters": [
  86. {
  87. "type": "string",
  88. "description": "验证参数Bearer和token空格拼接",
  89. "name": "Authorization",
  90. "in": "header",
  91. "required": true
  92. },
  93. {
  94. "type": "string",
  95. "description": "管理员id",
  96. "name": "adm_id",
  97. "in": "query",
  98. "required": true
  99. }
  100. ],
  101. "responses": {
  102. "200": {
  103. "description": "具体看返回内容",
  104. "schema": {
  105. "type": "string"
  106. }
  107. },
  108. "400": {
  109. "description": "具体错误",
  110. "schema": {
  111. "$ref": "#/definitions/md.Response"
  112. }
  113. }
  114. }
  115. }
  116. },
  117. "/admin/role/roleBindPermissionGroup": {
  118. "post": {
  119. "description": "权限管理-角色绑定权限组",
  120. "consumes": [
  121. "application/json"
  122. ],
  123. "produces": [
  124. "application/json"
  125. ],
  126. "tags": [
  127. "权限管理"
  128. ],
  129. "summary": "角色绑定权限组",
  130. "parameters": [
  131. {
  132. "type": "string",
  133. "description": "验证参数Bearer和token空格拼接",
  134. "name": "Authorization",
  135. "in": "header",
  136. "required": true
  137. },
  138. {
  139. "description": "请求参数",
  140. "name": "args",
  141. "in": "body",
  142. "required": true,
  143. "schema": {
  144. "$ref": "#/definitions/md.RoleBindPermissionGroupReq"
  145. }
  146. }
  147. ],
  148. "responses": {
  149. "200": {
  150. "description": "success",
  151. "schema": {
  152. "type": "string"
  153. }
  154. },
  155. "400": {
  156. "description": "具体错误",
  157. "schema": {
  158. "$ref": "#/definitions/md.Response"
  159. }
  160. }
  161. }
  162. }
  163. },
  164. "/login": {
  165. "post": {
  166. "description": "登入",
  167. "consumes": [
  168. "application/json"
  169. ],
  170. "produces": [
  171. "application/json"
  172. ],
  173. "tags": [
  174. "登录"
  175. ],
  176. "summary": "登陆",
  177. "parameters": [
  178. {
  179. "description": "用户名密码",
  180. "name": "req",
  181. "in": "body",
  182. "required": true,
  183. "schema": {
  184. "$ref": "#/definitions/md.LoginReq"
  185. }
  186. }
  187. ],
  188. "responses": {
  189. "200": {
  190. "description": "token",
  191. "schema": {
  192. "$ref": "#/definitions/md.LoginResponse"
  193. }
  194. },
  195. "400": {
  196. "description": "具体错误",
  197. "schema": {
  198. "$ref": "#/definitions/md.Response"
  199. }
  200. }
  201. }
  202. }
  203. },
  204. "/registerForAgent": {
  205. "post": {
  206. "description": "注册模块-渠道代理注册",
  207. "consumes": [
  208. "application/json"
  209. ],
  210. "produces": [
  211. "application/json"
  212. ],
  213. "tags": [
  214. "注册模块"
  215. ],
  216. "summary": "渠道代理注册",
  217. "parameters": [
  218. {
  219. "description": "用户名密码",
  220. "name": "req",
  221. "in": "body",
  222. "required": true,
  223. "schema": {
  224. "$ref": "#/definitions/md.RegisterForAgentReq"
  225. }
  226. }
  227. ],
  228. "responses": {
  229. "200": {
  230. "description": "success",
  231. "schema": {
  232. "type": "string"
  233. }
  234. },
  235. "400": {
  236. "description": "具体错误",
  237. "schema": {
  238. "$ref": "#/definitions/md.Response"
  239. }
  240. }
  241. }
  242. }
  243. },
  244. "/registerForMedium": {
  245. "post": {
  246. "description": "注册模块-媒体注册",
  247. "consumes": [
  248. "application/json"
  249. ],
  250. "produces": [
  251. "application/json"
  252. ],
  253. "tags": [
  254. "注册模块"
  255. ],
  256. "summary": "媒体注册",
  257. "parameters": [
  258. {
  259. "description": "用户名密码",
  260. "name": "req",
  261. "in": "body",
  262. "required": true,
  263. "schema": {
  264. "$ref": "#/definitions/md.RegisterForMediumReq"
  265. }
  266. }
  267. ],
  268. "responses": {
  269. "200": {
  270. "description": "success",
  271. "schema": {
  272. "type": "string"
  273. }
  274. },
  275. "400": {
  276. "description": "具体错误",
  277. "schema": {
  278. "$ref": "#/definitions/md.Response"
  279. }
  280. }
  281. }
  282. }
  283. },
  284. "/role/addRole": {
  285. "post": {
  286. "description": "权限管理-添加角色",
  287. "consumes": [
  288. "application/json"
  289. ],
  290. "produces": [
  291. "application/json"
  292. ],
  293. "tags": [
  294. "权限管理"
  295. ],
  296. "summary": "添加角色",
  297. "parameters": [
  298. {
  299. "type": "string",
  300. "description": "验证参数Bearer和token空格拼接",
  301. "name": "Authorization",
  302. "in": "header",
  303. "required": true
  304. },
  305. {
  306. "description": "请求参数",
  307. "name": "args",
  308. "in": "body",
  309. "required": true,
  310. "schema": {
  311. "$ref": "#/definitions/md.AddRoleReq"
  312. }
  313. }
  314. ],
  315. "responses": {
  316. "200": {
  317. "description": "success",
  318. "schema": {
  319. "type": "string"
  320. }
  321. },
  322. "400": {
  323. "description": "具体错误",
  324. "schema": {
  325. "$ref": "#/definitions/md.Response"
  326. }
  327. }
  328. }
  329. }
  330. },
  331. "/role/adminInfo": {
  332. "get": {
  333. "description": "权限管理-管理员信息",
  334. "consumes": [
  335. "application/json"
  336. ],
  337. "produces": [
  338. "application/json"
  339. ],
  340. "tags": [
  341. "权限管理"
  342. ],
  343. "summary": "管理员信息",
  344. "parameters": [
  345. {
  346. "type": "string",
  347. "description": "验证参数Bearer和token空格拼接",
  348. "name": "Authorization",
  349. "in": "header",
  350. "required": true
  351. },
  352. {
  353. "type": "string",
  354. "description": "管理员id",
  355. "name": "adm_id",
  356. "in": "query",
  357. "required": true
  358. }
  359. ],
  360. "responses": {
  361. "200": {
  362. "description": "具体看返回内容",
  363. "schema": {
  364. "type": "string"
  365. }
  366. },
  367. "400": {
  368. "description": "具体错误",
  369. "schema": {
  370. "$ref": "#/definitions/md.Response"
  371. }
  372. }
  373. }
  374. }
  375. },
  376. "/role/adminList": {
  377. "post": {
  378. "description": "权限管理-管理员列表",
  379. "consumes": [
  380. "application/json"
  381. ],
  382. "produces": [
  383. "application/json"
  384. ],
  385. "tags": [
  386. "权限管理"
  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. "description": "请求参数",
  399. "name": "args",
  400. "in": "body",
  401. "required": true,
  402. "schema": {
  403. "$ref": "#/definitions/md.AdminListReq"
  404. }
  405. }
  406. ],
  407. "responses": {
  408. "200": {
  409. "description": "具体看返回内容",
  410. "schema": {
  411. "type": "string"
  412. }
  413. },
  414. "400": {
  415. "description": "具体错误",
  416. "schema": {
  417. "$ref": "#/definitions/md.Response"
  418. }
  419. }
  420. }
  421. }
  422. },
  423. "/role/bindAdminRole/": {
  424. "post": {
  425. "description": "权限管理-管理员绑定角色",
  426. "consumes": [
  427. "application/json"
  428. ],
  429. "produces": [
  430. "application/json"
  431. ],
  432. "tags": [
  433. "权限管理"
  434. ],
  435. "summary": "管理员绑定角色",
  436. "parameters": [
  437. {
  438. "type": "string",
  439. "description": "验证参数Bearer和token空格拼接",
  440. "name": "Authorization",
  441. "in": "header",
  442. "required": true
  443. },
  444. {
  445. "description": "请求参数",
  446. "name": "args",
  447. "in": "body",
  448. "required": true,
  449. "schema": {
  450. "$ref": "#/definitions/md.BindAdminRoleReq"
  451. }
  452. }
  453. ],
  454. "responses": {
  455. "200": {
  456. "description": "success",
  457. "schema": {
  458. "type": "string"
  459. }
  460. },
  461. "400": {
  462. "description": "具体错误",
  463. "schema": {
  464. "$ref": "#/definitions/md.Response"
  465. }
  466. }
  467. }
  468. }
  469. },
  470. "/role/deleteAdmin/{$adm_id}": {
  471. "delete": {
  472. "description": "权限管理-删除管理员",
  473. "consumes": [
  474. "application/json"
  475. ],
  476. "produces": [
  477. "application/json"
  478. ],
  479. "tags": [
  480. "权限管理"
  481. ],
  482. "summary": "删除管理员",
  483. "parameters": [
  484. {
  485. "type": "string",
  486. "description": "验证参数Bearer和token空格拼接",
  487. "name": "Authorization",
  488. "in": "header",
  489. "required": true
  490. }
  491. ],
  492. "responses": {
  493. "200": {
  494. "description": "success",
  495. "schema": {
  496. "type": "string"
  497. }
  498. },
  499. "400": {
  500. "description": "具体错误",
  501. "schema": {
  502. "$ref": "#/definitions/md.Response"
  503. }
  504. }
  505. }
  506. }
  507. },
  508. "/role/deleteRole/{$id}": {
  509. "delete": {
  510. "description": "权限管理-删除角色",
  511. "consumes": [
  512. "application/json"
  513. ],
  514. "produces": [
  515. "application/json"
  516. ],
  517. "tags": [
  518. "权限管理"
  519. ],
  520. "summary": "删除角色",
  521. "parameters": [
  522. {
  523. "type": "string",
  524. "description": "验证参数Bearer和token空格拼接",
  525. "name": "Authorization",
  526. "in": "header",
  527. "required": true
  528. },
  529. {
  530. "description": "请求参数",
  531. "name": "args",
  532. "in": "body",
  533. "required": true,
  534. "schema": {
  535. "$ref": "#/definitions/md.UpdateRoleStateReq"
  536. }
  537. }
  538. ],
  539. "responses": {
  540. "200": {
  541. "description": "success",
  542. "schema": {
  543. "type": "string"
  544. }
  545. },
  546. "400": {
  547. "description": "具体错误",
  548. "schema": {
  549. "$ref": "#/definitions/md.Response"
  550. }
  551. }
  552. }
  553. }
  554. },
  555. "/role/roleList": {
  556. "get": {
  557. "description": "权限管理-角色列表",
  558. "consumes": [
  559. "application/json"
  560. ],
  561. "produces": [
  562. "application/json"
  563. ],
  564. "tags": [
  565. "权限管理"
  566. ],
  567. "summary": "角色列表",
  568. "parameters": [
  569. {
  570. "type": "string",
  571. "description": "验证参数Bearer和token空格拼接",
  572. "name": "Authorization",
  573. "in": "header",
  574. "required": true
  575. }
  576. ],
  577. "responses": {
  578. "200": {
  579. "description": "具体看返回内容",
  580. "schema": {
  581. "type": "string"
  582. }
  583. },
  584. "400": {
  585. "description": "具体错误",
  586. "schema": {
  587. "$ref": "#/definitions/md.Response"
  588. }
  589. }
  590. }
  591. }
  592. },
  593. "/role/updateAdmin": {
  594. "post": {
  595. "description": "权限管理-修改管理员信息",
  596. "consumes": [
  597. "application/json"
  598. ],
  599. "produces": [
  600. "application/json"
  601. ],
  602. "tags": [
  603. "权限管理"
  604. ],
  605. "summary": "修改管理员信息",
  606. "parameters": [
  607. {
  608. "type": "string",
  609. "description": "验证参数Bearer和token空格拼接",
  610. "name": "Authorization",
  611. "in": "header",
  612. "required": true
  613. },
  614. {
  615. "description": "请求参数",
  616. "name": "args",
  617. "in": "body",
  618. "required": true,
  619. "schema": {
  620. "$ref": "#/definitions/md.UpdateAdminReq"
  621. }
  622. }
  623. ],
  624. "responses": {
  625. "200": {
  626. "description": "success",
  627. "schema": {
  628. "type": "string"
  629. }
  630. },
  631. "400": {
  632. "description": "具体错误",
  633. "schema": {
  634. "$ref": "#/definitions/md.Response"
  635. }
  636. }
  637. }
  638. }
  639. },
  640. "/role/updateAdminState": {
  641. "post": {
  642. "description": "权限管理-修改管理员状态",
  643. "consumes": [
  644. "application/json"
  645. ],
  646. "produces": [
  647. "application/json"
  648. ],
  649. "tags": [
  650. "权限管理"
  651. ],
  652. "summary": "修改管理员状态",
  653. "parameters": [
  654. {
  655. "type": "string",
  656. "description": "验证参数Bearer和token空格拼接",
  657. "name": "Authorization",
  658. "in": "header",
  659. "required": true
  660. },
  661. {
  662. "description": "请求参数",
  663. "name": "args",
  664. "in": "body",
  665. "required": true,
  666. "schema": {
  667. "$ref": "#/definitions/md.UpdateAdminStateReq"
  668. }
  669. }
  670. ],
  671. "responses": {
  672. "200": {
  673. "description": "success",
  674. "schema": {
  675. "type": "string"
  676. }
  677. },
  678. "400": {
  679. "description": "具体错误",
  680. "schema": {
  681. "$ref": "#/definitions/md.Response"
  682. }
  683. }
  684. }
  685. }
  686. },
  687. "/role/updateRole": {
  688. "post": {
  689. "description": "权限管理-修改角色状态",
  690. "consumes": [
  691. "application/json"
  692. ],
  693. "produces": [
  694. "application/json"
  695. ],
  696. "tags": [
  697. "权限管理"
  698. ],
  699. "summary": "修改角色状态",
  700. "parameters": [
  701. {
  702. "type": "string",
  703. "description": "验证参数Bearer和token空格拼接",
  704. "name": "Authorization",
  705. "in": "header",
  706. "required": true
  707. },
  708. {
  709. "description": "请求参数",
  710. "name": "args",
  711. "in": "body",
  712. "required": true,
  713. "schema": {
  714. "$ref": "#/definitions/md.UpdateRoleStateReq"
  715. }
  716. }
  717. ],
  718. "responses": {
  719. "200": {
  720. "description": "success",
  721. "schema": {
  722. "type": "string"
  723. }
  724. },
  725. "400": {
  726. "description": "具体错误",
  727. "schema": {
  728. "$ref": "#/definitions/md.Response"
  729. }
  730. }
  731. }
  732. }
  733. }
  734. },
  735. "definitions": {
  736. "md.AddAdminReq": {
  737. "type": "object",
  738. "required": [
  739. "password",
  740. "username"
  741. ],
  742. "properties": {
  743. "memo": {
  744. "type": "string"
  745. },
  746. "password": {
  747. "type": "string"
  748. },
  749. "username": {
  750. "type": "string"
  751. }
  752. }
  753. },
  754. "md.AddRoleReq": {
  755. "type": "object",
  756. "required": [
  757. "memo",
  758. "name"
  759. ],
  760. "properties": {
  761. "memo": {
  762. "type": "string"
  763. },
  764. "name": {
  765. "type": "string"
  766. }
  767. }
  768. },
  769. "md.AdminListReq": {
  770. "type": "object",
  771. "properties": {
  772. "limit": {
  773. "type": "integer"
  774. },
  775. "page": {
  776. "type": "integer"
  777. },
  778. "state": {
  779. "type": "integer"
  780. },
  781. "username": {
  782. "type": "string"
  783. }
  784. }
  785. },
  786. "md.BindAdminRoleReq": {
  787. "type": "object",
  788. "required": [
  789. "adm_id"
  790. ],
  791. "properties": {
  792. "adm_id": {
  793. "type": "integer"
  794. },
  795. "role_ids": {
  796. "type": "array",
  797. "items": {
  798. "type": "integer"
  799. }
  800. }
  801. }
  802. },
  803. "md.LoginReq": {
  804. "type": "object",
  805. "required": [
  806. "password",
  807. "username"
  808. ],
  809. "properties": {
  810. "password": {
  811. "type": "string"
  812. },
  813. "username": {
  814. "type": "string"
  815. }
  816. }
  817. },
  818. "md.LoginResponse": {
  819. "type": "object",
  820. "properties": {
  821. "token": {
  822. "type": "string"
  823. }
  824. }
  825. },
  826. "md.RegisterForAgentReq": {
  827. "type": "object",
  828. "required": [
  829. "password",
  830. "phone"
  831. ],
  832. "properties": {
  833. "code": {
  834. "type": "string",
  835. "example": "验证码"
  836. },
  837. "password": {
  838. "type": "string",
  839. "example": "登录密码"
  840. },
  841. "phone": {
  842. "type": "string",
  843. "example": "登录账号"
  844. }
  845. }
  846. },
  847. "md.RegisterForMediumReq": {
  848. "type": "object",
  849. "required": [
  850. "password",
  851. "phone"
  852. ],
  853. "properties": {
  854. "code": {
  855. "type": "string",
  856. "example": "验证码"
  857. },
  858. "password": {
  859. "type": "string",
  860. "example": "登录密码"
  861. },
  862. "phone": {
  863. "type": "string",
  864. "example": "登录账号"
  865. }
  866. }
  867. },
  868. "md.Response": {
  869. "type": "object",
  870. "properties": {
  871. "code": {
  872. "type": "string",
  873. "example": "响应码"
  874. },
  875. "data": {
  876. "description": "内容"
  877. },
  878. "msg": {
  879. "type": "string",
  880. "example": "具体错误原因"
  881. }
  882. }
  883. },
  884. "md.RoleBindPermissionGroupReq": {
  885. "type": "object",
  886. "required": [
  887. "role_id"
  888. ],
  889. "properties": {
  890. "permission_ids": {
  891. "type": "array",
  892. "items": {
  893. "type": "integer"
  894. }
  895. },
  896. "role_id": {
  897. "type": "integer"
  898. }
  899. }
  900. },
  901. "md.UpdateAdminReq": {
  902. "type": "object",
  903. "required": [
  904. "adm_id",
  905. "password",
  906. "username"
  907. ],
  908. "properties": {
  909. "adm_id": {
  910. "type": "integer"
  911. },
  912. "memo": {
  913. "type": "string"
  914. },
  915. "password": {
  916. "type": "string"
  917. },
  918. "username": {
  919. "type": "string"
  920. }
  921. }
  922. },
  923. "md.UpdateAdminStateReq": {
  924. "type": "object",
  925. "required": [
  926. "adm_id",
  927. "state"
  928. ],
  929. "properties": {
  930. "adm_id": {
  931. "type": "integer"
  932. },
  933. "state": {
  934. "type": "integer"
  935. }
  936. }
  937. },
  938. "md.UpdateRoleReq": {
  939. "type": "object",
  940. "required": [
  941. "memo",
  942. "name",
  943. "role_id"
  944. ],
  945. "properties": {
  946. "memo": {
  947. "type": "string"
  948. },
  949. "name": {
  950. "type": "string"
  951. },
  952. "role_id": {
  953. "type": "integer"
  954. }
  955. }
  956. },
  957. "md.UpdateRoleStateReq": {
  958. "type": "object",
  959. "required": [
  960. "role_id",
  961. "state"
  962. ],
  963. "properties": {
  964. "role_id": {
  965. "type": "integer"
  966. },
  967. "state": {
  968. "type": "integer"
  969. }
  970. }
  971. }
  972. },
  973. "securityDefinitions": {
  974. "MasterID": {
  975. "type": "apiKey",
  976. "name": "MasterID",
  977. "in": "header"
  978. }
  979. }
  980. }`
  981. // SwaggerInfo holds exported Swagger Info so clients can modify it
  982. var SwaggerInfo = &swag.Spec{
  983. Version: "1.0",
  984. Host: "localhost:1001 / xxxx.advertisement.dengbiao.top",
  985. BasePath: "",
  986. Schemes: []string{},
  987. Title: "广告联盟-站长平台",
  988. Description: "后台接口",
  989. InfoInstanceName: "swagger",
  990. SwaggerTemplate: docTemplate,
  991. }
  992. func init() {
  993. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  994. }