60 lines
2.0 KiB
Go
60 lines
2.0 KiB
Go
package txnmod
|
|
|
|
import (
|
|
"time"
|
|
|
|
"91porn-server/models/commod"
|
|
)
|
|
|
|
// CoinLogReq 金币流水请求
|
|
type CoinLogReq struct {
|
|
UID uint64 `form:"uid" json:"uid"`
|
|
Balance int `form:"balance" json:"balance"` //0所有 1收入 2支出
|
|
TranType string `form:"tranType" json:"tranType"`
|
|
DistrictCode string `form:"districtCode" json:"districtCode"`
|
|
Start time.Time `form:"start" json:"start"`
|
|
End time.Time `form:"end" json:"end"`
|
|
commod.Page
|
|
}
|
|
|
|
// CoinLogResp 金币流水返回
|
|
type CoinLogResp struct {
|
|
Logs []*TransactionLog `json:"logs"`
|
|
Total int64 `json:"total"`
|
|
}
|
|
|
|
// TransactionQueryReq 账户交易流水表,
|
|
type TransactionQueryReq struct {
|
|
ID *string `json:"id,omitempty" bson:"_id,omitempty"` //流水id
|
|
UID *uint64 ` json:"uid,omitempty" bson:"uid,omitempty"` //出金方 UID
|
|
TransNo *string ` json:"transNo,omitempty" bson:"transNo,omitempty"` //交易订单号
|
|
Amount *int64 ` json:"amount,omitempty" bson:"amount,omitempty"` //金币
|
|
TransType *string ` json:"transType,omitempty" bson:"transType,omitempty"` //交易类型
|
|
Desc *string ` json:"desc,omitempty" bson:"desc,omitempty"` //记录描述
|
|
}
|
|
|
|
type BillsRes struct {
|
|
Month string `json:"month"`
|
|
Income int64 `json:"income"`
|
|
Withdraw int64 `json:"withdraw"`
|
|
IncomeStr string `json:"incomeStr"` //收益
|
|
WithdrawStr string `json:"withdrawStr"` //提现
|
|
List []*TransactionLog `json:"list"`
|
|
}
|
|
|
|
type Bills1Res struct {
|
|
//收益
|
|
Income string `json:"income"`
|
|
//支出
|
|
Expenditure string `json:"expenditure"`
|
|
HasNext bool `json:"hasNext"`
|
|
//列表
|
|
List []TransactionLog `json:"list"`
|
|
//当前焦点月之前是否有数据
|
|
HasNextMonth bool `json:"haxNextMonth"`
|
|
//当前焦点月有数据的最迟月份
|
|
Month int `json:"month"`
|
|
//当前焦点月有数据的最迟月份的年
|
|
Year int `json:"year"`
|
|
}
|