Initial commit

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 13:57:10 +08:00
co-authored by Claude Opus 5
commit 8679200f41
1897 changed files with 257900 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
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"`
}