蛋蛋星球 后台端
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

261 líneas
8.1 KiB

  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "管理后台接口文档",
  5. "title": "蛋蛋星球-管理后台",
  6. "termsOfService": "http://swagger.io/terms/",
  7. "contact": {
  8. "name": "dengbiao",
  9. "url": "http://www.swagger.io/support",
  10. "email": "1239118001@qq.com"
  11. },
  12. "license": {
  13. "name": "Apache 2.0",
  14. "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
  15. },
  16. "version": "1.0"
  17. },
  18. "host": "localhost:4001",
  19. "paths": {
  20. "/api/demo": {
  21. "post": {
  22. "description": "Demo样例测试",
  23. "consumes": [
  24. "application/json"
  25. ],
  26. "produces": [
  27. "application/json"
  28. ],
  29. "tags": [
  30. "Demo"
  31. ],
  32. "summary": "Demo测试",
  33. "parameters": [
  34. {
  35. "description": "用户名密码",
  36. "name": "req",
  37. "in": "body",
  38. "required": true,
  39. "schema": {}
  40. }
  41. ],
  42. "responses": {
  43. "200": {
  44. "description": "token",
  45. "schema": {
  46. "type": "object",
  47. "additionalProperties": true
  48. }
  49. },
  50. "400": {
  51. "description": "具体错误",
  52. "schema": {
  53. "$ref": "#/definitions/md.Response"
  54. }
  55. }
  56. }
  57. }
  58. },
  59. "/api/login": {
  60. "post": {
  61. "description": "登入",
  62. "consumes": [
  63. "application/json"
  64. ],
  65. "produces": [
  66. "application/json"
  67. ],
  68. "tags": [
  69. "登录"
  70. ],
  71. "summary": "登陆",
  72. "parameters": [
  73. {
  74. "description": "用户名密码",
  75. "name": "req",
  76. "in": "body",
  77. "required": true,
  78. "schema": {
  79. "$ref": "#/definitions/md.LoginReq"
  80. }
  81. }
  82. ],
  83. "responses": {
  84. "200": {
  85. "description": "token",
  86. "schema": {
  87. "$ref": "#/definitions/md.LoginResponse"
  88. }
  89. },
  90. "400": {
  91. "description": "具体错误",
  92. "schema": {
  93. "$ref": "#/definitions/md.Response"
  94. }
  95. }
  96. }
  97. }
  98. },
  99. "/api/publicPlatoon/getBasic": {
  100. "get": {
  101. "description": "公排基础设置(获取)",
  102. "consumes": [
  103. "application/json"
  104. ],
  105. "produces": [
  106. "application/json"
  107. ],
  108. "tags": [
  109. "公排管理"
  110. ],
  111. "summary": "制度中心-公排管理-公排基础设置(获取)",
  112. "parameters": [
  113. {
  114. "type": "string",
  115. "description": "验证参数Bearer和token空格拼接",
  116. "name": "Authorization",
  117. "in": "header",
  118. "required": true
  119. }
  120. ],
  121. "responses": {
  122. "200": {
  123. "description": "具体数据",
  124. "schema": {
  125. "$ref": "#/definitions/public_platoon.GetPublicPlatoonBasicResp"
  126. }
  127. },
  128. "400": {
  129. "description": "具体错误",
  130. "schema": {
  131. "$ref": "#/definitions/md.Response"
  132. }
  133. }
  134. }
  135. },
  136. "post": {
  137. "description": "公排基础设置(修改)",
  138. "consumes": [
  139. "application/json"
  140. ],
  141. "produces": [
  142. "application/json"
  143. ],
  144. "tags": [
  145. "公排管理"
  146. ],
  147. "summary": "制度中心-公排管理-公排基础设置(修改)",
  148. "parameters": [
  149. {
  150. "type": "string",
  151. "description": "验证参数Bearer和token空格拼接",
  152. "name": "Authorization",
  153. "in": "header",
  154. "required": true
  155. },
  156. {
  157. "description": "公排设置表单内容",
  158. "name": "req",
  159. "in": "body",
  160. "required": true,
  161. "schema": {}
  162. }
  163. ],
  164. "responses": {
  165. "200": {
  166. "description": "success",
  167. "schema": {
  168. "type": "string"
  169. }
  170. },
  171. "400": {
  172. "description": "具体错误",
  173. "schema": {
  174. "$ref": "#/definitions/md.Response"
  175. }
  176. }
  177. }
  178. }
  179. }
  180. },
  181. "definitions": {
  182. "md.LoginReq": {
  183. "type": "object",
  184. "required": [
  185. "password",
  186. "username"
  187. ],
  188. "properties": {
  189. "code": {
  190. "type": "string",
  191. "example": "验证码"
  192. },
  193. "password": {
  194. "type": "string",
  195. "example": "登录密码"
  196. },
  197. "username": {
  198. "type": "string",
  199. "example": "登录账号"
  200. }
  201. }
  202. },
  203. "md.LoginResponse": {
  204. "type": "object",
  205. "properties": {
  206. "token": {
  207. "type": "string"
  208. }
  209. }
  210. },
  211. "md.Response": {
  212. "type": "object",
  213. "properties": {
  214. "code": {
  215. "type": "string",
  216. "example": "响应码"
  217. },
  218. "data": {
  219. "description": "内容"
  220. },
  221. "msg": {
  222. "type": "string",
  223. "example": "具体错误原因"
  224. }
  225. }
  226. },
  227. "public_platoon.GetPublicPlatoonBasicResp": {
  228. "type": "object",
  229. "properties": {
  230. "is_open": {
  231. "type": "integer"
  232. },
  233. "is_self_active_get_team_revenue": {
  234. "type": "integer"
  235. },
  236. "originator_uid": {
  237. "type": "integer"
  238. },
  239. "several_rows": {
  240. "type": "integer"
  241. },
  242. "several_times": {
  243. "type": "integer"
  244. },
  245. "system_punish_replace": {
  246. "type": "integer"
  247. },
  248. "system_punish_replace_value": {
  249. "type": "integer"
  250. }
  251. }
  252. }
  253. },
  254. "securityDefinitions": {
  255. "MasterID": {
  256. "type": "apiKey",
  257. "name": "MasterID",
  258. "in": "header"
  259. }
  260. }
  261. }