Created
September 22, 2017 07:52
-
-
Save hooklife/019901095f425c073b5abe7635175adc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
description: >- | |
金服项目接口 授权 bearerey | |
J0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEwMDEyMTU1NTEsImlzcyI6Imh0dHA6Ly9qaW5mdWFwaS5kZXYvYXBpL3YxL2xvZ2luIiwiaWF0IjoxNTA1ODA3MjAzLCJleHAiOjE1MDU4MTA4MDMsIm5iZiI6MTUwNTgwNzIwMywianRpIjoiZVpMQ21wR3pnNFg3ejQ3TCJ9.qPy4ZOkb9vKVwwCGAzh6ypw6kl7AJNMi7ICrTX-8MSg | |
version: 1.0.0 | |
title: 金服项目接口 | |
host: 'localhost:7006' | |
basePath: /api/v1 | |
schemes: | |
- http | |
paths: | |
/MyAssets: | |
get: | |
tags: | |
- 我的资产 | |
summary: 我的资产 | |
operationId: MyAssets | |
consumes: | |
- application/json | |
produces: | |
- application/json | |
responses: | |
'200': | |
schema: | |
type: object | |
properties: | |
data: | |
type: array | |
items: | |
$ref: '#/definitions/MyAssets' | |
description: 成功返回 | |
/Transaction/SetPassword: | |
get: | |
tags: | |
- 提现 | |
summary: 提现-设置交易密码 | |
operationId: SetPassword | |
consumes: | |
- application/json | |
produces: | |
- application/json | |
responses: | |
'200': | |
schema: | |
$ref: '#/definitions/SetPassword' | |
description: 成功返回 | |
/Transaction/GetMoney: | |
post: | |
tags: | |
- 提现 | |
summary: 提现-请输入交易密码 | |
operationId: Withdraw_cash | |
consumes: | |
- application/json | |
produces: | |
- application/json | |
parameters: | |
- in: query | |
name: money | |
description: 现金 | |
required: true | |
type: integer | |
- in: query | |
name: password | |
description: 交易密码 | |
required: true | |
type: integer | |
responses: | |
'200': | |
schema: | |
$ref: '#/definitions/GetMoney' | |
description: 成功返回 | |
/Transaction/GetMoneyState: | |
get: | |
tags: | |
- 提现 | |
summary: 提现-提现状态 | |
operationId: GetMoneyStats | |
consumes: | |
- application/json | |
produces: | |
- application/json | |
parameters: | |
- in: query | |
name: orderMoney | |
description: 订单状态 | |
required: true | |
type: string | |
responses: | |
'200': | |
schema: | |
type: object | |
properties: | |
data: | |
type: array | |
items: | |
$ref: '#/definitions/GetMoneyState' | |
description: 成功返回 | |
/Transaction/GetMoneyRecord: | |
get: | |
tags: | |
- 提现 | |
summary: 提现-提现记录 | |
operationId: GetMoneyRecord | |
consumes: | |
- application/json | |
produces: | |
- application/json | |
parameters: | |
- in: query | |
name: page | |
description: 分页 | |
required: true | |
type: integer | |
responses: | |
'200': | |
schema: | |
type: object | |
properties: | |
data: | |
type: array | |
items: | |
$ref: '#/definitions/GetMoneyRecord' | |
description: 成功返回 | |
securityDefinitions: | |
Bearer: | |
type: apiKey | |
name: Authorization | |
in: header | |
definitions: | |
SetPassword: | |
type: object | |
properties: | |
data: | |
type: integer | |
description: '返回值 1(成功) 0 (失败) ' | |
GetMoney: | |
type: object | |
properties: | |
data: | |
type: integer | |
description: '返回值 1(成功) 0 (失败) ' | |
GetMoneyState: | |
type: object | |
properties: | |
state: | |
type: integer | |
description: '提现类型:0-提现失败,1-申请提现,2-等待银行处理,3-提现到账' | |
money: | |
type: string | |
description: '金提现额 1,000.00元' | |
poundage: | |
type: string | |
description: '手续费 2.00元' | |
bank: | |
type: string | |
description: '到账银行' | |
text: | |
type: string | |
description: '备注: 预计1-3个工作日到账,遇双休日和法定节假日顺延' | |
GetMoneyRecord: | |
type: object | |
properties: | |
title: | |
type: string | |
description: '申请提现/申请失败' | |
money: | |
type: integer | |
description: '-200.00元 ' | |
date: | |
type: integer | |
description: '2017-08-01 18:00:25' | |
poundage: | |
type: string | |
description: '包含手续费2.00元' | |
MyAssets: | |
type: object | |
properties: | |
sum: | |
type: string | |
description: '账户总资产' | |
earnings: | |
type: string | |
description: '累计收益' | |
y_money: | |
type: string | |
description: '账户余额' | |
d_money: | |
type: string | |
description: '待收本金' | |
d_earnings: | |
type: string | |
description: '待收收益' | |
t_money: | |
type: string | |
description: '提现中金额' | |
proportion: | |
type: string | |
description: '比例' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment