{ "swagger": "2.0", "info": { "description": "移动端接口", "title": "智莺生活移动端接口", "termsOfService": "智莺生活后端组", "contact": { "name": "sherlockwhite" }, "version": "1.0" }, "host": "localhost:5000", "paths": { "/api/v1/communityTeam/agent/login": { "post": { "description": "登入", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "登陆" ], "summary": "登陆", "parameters": [ { "description": "请求参数", "name": "req", "in": "body", "required": true, "schema": { "$ref": "#/definitions/md.FastLoginRequestBody" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/md.LoginResponse" } }, "400": { "description": "具体错误", "schema": { "$ref": "#/definitions/md.Response" } } } } } }, "definitions": { "md.FastLoginRequestBody": { "type": "object", "properties": { "captcha": { "type": "string" }, "card_key": { "description": "权益卡卡密", "type": "string" }, "card_num": { "description": "权益卡卡号", "type": "string" }, "invited_code": { "description": "邀请码", "type": "string" }, "is_not_create": { "type": "string" }, "mobile": { "type": "string" }, "parent_uid": { "description": "上级ID", "type": "string" }, "password": { "type": "string" }, "pic_code": { "type": "string" }, "pic_code_id": { "type": "string" }, "return_user_msg": { "type": "string" }, "task_id": { "type": "string" }, "task_type": { "type": "string" }, "type": { "type": "string" }, "zone": { "type": "string" } } }, "md.LoginResponse": { "type": "object", "properties": { "alipay_user_id": { "type": "string" }, "avatar": { "type": "string" }, "bind_phone_enable": { "type": "string" }, "check_bind_phone": { "type": "string" }, "invite_code": { "type": "string" }, "is_need_check_nickname": { "type": "string" }, "is_pid": { "type": "string" }, "jd_applet_open_id": { "type": "string" }, "password": { "type": "string" }, "perms": { "type": "array", "items": { "type": "string" } }, "phone": { "type": "string" }, "register_invite_code_enable": { "description": "邀请码跳转是否开启", "type": "string" }, "register_invite_code_should_input": { "description": "邀请码是否必填", "type": "string" }, "token": { "type": "string" }, "user_id": { "type": "string" }, "username": { "type": "string" }, "wechat_applet_open_id": { "type": "string" }, "wechat_union_id": { "type": "string" } } }, "md.Response": { "type": "object", "properties": { "code": { "type": "string", "example": "响应码" }, "data": { "description": "内容" }, "msg": { "type": "string", "example": "具体错误原因" } } } }, "securityDefinitions": { "MasterID": { "type": "apiKey", "name": "MasterID", "in": "header" } } }