{ "swagger": "2.0", "info": { "description": "管理后台接口文档", "title": "蛋蛋星球-管理后台", "termsOfService": "http://swagger.io/terms/", "contact": { "name": "dengbiao", "url": "http://www.swagger.io/support", "email": "1239118001@qq.com" }, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" }, "version": "1.0" }, "host": "localhost:4001", "paths": { "/api/demo": { "post": { "description": "Demo样例测试", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Demo" ], "summary": "Demo测试", "parameters": [ { "description": "用户名密码", "name": "req", "in": "body", "required": true, "schema": {} } ], "responses": { "200": { "description": "token", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "具体错误", "schema": { "$ref": "#/definitions/md.Response" } } } } }, "/api/login": { "post": { "description": "登入", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "登录" ], "summary": "登陆", "parameters": [ { "description": "用户名密码", "name": "req", "in": "body", "required": true, "schema": { "$ref": "#/definitions/md.LoginReq" } } ], "responses": { "200": { "description": "token", "schema": { "$ref": "#/definitions/md.LoginResponse" } }, "400": { "description": "具体错误", "schema": { "$ref": "#/definitions/md.Response" } } } } }, "/api/publicPlatoon/getBasic": { "get": { "description": "公排基础设置(获取)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "公排管理" ], "summary": "制度中心-公排管理-公排基础设置(获取)", "parameters": [ { "type": "string", "description": "验证参数Bearer和token空格拼接", "name": "Authorization", "in": "header", "required": true } ], "responses": { "200": { "description": "具体数据", "schema": { "$ref": "#/definitions/md.GetPublicPlatoonBasicResp" } }, "400": { "description": "具体错误", "schema": { "$ref": "#/definitions/md.Response" } } } }, "post": { "description": "公排基础设置(修改)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "公排管理" ], "summary": "制度中心-公排管理-公排基础设置(修改)", "parameters": [ { "type": "string", "description": "验证参数Bearer和token空格拼接", "name": "Authorization", "in": "header", "required": true }, { "description": "公排设置表单内容", "name": "req", "in": "body", "required": true, "schema": {} } ], "responses": { "200": { "description": "success", "schema": { "type": "string" } }, "400": { "description": "具体错误", "schema": { "$ref": "#/definitions/md.Response" } } } } }, "/api/publicPlatoon/relationshipMap": { "get": { "description": "关系分布图(获取)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "公排管理" ], "summary": "制度中心-公排管理-关系分布图(获取)", "parameters": [ { "type": "string", "description": "验证参数Bearer和token空格拼接", "name": "Authorization", "in": "header", "required": true }, { "type": "string", "description": "phone", "name": "phone", "in": "query", "required": true }, { "type": "string", "description": "uid", "name": "uid", "in": "query", "required": true } ], "responses": { "200": { "description": "具体数据", "schema": { "$ref": "#/definitions/md.TreeNode" } }, "400": { "description": "具体错误", "schema": { "$ref": "#/definitions/md.Response" } } } } } }, "definitions": { "md.GetPublicPlatoonBasicResp": { "type": "object", "properties": { "is_open": { "type": "integer" }, "is_self_active_get_team_revenue": { "type": "integer" }, "originator_uid": { "type": "integer" }, "several_rows": { "type": "integer" }, "several_times": { "type": "integer" }, "system_punish_replace": { "type": "integer" }, "system_punish_replace_value": { "type": "integer" } } }, "md.LoginReq": { "type": "object", "required": [ "password", "username" ], "properties": { "code": { "type": "string", "example": "验证码" }, "password": { "type": "string", "example": "登录密码" }, "username": { "type": "string", "example": "登录账号" } } }, "md.LoginResponse": { "type": "object", "properties": { "token": { "type": "string" } } }, "md.Response": { "type": "object", "properties": { "code": { "type": "string", "example": "响应码" }, "data": { "description": "内容" }, "msg": { "type": "string", "example": "具体错误原因" } } }, "md.TreeNode": { "type": "object", "properties": { "avatar_url": { "type": "string" }, "level": { "type": "integer" }, "nickname": { "type": "string" }, "phone": { "type": "string" }, "pid": { "type": "integer" }, "position": { "type": "integer" }, "son": { "type": "array", "items": { "$ref": "#/definitions/md.TreeNode" } }, "system_id": { "type": "integer" }, "uid": { "type": "integer" } } } }, "securityDefinitions": { "MasterID": { "type": "apiKey", "name": "MasterID", "in": "header" } } }