feat: implement new structure

This commit is contained in:
2025-12-29 09:30:49 +08:00
parent 503b15aab7
commit ad52371028
116 changed files with 17579 additions and 1213 deletions

View File

@@ -0,0 +1,62 @@
package dto
import "quyun/v2/pkg/consts"
type UserUpdate struct {
Nickname string `json:"nickname"`
Avatar string `json:"avatar"`
Gender consts.Gender `json:"gender"`
Bio string `json:"bio"`
Birthday string `json:"birthday"`
Location *Location `json:"location"`
}
type RealNameForm struct {
Realname string `json:"realname"`
IDCard string `json:"idCard"`
}
type WalletResponse struct {
Balance float64 `json:"balance"`
Transactions []Transaction `json:"transactions"`
}
type Transaction struct {
ID string `json:"id"`
Title string `json:"title"`
Amount float64 `json:"amount"`
Type string `json:"type"` // income, expense
Date string `json:"date"`
}
type RechargeForm struct {
Amount float64 `json:"amount"`
Method string `json:"method"` // wechat, alipay
}
type RechargeResponse struct {
PayParams string `json:"payParams"`
OrderID string `json:"orderId"`
}
type Order struct {
ID string `json:"id"`
CreateTime string `json:"createTime"`
PayTime string `json:"payTime"`
Status string `json:"status"`
Amount float64 `json:"amount"`
Quantity int `json:"quantity"`
Items []ContentItem `json:"items"`
TenantID string `json:"tenantId"`
TenantName string `json:"tenantName"`
IsVirtual bool `json:"isVirtual"`
}
type Notification struct {
ID string `json:"id"`
Type string `json:"type"`
Title string `json:"title"`
Content string `json:"content"`
Read bool `json:"read"`
Time string `json:"time"`
}