123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- {
- "swagger": "2.0",
- "info": {
- "description": "一个基于微信小程序的校园二手交易平台的api",
- "title": "二手交易",
- "termsOfService": "http://swagger.io/terms/",
- "contact": {},
- "license": {
- "name": "Apache 2.0",
- "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
- },
- "version": "1.0"
- },
- "host": "127.0.0.1:8084",
- "basePath": "/WeChatTrading/trading-go",
- "paths": {
- "/user/login": {
- "post": {
- "tags": [
- "用户模块"
- ],
- "summary": "登录",
- "parameters": [
- {
- "type": "string",
- "description": "用户ID",
- "name": "uid",
- "in": "formData"
- }
- ],
- "responses": {
- "200": {
- "description": "code\",\"data\",\"token\"}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/user/register": {
- "post": {
- "tags": [
- "用户模块"
- ],
- "summary": "创建用户",
- "parameters": [
- {
- "type": "string",
- "description": "用户ID",
- "name": "uid",
- "in": "formData"
- },
- {
- "type": "string",
- "description": "用户名",
- "name": "name",
- "in": "formData"
- },
- {
- "type": "string",
- "description": "头像",
- "name": "avatar",
- "in": "formData"
- }
- ],
- "responses": {
- "200": {
- "description": "code\",\"data\",\"message\"}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }
|