mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-01-27 05:24:38 +08:00
52 lines
1.3 KiB
Go
52 lines
1.3 KiB
Go
// Package cash
|
|
// @Link https://github.com/bufanyun/hotgo
|
|
// @Copyright Copyright (c) 2023 HotGo CLI
|
|
// @Author Ms <133814250@qq.com>
|
|
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
|
package cash
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"hotgo/internal/model/input/adminin"
|
|
"hotgo/internal/model/input/form"
|
|
)
|
|
|
|
// ListReq 查询列表
|
|
type ListReq struct {
|
|
g.Meta `path:"/cash/list" method:"get" tags:"提现" summary:"获取提现列表"`
|
|
adminin.CashListInp
|
|
}
|
|
|
|
type ListRes struct {
|
|
List []*adminin.CashListModel `json:"list" dc:"数据列表"`
|
|
form.PageRes
|
|
}
|
|
|
|
// ViewReq 获取指定信息
|
|
type ViewReq struct {
|
|
g.Meta `path:"/cash/view" method:"get" tags:"提现" summary:"获取指定信息"`
|
|
adminin.CashViewInp
|
|
}
|
|
|
|
type ViewRes struct {
|
|
*adminin.CashViewModel
|
|
}
|
|
|
|
// ApplyReq 申请提现
|
|
type ApplyReq struct {
|
|
Money float64 `json:"money" description:"提现金额"`
|
|
g.Meta `path:"/cash/apply" method:"post" tags:"提现" summary:"申请提现"`
|
|
}
|
|
|
|
type ApplyRes struct{}
|
|
|
|
// PaymentReq 提现打款处理
|
|
type PaymentReq struct {
|
|
Id int64 `json:"id" description:"ID"`
|
|
Status int64 `json:"status" description:"状态码"`
|
|
Msg string `json:"msg" description:"处理结果"`
|
|
g.Meta `path:"/cash/payment" method:"post" tags:"提现" summary:"提现打款处理"`
|
|
}
|
|
|
|
type PaymentRes struct{}
|