文档
测试

新建债券

POST
http://127.0.0.1:11234/admin/bond

请求参数

参数名
类型
描述
必填
house
object
数据字典
必填
house_type
int
示例:1
必填
sale_type
int
示例:1
必填
property_type
int
示例:1
必填
title
string
示例:12.21COPTHALL AVENUE1 8888888888888888888
必填
addr
string
示例:London,EC2R 7DA
必填
rent
string
示例:1376197
必填
unit_price
string
示例:48
必填
market_price
string
示例:57.5
必填
area
string
示例:30833
必填
rate
string
示例:5.71
必填
increase_hot
string
示例:10000
必填
legal_currency
string
示例:GBP
必填
legal_amount
string
示例:10000
必填
icon
string
示例:icon_url
必填
investment_case
string
示例:investment_case_https://s3.ax1x.com/2020/12/05/DOpSEV.png
必填
property_details
string
示例:property_details_https://s3.ax1x.com/2020/12/05/DOpSEV.png
必填
financials
string
示例:financials_url
必填
destruction_detail
string
示例:destruction_detail_url
必填
documents
array
数据列表
必填
url
string
示例:solicitors_url
必填
file_type
int
示例:1
必填
covers
array
数据列表
必填
bond
object
数据字典
必填
account
string
示例:61121764767
必填
category
int
示例:2
必填
title
string
示例:12.21Bond 1 8888888888888888888888888888
必填
currency
string
示例:GBP
必填
icon
string
示例:https://s3.ax1x.com/2020/12/09/r9t3ut.png
必填
bonus_time
int
示例:1
必填
bonus_time_unit
string
示例:day
必填
sell_price
string
示例:1
必填
redeem_price
string
示例:0.8
必填
start_sell_share
string
示例:1000
必填
min_step_share
string
示例:500
必填
total_share
string
示例:1000000
必填
support_pay
array
数据列表
必填
publish_time
string
示例:2020-12-21T12:30:00.954969+08:00
必填
start_time
string
示例:2020-12-21T12:50:00.954969+08:00
必填
end_time
string
示例:2020-12-21T12:50:00.954969+08:00
可选

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
msg
string
示例:
必填
data
object
数据字典
必填
id
int
示例:1
必填
house_no
string
示例:619486483222757380
必填
title
string
示例:12.21COPTHALL AVENUE1 8888888888888888888
必填
sale_type
int
示例:1
必填
property_type
int
示例:1
必填
house_type
int
示例:1
必填
addr
string
示例:London,EC2R 7DA
必填
rent
string
示例:1376197
必填
unit_price
string
示例:48
必填
market_price
string
示例:57.5
必填
area
string
示例:30833
必填
rate
string
示例:5.71
必填
legal_amount
string
示例:10000
必填
legal_currency
string
示例:GBP
必填
state
int
示例:1
必填
increase_hot
string
示例:10000
必填
icon
object
数据字典
必填
id
int
示例:2
必填
url
string
示例:icon_url
必填
investment_case
object
数据字典
必填
id
int
示例:3
必填
url
string
示例:investment_case_https://s3.ax1x.com/2020/12/05/DOpSEV.png
必填
property_details
object
数据字典
必填
id
int
示例:4
必填
url
string
示例:property_details_https://s3.ax1x.com/2020/12/05/DOpSEV.png
必填
financials
object
数据字典
必填
id
int
示例:5
必填
url
string
示例:financials_url
必填
destruction_detail
object
数据字典
必填
id
int
示例:1
必填
url
string
示例:destruction_detail_url
必填
documents
array
数据列表
必填
id
int
示例:1
必填
url
string
示例:solicitors_url
必填
type
int
示例:1
必填
covers
array
数据列表
必填
id
int
示例:7
必填
url
string
示例:** https://s3.ax1x.com/2020/12/05/DOpSEV.png***
必填
bond
object
数据字典
必填
account
string
示例:256c4155-4bdc-4f66-89fa-42becdf606d4
必填
house_id
int
示例:1
必填
bond_no
string
示例:619486483222528001
必填
title
string
示例:12.21Bond 1 8888888888888888888888888888
必填
currency
string
示例:GBP
必填
state
int
示例:0
必填
category
int
示例:2
必填
bonus_time
int
示例:1
必填
bonus_time_unit
string
示例:day
必填
sell_price
string
示例:1
必填
redeem_price
string
示例:0.8
必填
start_sell_share
string
示例:1000
必填
min_step_share
string
示例:500
必填
total_share
string
示例:1000000
必填
rest_share
string
示例:1000000
必填
bonus_date
int
示例:1608595200000
必填
start_time
int
示例:1608526200954
必填
start_time_countdown
int
示例:0
必填
end_time
int
示例:0
必填
end_time_countdown
int
示例:0
必填
icon
object
数据字典
必填
id
int
示例:6
必填
url
string
示例:https://s3.ax1x.com/2020/12/09/r9t3ut.png
必填
support_pay
array
数据列表
必填
token
string
示例:ETH
必填
url
string
示例:https://testm.isecret.im/static/eth.png
必填
precision
int
示例:8
必填

