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

swagger.json 6.1 KiB

1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
3週間前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
3週間前
1ヶ月前
3週間前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
1ヶ月前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. "description": "公排设置表单内容",
  122. "name": "req",
  123. "in": "body",
  124. "required": true,
  125. "schema": {}
  126. }
  127. ],
  128. "responses": {
  129. "200": {
  130. "description": "修改数据条数",
  131. "schema": {
  132. "type": "object",
  133. "additionalProperties": true
  134. }
  135. },
  136. "400": {
  137. "description": "具体错误",
  138. "schema": {
  139. "$ref": "#/definitions/md.Response"
  140. }
  141. }
  142. }
  143. }
  144. }
  145. },
  146. "definitions": {
  147. "md.LoginReq": {
  148. "type": "object",
  149. "required": [
  150. "password",
  151. "username"
  152. ],
  153. "properties": {
  154. "code": {
  155. "type": "string",
  156. "example": "验证码"
  157. },
  158. "password": {
  159. "type": "string",
  160. "example": "登录密码"
  161. },
  162. "username": {
  163. "type": "string",
  164. "example": "登录账号"
  165. }
  166. }
  167. },
  168. "md.LoginResponse": {
  169. "type": "object",
  170. "properties": {
  171. "token": {
  172. "type": "string"
  173. }
  174. }
  175. },
  176. "md.Response": {
  177. "type": "object",
  178. "properties": {
  179. "code": {
  180. "type": "string",
  181. "example": "响应码"
  182. },
  183. "data": {
  184. "description": "内容"
  185. },
  186. "msg": {
  187. "type": "string",
  188. "example": "具体错误原因"
  189. }
  190. }
  191. }
  192. },
  193. "securityDefinitions": {
  194. "MasterID": {
  195. "type": "apiKey",
  196. "name": "MasterID",
  197. "in": "header"
  198. }
  199. }
  200. }