| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- definitions:
- request.LoginReq:
- properties:
- clientType:
- description: 客户端类型,2-PC交易端 3-手机客户端_安卓 4-网页客户端 5-微信客户端 6-手机客户端_苹果
- type: integer
- password:
- description: 密码
- type: string
- userName:
- description: 用户名,可以是LoginID/LoginCode/手机号码
- type: string
- required:
- - clientType
- - password
- - userName
- type: object
- response.LoginRsp:
- properties:
- expiresAt:
- description: 过期时间
- type: integer
- loginId:
- description: 登录ID
- type: integer
- token:
- description: 新服务Token
- type: string
- userId:
- description: 用户ID
- type: integer
- type: object
- response.Response:
- properties:
- code:
- type: integer
- data: {}
- msg:
- type: string
- type: object
- info:
- contact: {}
- description: 新接入服务
- title: Swagger Example API
- version: 0.0.1
- paths:
- /Account/Login:
- post:
- consumes:
- - application/json
- parameters:
- - description: 登录入参
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/request.LoginReq'
- produces:
- - application/json
- responses:
- "200":
- description: 返回包括用户信息,token,过期时间
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- data:
- $ref: '#/definitions/response.LoginRsp'
- msg:
- type: string
- type: object
- summary: 账户登录
- tags:
- - 账户服务
- securityDefinitions:
- ApiKeyAuth:
- in: header
- name: x-token
- type: apiKey
- swagger: "2.0"
|