说明 / 示例

请求示例: ``` { "house": { "house_type": 1, "sale_type": 1, "property_type": 1, "title": "12.21COPTHALL AVENUE1 8888888888888888888", "addr": "London,EC2R 7DA", "rent": "1376197", "unit_price": "48", "market_price": "57.5", "area": "30833", "rate": "5.71", "increase_hot": "10000", "legal_currency": "GBP", "legal_amount": "10000", "icon": "icon_url", "investment_case": "investment_case_https://s3.ax1x.com/2020/12/05/DOpSEV.png", "property_details": "property_details_https://s3.ax1x.com/2020/12/05/DOpSEV.png", "financials": "financials_url", "destruction_detail": "destruction_detail_url", "documents": [ { "url": "solicitors_url", "file_type": 1 }, { "url": "surveyors_url", "file_type": 2 }, { "url": "titleDeeds_url", "file_type": 3 }, { "url": "certificate_url", "file_type": 4 }, { "url": "creditRisk_url", "file_type": 5 }, { "url": "payment_url", "file_type": 6 } ], "covers": [ "** https://s3.ax1x.com/2020/12/05/DOpSEV.png***", "https://s3.ax1x.com/2020/12/05/DOSvBq.png", "https://s3.ax1x.com/2020/12/05/DOSjun.png", "https://s3.ax1x.com/2020/12/05/DOSOjs.png" ] }, "bond": { "account": "61121764767", "category": 2, "title": "12.21Bond 1 8888888888888888888888888888", "currency": "GBP", "icon": "https://s3.ax1x.com/2020/12/09/r9t3ut.png", "bonus_time": 1, "bonus_time_unit": "day", "sell_price": "1", "redeem_price": "0.8", "start_sell_share": "1000", "min_step_share": "500", "total_share": "1000000", "support_pay": [ "ETH", "BTC", "HGBP", "HOT" ], "publish_time": "2020-12-21T12:30:00.954969+08:00", "start_time": "2020-12-21T12:50:00.954969+08:00" } } ``` 返回示例: ``` { "code": 200, "msg": "", "data": { "id": 1, "house_no": "619486156882018308", "title": "12.21COPTHALL AVENUE1 8888888888888888888", "sale_type": 1, "property_type": 1, "house_type": 1, "addr": "London,EC2R 7DA", "rent": "1376197", "unit_price": "48", "market_price": "57.5", "area": "30833", "rate": "5.71", "legal_amount": "10000", "legal_currency": "GBP", "state": 1, "increase_hot": "10000", "icon": { "id": 2, "url": "icon_url" }, "investment_case": { "id": 3, "url": "investment_case_https://s3.ax1x.com/2020/12/05/DOpSEV.png" }, "property_details": { "id": 4, "url": "property_details_https://s3.ax1x.com/2020/12/05/DOpSEV.png" }, "financials": { "id": 5, "url": "financials_url" }, "destruction_detail": { "id": 1, "url": "destruction_detail_url" }, "documents": [ { "id": 1, "url": "solicitors_url", "type": 1 }, { "id": 2, "url": "surveyors_url", "type": 2 }, { "id": 3, "url": "titleDeeds_url", "type": 3 }, { "id": 4, "url": "certificate_url", "type": 4 }, { "id": 5, "url": "creditRisk_url", "type": 5 }, { "id": 6, "url": "payment_url", "type": 6 } ], "covers": [ { "id": 7, "url": "** https://s3.ax1x.com/2020/12/05/DOpSEV.png***" }, { "id": 8, "url": "https://s3.ax1x.com/2020/12/05/DOSvBq.png" }, { "id": 9, "url": "https://s3.ax1x.com/2020/12/05/DOSjun.png" }, { "id": 10, "url": "https://s3.ax1x.com/2020/12/05/DOSOjs.png" } ], "bond": { "account": "256c4155-4bdc-4f66-89fa-42becdf606d4", "house_id": 1, "bond_no": "619486156881657857", "title": "12.21Bond 1 8888888888888888888888888888", "currency": "GBP", "state": 0, "category": 2, "bonus_time": 1, "bonus_time_unit": "day", "sell_price": "1", "redeem_price": "0.8", "start_sell_share": "1000", "min_step_share": "500", "total_share": "1000000", "rest_share": "1000000", "bonus_date": 1608595200000, "start_time": 1608526200954, "start_time_countdown": 0, "end_time": 0, "end_time_countdown": 0, "icon": { "id": 6, "url": "https://s3.ax1x.com/2020/12/09/r9t3ut.png" }, "support_pay": [ { "token": "ETH", "url": "https://testm.isecret.im/static/eth.png", "precision": 8 }, { "token": "BTC", "url": "https://testm.isecret.im/static/btc.png", "precision": 8 }, { "token": "HGBP", "url": "https://testm.isecret.im/static/hgbp.png", "precision": 2 }, { "token": "HOT", "url": "https://testm.isecret.im/static/hot.png", "precision": 4 } ] } } } ```