Files
vic-server-mongo/CODE.md
chaosBreaking dc5423d356 init
2019-08-31 14:59:13 +08:00

71 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
地产
Estate : {
status: {
0 -> unavailable 已被购买,暂不可用,
1 -> available 未被购买,可购买
}
}
订单
Order: {
type: {
0: 用户购买地产,
1: 用户卖出地产
},
status: {
0: 进行中(用户持有该订单表示的地产),
1: 已结束(订单内的地产已不属于用户)
}
}
交易
Transaction: {
type: {
0: 用户买入平台NEW,
1: 用户场内买入NEW,
2: 用户场内卖出NEW
},
status: {
0: 尚未处理,
1: 订单成功完成(买卖达成),
2: 等待买方处理,
3: 等待卖方处理,
4: 买方发起申诉,
5: 卖方发起申诉,
6: 客服处理中,
7: 申诉处理完毕
}
}
Action : {
* [0] 充值LOG
* [1] 用户买入地产
* [2] 用户将LOG换为USDT
* [3] 场外买入LOG
* [4] 场外卖出LOG
}
## 1.充值
* 涉及模块user模块
* 接口
* 1. /user/getDepositAddress
* 流程
* 1. 生成充值地址
* 2. 监测到用户所属充值地址到账后发放对应比例的LOG。
## 2.买入地产:
* 涉及模块estate,estateOrder,action
* 接口:
* /estateOrder/purchase
* 流程:
* 1. 生成对应的action
* 2. 将目标estate打上用户印记
* 3. 在estateOrder内记录用户买入情况
## 3.将LOG换为USDT
## 4.场外买入LOG
## 4.场外卖出LOG