123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731 |
- {
- "swagger": "2.0",
- "info": {
- "description": "lzyd user server api",
- "title": "lzyd user server api",
- "contact": {},
- "license": {},
- "version": "1.0"
- },
- "paths": {
- "/app/launch": {
- "get": {
- "description": "获取App启动配置",
- "produces": [
- "application/json"
- ],
- "tags": [
- "Config"
- ],
- "summary": "获取App启动配置",
- "parameters": [
- {
- "type": "integer",
- "description": "客户端标识 1=iOS 2=Android 3=小程序",
- "name": "client",
- "in": "query",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\":\"data\":{}}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/customer/editCard": {
- "post": {
- "description": "修改身份证信息",
- "produces": [
- "application/json"
- ],
- "tags": [
- "Customer"
- ],
- "summary": "修改身份证信息",
- "parameters": [
- {
- "description": "修改身份证请求内容",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "$ref": "#/definitions/models.EditCardReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\"}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/customer/getInfo": {
- "get": {
- "description": "获取用户详细信息",
- "produces": [
- "application/json"
- ],
- "tags": [
- "Customer"
- ],
- "summary": "获取用户详细信息",
- "parameters": [
- {
- "type": "string",
- "description": "用户ID",
- "name": "user_code",
- "in": "query",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\",\"data\":{\"token\":\"\",\"customer\":{\"user_id\":\"\",\"mobile_phone\":\"\",\"user_name\":\"靓妆会员\",\"avatar\":\"https://\",\"gender\":2,\"birthday\":\"\",\"area\":\"江苏省-南京市-鼓楼区\",\"email\":\"\",\"customer_level\":0,\"user_point\":0,\"user_money\":0.00,\"register_time\":\"\"}}}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/customer/getPoints": {
- "get": {
- "description": "获取用户总积分",
- "produces": [
- "application/json"
- ],
- "tags": [
- "Customer"
- ],
- "summary": "获取用户总积分",
- "parameters": [
- {
- "type": "string",
- "description": "用户ID",
- "name": "user_code",
- "in": "query",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\",\"data\":{}}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/customer/updateAvatar": {
- "post": {
- "description": "修改用户的头像",
- "produces": [
- "application/json"
- ],
- "tags": [
- "Customer"
- ],
- "summary": "修改用户的头像",
- "parameters": [
- {
- "description": "修改用户头像请求内容",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "$ref": "#/definitions/models.UpdateAvatarReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\"}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/customer/updateProfile": {
- "post": {
- "description": "修改用户资料",
- "produces": [
- "application/json"
- ],
- "tags": [
- "Customer"
- ],
- "summary": "修改用户资料",
- "parameters": [
- {
- "description": "修改用户资料请求内容",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "$ref": "#/definitions/models.UpdateProfileReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\",\"data\":{}}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/customer/updatePwd": {
- "post": {
- "description": "修改密码",
- "produces": [
- "application/json"
- ],
- "tags": [
- "Customer"
- ],
- "summary": "修改密码",
- "parameters": [
- {
- "description": "修改密码请求内容",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "$ref": "#/definitions/models.UpdatePwdReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\"}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/passport/bindMobile": {
- "post": {
- "description": "绑定手机号",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Passport"
- ],
- "summary": "绑定手机号",
- "parameters": [
- {
- "description": "绑定手机号请求内容",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "$ref": "#/definitions/models.BindMobileReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\"}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/passport/getbackPwd": {
- "post": {
- "description": "密码找回",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Passport"
- ],
- "summary": "密码找回",
- "parameters": [
- {
- "description": "密码找回请求内容",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "$ref": "#/definitions/models.GetbackPwdReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\"}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/passport/loginByThirdParty": {
- "post": {
- "description": "第三方登录",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Passport"
- ],
- "summary": "第三方登录",
- "parameters": [
- {
- "description": "第三方登录请求内容",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "$ref": "#/definitions/models.ThirdLoginReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\",\"data\":{}}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/passport/quickLogin": {
- "post": {
- "description": "快捷登录",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Passport"
- ],
- "summary": "快捷登录",
- "parameters": [
- {
- "description": "快捷登录请求内容",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "$ref": "#/definitions/models.QuickLoginReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\",\"data\":{\"token\":\"\",\"user\":{}}}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/passport/register": {
- "post": {
- "description": "用户注册",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Passport"
- ],
- "summary": "用户注册",
- "parameters": [
- {
- "description": "注册请求内容",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "$ref": "#/definitions/models.RegisterReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\",\"data\":{\"token\":\"\",\"user\":{}}}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/passport/wechatLogin": {
- "post": {
- "description": "微信手机号码登录",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Passport"
- ],
- "summary": "微信手机号码登录",
- "parameters": [
- {
- "description": "微信手机登录请求内容",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "$ref": "#/definitions/models.WxLoginReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\",\"data\":{\"token\":\"\",\"user\":{}}}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/sms/get": {
- "get": {
- "description": "指定模板单发短信",
- "produces": [
- "application/json"
- ],
- "tags": [
- "Sms"
- ],
- "summary": "指定模板单发短信",
- "parameters": [
- {
- "type": "string",
- "description": "手机号码",
- "name": "mobile",
- "in": "query",
- "required": true
- },
- {
- "enum": [
- 1,
- 2,
- 3,
- 4
- ],
- "type": "integer",
- "default": 1,
- "description": "短信验证码类型(1=注册 2=找回密码 3=绑定手机号 4=快捷登录)",
- "name": "type",
- "in": "query",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200, \"message\":\"success\"}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/sms/remind": {
- "post": {
- "description": "发送提醒短信",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Sms"
- ],
- "summary": "发送提醒短信",
- "parameters": [
- {
- "description": "短信请求内容",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "type": "object",
- "$ref": "#/definitions/models.SendSmsReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200, \"message\":\"success\"}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/upload/image": {
- "post": {
- "description": "单图片上传接口, name=image",
- "consumes": [
- "multipart/form-data"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Upload"
- ],
- "summary": "图片上传",
- "parameters": [
- {
- "type": "string",
- "description": "上传者的用户ID",
- "name": "user_code",
- "in": "formData",
- "required": true
- },
- {
- "type": "file",
- "description": "上传的图片",
- "name": "image",
- "in": "formData",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "{\"code\":200,\"message\":\"success\",\"data\":\"http://image.bitekun.xin/images/2019-03/test.png\"}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "definitions": {
- "models.BindMobileReq": {
- "type": "object",
- "properties": {
- "mobile": {
- "type": "string"
- },
- "user_code": {
- "type": "string"
- },
- "valid_code": {
- "type": "string"
- }
- }
- },
- "models.EditCardReq": {
- "type": "object",
- "properties": {
- "card_back": {
- "type": "string"
- },
- "card_front": {
- "type": "string"
- },
- "card_id": {
- "type": "string"
- },
- "user_code": {
- "type": "string"
- }
- }
- },
- "models.GetbackPwdReq": {
- "type": "object",
- "properties": {
- "mobile": {
- "type": "string"
- },
- "password": {
- "type": "string"
- },
- "valid_code": {
- "type": "string"
- }
- }
- },
- "models.QuickLoginReq": {
- "type": "object",
- "properties": {
- "mobile": {
- "type": "string"
- },
- "valid_code": {
- "type": "string"
- }
- }
- },
- "models.RegisterReq": {
- "type": "object",
- "properties": {
- "area": {
- "type": "string"
- },
- "birthday": {
- "type": "string"
- },
- "gender": {
- "type": "integer"
- },
- "mobile": {
- "type": "string"
- },
- "password": {
- "type": "string"
- },
- "user_name": {
- "type": "string"
- },
- "valid_code": {
- "type": "string"
- }
- }
- },
- "models.SendSmsReq": {
- "type": "object",
- "properties": {
- "content": {
- "type": "string"
- },
- "mobile": {
- "type": "string"
- }
- }
- },
- "models.ThirdLoginReq": {
- "type": "object",
- "properties": {
- "avatar": {
- "type": "string"
- },
- "open_id": {
- "type": "string"
- },
- "user_name": {
- "type": "string"
- }
- }
- },
- "models.UpdateAvatarReq": {
- "type": "object",
- "properties": {
- "avatar": {
- "type": "string"
- },
- "user_code": {
- "type": "string"
- }
- }
- },
- "models.UpdateProfileReq": {
- "type": "object",
- "properties": {
- "area": {
- "type": "string"
- },
- "birthday": {
- "type": "string"
- },
- "city": {
- "type": "string"
- },
- "gender": {
- "type": "integer"
- },
- "identify": {
- "type": "string"
- },
- "nickname": {
- "type": "string"
- },
- "province": {
- "type": "string"
- },
- "user_code": {
- "type": "string"
- },
- "user_height": {
- "type": "integer"
- },
- "user_weight": {
- "type": "integer"
- }
- }
- },
- "models.UpdatePwdReq": {
- "type": "object",
- "properties": {
- "new_pwd": {
- "type": "string"
- },
- "old_pwd": {
- "type": "string"
- },
- "user_code": {
- "type": "string"
- }
- }
- },
- "models.WxLoginReq": {
- "type": "object",
- "properties": {
- "mobile": {
- "type": "string"
- }
- }
- }
- }
- }
|