蛋蛋星球 后台端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

520 行
17 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/exchangeUserPosition": {
  100. "post": {
  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": ""
  133. }
  134. },
  135. "400": {
  136. "description": "具体错误",
  137. "schema": {
  138. "$ref": "#/definitions/md.Response"
  139. }
  140. }
  141. }
  142. }
  143. },
  144. "/api/publicPlatoon/findSubUserRelationshipMap": {
  145. "get": {
  146. "description": "关系分布图(获取指定用户上级)",
  147. "consumes": [
  148. "application/json"
  149. ],
  150. "produces": [
  151. "application/json"
  152. ],
  153. "tags": [
  154. "公排管理"
  155. ],
  156. "summary": "制度中心-公排管理-关系分布图(获取指定用户上级)",
  157. "parameters": [
  158. {
  159. "type": "string",
  160. "description": "验证参数Bearer和token空格拼接",
  161. "name": "Authorization",
  162. "in": "header",
  163. "required": true
  164. },
  165. {
  166. "type": "string",
  167. "description": "用户ID",
  168. "name": "uid",
  169. "in": "query",
  170. "required": true
  171. }
  172. ],
  173. "responses": {
  174. "200": {
  175. "description": "具体数据",
  176. "schema": {
  177. "$ref": "#/definitions/md.RelationshipMap"
  178. }
  179. },
  180. "400": {
  181. "description": "具体错误",
  182. "schema": {
  183. "$ref": "#/definitions/md.Response"
  184. }
  185. }
  186. }
  187. }
  188. },
  189. "/api/publicPlatoon/findUserRelationshipMap": {
  190. "get": {
  191. "description": "关系分布图(获取指定用户下级)",
  192. "consumes": [
  193. "application/json"
  194. ],
  195. "produces": [
  196. "application/json"
  197. ],
  198. "tags": [
  199. "公排管理"
  200. ],
  201. "summary": "制度中心-公排管理-关系分布图(获取指定用户下级)",
  202. "parameters": [
  203. {
  204. "type": "string",
  205. "description": "验证参数Bearer和token空格拼接",
  206. "name": "Authorization",
  207. "in": "header",
  208. "required": true
  209. },
  210. {
  211. "type": "string",
  212. "description": "用户ID",
  213. "name": "uid",
  214. "in": "query",
  215. "required": true
  216. }
  217. ],
  218. "responses": {
  219. "200": {
  220. "description": "具体数据",
  221. "schema": {
  222. "$ref": "#/definitions/md.TreeNode"
  223. }
  224. },
  225. "400": {
  226. "description": "具体错误",
  227. "schema": {
  228. "$ref": "#/definitions/md.Response"
  229. }
  230. }
  231. }
  232. }
  233. },
  234. "/api/publicPlatoon/getBasic": {
  235. "get": {
  236. "description": "公排基础设置(获取)",
  237. "consumes": [
  238. "application/json"
  239. ],
  240. "produces": [
  241. "application/json"
  242. ],
  243. "tags": [
  244. "公排管理"
  245. ],
  246. "summary": "制度中心-公排管理-公排基础设置(获取)",
  247. "parameters": [
  248. {
  249. "type": "string",
  250. "description": "验证参数Bearer和token空格拼接",
  251. "name": "Authorization",
  252. "in": "header",
  253. "required": true
  254. }
  255. ],
  256. "responses": {
  257. "200": {
  258. "description": "具体数据",
  259. "schema": {
  260. "$ref": "#/definitions/md.GetPublicPlatoonBasicResp"
  261. }
  262. },
  263. "400": {
  264. "description": "具体错误",
  265. "schema": {
  266. "$ref": "#/definitions/md.Response"
  267. }
  268. }
  269. }
  270. }
  271. },
  272. "/api/publicPlatoon/relationshipMap": {
  273. "get": {
  274. "description": "关系分布图(获取)",
  275. "consumes": [
  276. "application/json"
  277. ],
  278. "produces": [
  279. "application/json"
  280. ],
  281. "tags": [
  282. "公排管理"
  283. ],
  284. "summary": "制度中心-公排管理-关系分布图(获取)",
  285. "parameters": [
  286. {
  287. "type": "string",
  288. "description": "验证参数Bearer和token空格拼接",
  289. "name": "Authorization",
  290. "in": "header",
  291. "required": true
  292. },
  293. {
  294. "type": "string",
  295. "description": "phone",
  296. "name": "phone",
  297. "in": "query",
  298. "required": true
  299. },
  300. {
  301. "type": "string",
  302. "description": "uid",
  303. "name": "uid",
  304. "in": "query",
  305. "required": true
  306. }
  307. ],
  308. "responses": {
  309. "200": {
  310. "description": "具体数据",
  311. "schema": {
  312. "$ref": "#/definitions/md.TreeNode"
  313. }
  314. },
  315. "400": {
  316. "description": "具体错误",
  317. "schema": {
  318. "$ref": "#/definitions/md.Response"
  319. }
  320. }
  321. }
  322. }
  323. },
  324. "/api/publicPlatoon/updateBasic": {
  325. "put": {
  326. "description": "公排基础设置(修改)",
  327. "consumes": [
  328. "application/json"
  329. ],
  330. "produces": [
  331. "application/json"
  332. ],
  333. "tags": [
  334. "公排管理"
  335. ],
  336. "summary": "制度中心-公排管理-公排基础设置(修改)",
  337. "parameters": [
  338. {
  339. "type": "string",
  340. "description": "验证参数Bearer和token空格拼接",
  341. "name": "Authorization",
  342. "in": "header",
  343. "required": true
  344. },
  345. {
  346. "description": "公排设置表单内容",
  347. "name": "req",
  348. "in": "body",
  349. "required": true,
  350. "schema": {}
  351. }
  352. ],
  353. "responses": {
  354. "200": {
  355. "description": "success",
  356. "schema": {
  357. "type": "string"
  358. }
  359. },
  360. "400": {
  361. "description": "具体错误",
  362. "schema": {
  363. "$ref": "#/definitions/md.Response"
  364. }
  365. }
  366. }
  367. }
  368. }
  369. },
  370. "definitions": {
  371. "md.GetPublicPlatoonBasicResp": {
  372. "type": "object",
  373. "properties": {
  374. "is_open": {
  375. "type": "integer"
  376. },
  377. "is_self_active_get_team_revenue": {
  378. "type": "integer"
  379. },
  380. "originator_uid": {
  381. "type": "integer"
  382. },
  383. "several_rows": {
  384. "type": "integer"
  385. },
  386. "several_times": {
  387. "type": "integer"
  388. },
  389. "system_punish_replace": {
  390. "type": "integer"
  391. },
  392. "system_punish_replace_value": {
  393. "type": "integer"
  394. }
  395. }
  396. },
  397. "md.LoginReq": {
  398. "type": "object",
  399. "required": [
  400. "password",
  401. "username"
  402. ],
  403. "properties": {
  404. "code": {
  405. "type": "string",
  406. "example": "验证码"
  407. },
  408. "password": {
  409. "type": "string",
  410. "example": "登录密码"
  411. },
  412. "username": {
  413. "type": "string",
  414. "example": "登录账号"
  415. }
  416. }
  417. },
  418. "md.LoginResponse": {
  419. "type": "object",
  420. "properties": {
  421. "token": {
  422. "type": "string"
  423. }
  424. }
  425. },
  426. "md.RelationshipMap": {
  427. "type": "object",
  428. "properties": {
  429. "avatar_url": {
  430. "type": "string"
  431. },
  432. "level": {
  433. "type": "integer"
  434. },
  435. "nickname": {
  436. "type": "string"
  437. },
  438. "phone": {
  439. "type": "string"
  440. },
  441. "pid": {
  442. "type": "integer"
  443. },
  444. "position": {
  445. "type": "integer"
  446. },
  447. "son": {
  448. "type": "array",
  449. "items": {
  450. "$ref": "#/definitions/md.RelationshipMap"
  451. }
  452. },
  453. "system_id": {
  454. "type": "integer"
  455. },
  456. "uid": {
  457. "type": "integer"
  458. }
  459. }
  460. },
  461. "md.Response": {
  462. "type": "object",
  463. "properties": {
  464. "code": {
  465. "type": "string",
  466. "example": "响应码"
  467. },
  468. "data": {
  469. "description": "内容"
  470. },
  471. "msg": {
  472. "type": "string",
  473. "example": "具体错误原因"
  474. }
  475. }
  476. },
  477. "md.TreeNode": {
  478. "type": "object",
  479. "properties": {
  480. "avatar_url": {
  481. "type": "string"
  482. },
  483. "level": {
  484. "type": "integer"
  485. },
  486. "nickname": {
  487. "type": "string"
  488. },
  489. "phone": {
  490. "type": "string"
  491. },
  492. "pid": {
  493. "type": "integer"
  494. },
  495. "position": {
  496. "type": "integer"
  497. },
  498. "son": {
  499. "type": "array",
  500. "items": {
  501. "$ref": "#/definitions/md.TreeNode"
  502. }
  503. },
  504. "system_id": {
  505. "type": "integer"
  506. },
  507. "uid": {
  508. "type": "integer"
  509. }
  510. }
  511. }
  512. },
  513. "securityDefinitions": {
  514. "MasterID": {
  515. "type": "apiKey",
  516. "name": "MasterID",
  517. "in": "header"
  518. }
  519. }
  520. }