feat: 统一字段命名风格,使用下划线格式替代驼峰式命名
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user