| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- 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
- request.MQBodyReq:
- properties:
- data:
- description: 请求数据
- type: string
- funCodeReq:
- description: 请求功能码
- type: integer
- funCodeRsp:
- description: 回复功能码
- type: integer
- isEncrypted:
- description: 是否加密
- type: boolean
- required:
- - data
- - funCodeReq
- - isEncrypted
- type: object
- request.MQNtfReq:
- properties:
- data:
- description: 数据
- type: string
- funCode:
- description: 功能码
- type: integer
- topic:
- description: 主题
- type: string
- required:
- - data
- - funCode
- type: object
- request.QuoteGoods:
- properties:
- exchangeId:
- description: 交易所代码,一般写死250
- type: integer
- goodsCode:
- description: 商品代码,全大写
- type: string
- type: object
- request.QuoteSubscribeReq:
- properties:
- quoteGoodses:
- description: 待订阅商品信息
- items:
- $ref: '#/definitions/request.QuoteGoods'
- type: array
- 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.MQBodyRsp:
- properties:
- data:
- description: 请求数据
- type: string
- funcode:
- description: 回复功能码
- type: integer
- isEncrypted:
- description: 是否加密
- type: boolean
- 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:
- - 账户服务
- /Account/Loginout:
- get:
- consumes:
- - application/json
- produces:
- - application/json
- responses:
- "200":
- description: 出参
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: 用户登出请求
- tags:
- - 账户服务
- /Account/TokenCheck:
- get:
- consumes:
- - application/json
- produces:
- - application/json
- responses:
- "200":
- description: 操作成功
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: Token校验
- tags:
- - 账户服务
- /MQ/SendMsgToMQ:
- post:
- consumes:
- - application/json
- parameters:
- - description: 入参
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/request.MQBodyReq'
- produces:
- - application/json
- responses:
- "200":
- description: 出参
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- data:
- $ref: '#/definitions/response.MQBodyRsp'
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: 总线业务
- tags:
- - 总线业务
- /MQ/SendNtfToMQ:
- post:
- consumes:
- - application/json
- parameters:
- - description: 入参
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/request.MQNtfReq'
- produces:
- - application/json
- responses:
- "200":
- description: 出参
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- summary: 总线通知
- tags:
- - 总线业务
- /Quote/QuoteSubscribe:
- post:
- consumes:
- - application/json
- parameters:
- - description: 入参1
- in: body
- name: data
- required: true
- schema:
- $ref: '#/definitions/request.QuoteSubscribeReq'
- produces:
- - application/json
- responses:
- "200":
- description: 出参
- schema:
- allOf:
- - $ref: '#/definitions/response.Response'
- - properties:
- msg:
- type: string
- type: object
- security:
- - ApiKeyAuth: []
- summary: 订阅商品实时行情请求
- tags:
- - 实时行情
- securityDefinitions:
- ApiKeyAuth:
- in: header
- name: x-token
- type: apiKey
- swagger: "2.0"
|