蛋蛋星球-客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

swagger.json 11 KiB

1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
3 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
4 weeks ago
1 month ago
3 weeks ago
1 month ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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/md.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. "/api/publicPlatoon/relationshipMap": {
  181. "get": {
  182. "description": "关系分布图(获取)",
  183. "consumes": [
  184. "application/json"
  185. ],
  186. "produces": [
  187. "application/json"
  188. ],
  189. "tags": [
  190. "公排管理"
  191. ],
  192. "summary": "制度中心-公排管理-关系分布图(获取)",
  193. "parameters": [
  194. {
  195. "type": "string",
  196. "description": "验证参数Bearer和token空格拼接",
  197. "name": "Authorization",
  198. "in": "header",
  199. "required": true
  200. },
  201. {
  202. "type": "string",
  203. "description": "phone",
  204. "name": "phone",
  205. "in": "query",
  206. "required": true
  207. },
  208. {
  209. "type": "string",
  210. "description": "uid",
  211. "name": "uid",
  212. "in": "query",
  213. "required": true
  214. }
  215. ],
  216. "responses": {
  217. "200": {
  218. "description": "具体数据",
  219. "schema": {
  220. "$ref": "#/definitions/md.TreeNode"
  221. }
  222. },
  223. "400": {
  224. "description": "具体错误",
  225. "schema": {
  226. "$ref": "#/definitions/md.Response"
  227. }
  228. }
  229. }
  230. }
  231. }
  232. },
  233. "definitions": {
  234. "md.GetPublicPlatoonBasicResp": {
  235. "type": "object",
  236. "properties": {
  237. "is_open": {
  238. "type": "integer"
  239. },
  240. "is_self_active_get_team_revenue": {
  241. "type": "integer"
  242. },
  243. "originator_uid": {
  244. "type": "integer"
  245. },
  246. "several_rows": {
  247. "type": "integer"
  248. },
  249. "several_times": {
  250. "type": "integer"
  251. },
  252. "system_punish_replace": {
  253. "type": "integer"
  254. },
  255. "system_punish_replace_value": {
  256. "type": "integer"
  257. }
  258. }
  259. },
  260. "md.LoginReq": {
  261. "type": "object",
  262. "required": [
  263. "password",
  264. "username"
  265. ],
  266. "properties": {
  267. "code": {
  268. "type": "string",
  269. "example": "验证码"
  270. },
  271. "password": {
  272. "type": "string",
  273. "example": "登录密码"
  274. },
  275. "username": {
  276. "type": "string",
  277. "example": "登录账号"
  278. }
  279. }
  280. },
  281. "md.LoginResponse": {
  282. "type": "object",
  283. "properties": {
  284. "token": {
  285. "type": "string"
  286. }
  287. }
  288. },
  289. "md.Response": {
  290. "type": "object",
  291. "properties": {
  292. "code": {
  293. "type": "string",
  294. "example": "响应码"
  295. },
  296. "data": {
  297. "description": "内容"
  298. },
  299. "msg": {
  300. "type": "string",
  301. "example": "具体错误原因"
  302. }
  303. }
  304. },
  305. "md.TreeNode": {
  306. "type": "object",
  307. "properties": {
  308. "avatar_url": {
  309. "type": "string"
  310. },
  311. "level": {
  312. "type": "integer"
  313. },
  314. "nickname": {
  315. "type": "string"
  316. },
  317. "phone": {
  318. "type": "string"
  319. },
  320. "pid": {
  321. "type": "integer"
  322. },
  323. "position": {
  324. "type": "integer"
  325. },
  326. "son": {
  327. "type": "array",
  328. "items": {
  329. "$ref": "#/definitions/md.TreeNode"
  330. }
  331. },
  332. "system_id": {
  333. "type": "integer"
  334. },
  335. "uid": {
  336. "type": "integer"
  337. }
  338. }
  339. }
  340. },
  341. "securityDefinitions": {
  342. "MasterID": {
  343. "type": "apiKey",
  344. "name": "MasterID",
  345. "in": "header"
  346. }
  347. }
  348. }