🎨 新增提现功能

This commit is contained in:
2025-09-10 02:31:33 +08:00
parent b8b859f890
commit 2293ee2463
10 changed files with 369 additions and 0 deletions

12
model/app/request/with.go Normal file
View File

@@ -0,0 +1,12 @@
package request
import common "git.echol.cn/loser/lckt/model/common/request"
type GetWithList struct {
common.PageInfo
UserId uint `json:"user_id" form:"user_id"` // 用户ID
UserName string `json:"user_name" form:"user_name"` // 用户名
Status int `json:"status" form:"status"`
StartTime string `json:"start_time" form:"start_time"`
EndTime string `json:"end_time" form:"end_time"`
}

23
model/app/with.go Normal file
View File

@@ -0,0 +1,23 @@
package app
import "git.echol.cn/loser/lckt/global"
// With 提现管理
type With struct {
global.GVA_MODEL
WithType int `json:"withType" form:"withType" gorm:"comment:提现类型 1 微信 2 支付宝 3 银行卡"`
UserID uint `json:"userId" form:"userId" gorm:"comment:用户ID"`
UserName string `json:"userName" form:"userName" gorm:"comment:用户名称"`
Amount float64 `json:"amount" form:"amount" gorm:"comment:提现金额"`
RealAmount float64 `json:"realAmount" form:"realAmount" gorm:"comment:实际到账金额"`
Status int `json:"status" form:"status" gorm:"comment:状态 1 待处理 2 已完成 3 已拒绝 4 已取消"`
// 到账时间
ArriveTime string `json:"arriveTime" form:"arriveTime" gorm:"comment:到账时间"`
// 账户信息
AccountInfo string `json:"accountInfo" form:"accountInfo" gorm:"type:text;comment:账户信息 收款码或银行卡等"`
Remark string `json:"remark" form:"remark" gorm:"type:text;comment:备注"`
}
func (With) TableName() string {
return "app_with"
}