# 黑洞星活动 ## 全局新增接口 GET api/user/notifications returns ```json { "unread": 3, // 未读消息条数 "mining": { "symbol": "doge", // 当前 coin "icon": "http://a.png", // coin icon "price": 2.07, // 单价(RMB) "progress": 12.00123, // 进度, 0 表示 stopped "total": 208 // 已获得总数 }, "carousel": { "interval": 3, "items": [{ "text": "", "uri": "page/boards", }] // 跑马灯 } } ``` 客户端自行调用,可定时或切页面调用,相当于服务器推送 ## 1. 启动 > 启动后不支持手动停止 POST api/coin/boot returns ```json { } ``` 2. 历史记录 GET api/coin/history?page=1&limit=30 returns ```json { "history": [{ "symbol": "doge", "icon": "http://a.png", "amount": 12.00034, "ts": 1235345435, "from": "abcde034345dd", "to": "aabde2343df34", "income": 1 // 获得. 数字前应显示 + 号, // 当 =0 时显示 - 号,表示是一条提币记录 // "from" 为空, "to" 为用户设置的导出地址 },{ }] } ``` 3. 更新提币地址 POST api/coin/addr params ```json { "symbol": "doge", "addr": "aaabbbcccddd3343" } ``` returns ```json { } ``` 4. 导出/提币 POST api/coin/transfer params ```json { "symbol": "doge", "amount": 100 } ``` returns ```json { } ``` 5. 钱包 钱包协议增加字段 ```json { "coins": [ { "symbol": "doge", "icon": "http://a.png", "total": 123.43, "addr": "1243434345" } ] } ```