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