币种管理
# 币种字段说明
部分字段没有进行说明,属于OTC
| 属性名 | 类型 | 描述 |
| ---------------------- | ------ | ------------------------------------ |
| id | number | 编号 |
| name | string | 币种名称 |
| coinCode | string | 币代码 |
| totalNum | string | 发行总量 |
| openTibi | int | 0.否 1.是 |
| issueTime | string | 发行时间 |
| issueState | string | 发行状态 0.未上架 1.已上架 2.已下架 |
| picturePath | string | 币种icon |
| stock | number | 市场流通量 |
| walletDownload | string | 钱包下载地址 |
| blockBrowser | string | 区块查询 |
| writeBook | string | 白皮书 |
| officialWebsite | string | 官网 |
| productReferral | string | 币种介绍 |
| paceType | int | 手续费类型 1.百分比 2.固定费率 |
| paceCurrecy | number | 手续费 |
| leastPaceNum | number | 单次提币最小数量 |
| oneDayPaceNum | number | 单日提币最大数量 |
| autoPaceNum | number | 自动提币额度 |
| openChongbi | int | 是否可冲币 0.否 1.是 |
| keepDecimalForCurrency | int | 折合法币保留小数位数 |
| keepDecimalForCoin | int | 币的位数 |
| chain| int | 是否主网1:是 2:不是 |
# 币种资料管理
## 列表查询
`GET` /product/coins
### 参数
| 参数名 | 类型 | 描述 | 必传 |
| -------- | ------ | -------- | ---- |
| coinCode | string | 币种代码 | |
| chain| int| 是否主网1:是 2:不是 | |
```json
{
"rows":[
{
"saasId":null,
"created":"2019-12-11 10:20:21",
"modified":"2019-12-11 10:20:38",
"id":5,
"name":"BTC",
"totalNum":1000000,
"issueTotalMoney":0,
"issuePrice":0,
"openTibi":"1",
"issueTime":"2019-12-11 10:12:09",
"issueState":1,
"coinCode":"BTC",
"issueId":null,
"issueName":null,
"splitMinCoin":0.0000001,
"stock":1000000,
"sort":0,
"pamState":1,
"circulation":0,
"openBell":1,
"open_c2c":null,
"c2cBuyPrice":0,
"c2cSellPrice":0,
"proveMode":null,
"productReferral":"中本聪创建的第一个区块链系统。阿什拉夫空间阿三赴澳is风景阿三地警方可去好人阿说卡收到回复i企鹅u回复拉开的肌肤阿斯利康的肌肤后拉萨的繁华来吃五了话费啦康师傅啦孙珂的繁华i我去了户阿里山吧啦孙珂的家阿睡懒觉马上到发送大量分泌阿健身房和马梅多夫阿宿舍没事的繁华好孙珂拉风的a刷卡机地方哈里斯",
"arithmetic":null,
"blockspeed":null,
"minBlockSize":null,
"maxBlockSize":null,
"walletDownload":"https://www.bassd.com",
"soundDownload":null,
"blockBrowser":"https://www.blockchain.com",
"officialWebsite":"https://www.bitcoin.com",
"officialForum":null,
"miningAddress":null,
"isRecommend":0,
"openingTime":"00:00:00",
"closeTime":"00:00:00",
"openAndclosePlateTime":"09:00:00,12:00:00,14:00:00,17:00:00",
"transactionType":1,
"picturePath":"1582076612548.png",
"prepaidFeeRate":0,
"paceFeeRate":0,
"oneTimePaceNum":0,
"leastPaceNum":1,
"oneDayPaceNum":5,
"keepDecimalForCoin":8,
"giveCoin":null,
"commendCoin":null,
"paceType":"2",
"paceCurrecy":"0.1",
"operator":null,
"addCoinType":null,
"myprecision":null,
"contractAddress":null,
"isERC20":null,
"allName":"比特币",
"crowdfundingPrice":"1000000",
"writeBook":"https://www.bafso.com",
"keepDecimalForCurrency":4,
"coinPercent":"1",
"eatFee":1,
"eatFeeType":1,
"putFee":0,
"putFeeType":null,
"tradeType":null,
"otcState":1,
"otcCoinCode":1,
"maxMortgageNum":"0",
"minMortgageNum":"0",
"otcMinPercent":"1",
"otcMaxPercent":"1",
"language":null,
"openChongbi":"1",
"sellMinCoin":0.1,
"sellMaxCoin":1000,
"chain":1
}
],
"page":1,
"pageSize":10,
"total":8,
"msg":null
}
```
## 查询单个
`GET` /product/{id}
### 参数
| 参数名 | 类型 | 描述 | 必传 |
| ------ | ------ | -------- | ---- |
| id | number | 币种代码 | 是 |
## 已上架的币种
`GET` /product/openedCoins
> 该接口没有参数
```json
{
obj : { // ... 币种信息}
}
```
## 添加
`POST` /product/add
### 参数
| 参数名 | 类型 | 描述 |
| ------ | ---- | ---- |
| name | string | 币种名称 |
| coinCode | string | 币代码 |
| totalNum | string | 发行总量 |
| issueTime | string | 发行时间 |
| picturePath | string | 币种icon |
| stock | number | 市场流通量 |
| walletDownload | string | 钱包下载地址 |
| blockBrowser | string | 区块查询 |
| writeBook | string | 白皮书 |
| officialWebsite | string | 官网 |
| productReferral | string | 币种介绍 |
## 修改
`POST` /product/modifyOption
### 参数
| 参数名 | 类型 | 描述 |
| ------ | ---- | ---- |
| id | number | 编号 |
| name | string | 币种名称 |
| coinCode | string | 币代码 |
| totalNum | string | 发行总量 |
| openTibi | int | 0.否 1.是 |
| issueTime | string | 发行时间 |
| picturePath | string | 币种icon |
| stock | number | 市场流通量 |
| walletDownload | string | 钱包下载地址 |
| blockBrowser | string | 区块查询 |
| writeBook | string | 白皮书 |
| officialWebsite | string | 官网 |
| productReferral | string | 币种介绍 |
## 上架
`POST` /product/shelves/{id}
### 参数
| 参数名 | 类型 | 描述 |
| ------ | ---- | ---- |
| id | number | 编号 |
## 下架
/product/takeOff/{id}
### 参数
| 参数名 | 类型 | 描述 |
| ------ | ---- | ---- |
| id | number | 编号 |
## 修改币种参数
`POST` /product/modifyConfig
### 参数
| 参数名 | 类型 | 描述 |
| ------ | ---- | ---- |
| id | number | 编号 |
| openTibi | int | 0.否 1.是 |
| paceType | int | 手续费类型 1.百分比 2.固定费率 |
| paceCurrecy | number | 手续费 |
| leastPaceNum | number | 单次提币最小数量 |
| oneDayPaceNum | number | 单日提币最大数量 |
| autoPaceNum | number | 自动提币额度 |
| openChongbi | int | 是否可冲币 0.否 1.是 |
| keepDecimalForCurrency | int | 折合法币保留小数位数 |
| keepDecimalForCoin | int | 币的位数 |