feat: 统一字段命名风格,使用下划线格式替代驼峰式命名

This commit is contained in:
2025-12-29 10:20:53 +08:00
parent d482905157
commit 60ff49d4c8
8 changed files with 106 additions and 105 deletions

View File

@@ -13,7 +13,7 @@ type UserUpdate struct {
type RealNameForm struct {
Realname string `json:"realname"`
IDCard string `json:"idCard"`
IDCard string `json:"id_card"`
}
type WalletResponse struct {
@@ -35,21 +35,21 @@ type RechargeForm struct {
}
type RechargeResponse struct {
PayParams string `json:"payParams"`
OrderID string `json:"orderId"`
PayParams string `json:"pay_params"`
OrderID string `json:"order_id"`
}
type Order struct {
ID string `json:"id"`
CreateTime string `json:"createTime"`
PayTime string `json:"payTime"`
CreateTime string `json:"create_time"`
PayTime string `json:"pay_time"`
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"`
TenantID string `json:"tenant_id"`
TenantName string `json:"tenant_name"`
IsVirtual bool `json:"is_virtual"`
}
type Notification struct {