feat(user): add commission withdrawal and query withdrawal log functionality

This commit is contained in:
Chang lue Tsen
2025-11-26 12:13:33 -05:00
parent 5c2d0be8e2
commit 7277438b07
10 changed files with 210 additions and 0 deletions
+26
View File
@@ -239,6 +239,11 @@ type CommissionLog struct {
Timestamp int64 `json:"timestamp"`
}
type CommissionWithdrawRequest struct {
Amount int64 `json:"amount"`
Content string `json:"content"`
}
type Coupon struct {
Id int64 `json:"id"`
Name string `json:"name"`
@@ -1723,6 +1728,16 @@ type QueryUserSubscribeNodeListResponse struct {
List []UserSubscribeInfo `json:"list"`
}
type QueryWithdrawalLogListRequest struct {
Page int `form:"page"`
Size int `form:"size"`
}
type QueryWithdrawalLogListResponse struct {
List []WithdrawalLog `json:"list"`
Total int64 `json:"total"`
}
type QuotaTask struct {
Id int64 `json:"id"`
Subscribers []int64 `json:"subscribers"`
@@ -2766,3 +2781,14 @@ type VmessProtocol struct {
Network string `json:"network"`
Transport string `json:"transport"`
}
type WithdrawalLog struct {
Id int64 `json:"id"`
UserId int64 `json:"user_id"`
Amount int64 `json:"amount"`
Content string `json:"content"`
Status uint8 `json:"status"`
Reason string `json:"reason,omitempty"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}