feat: 统一字段命名风格,使用下划线格式替代驼峰式命名
This commit is contained in:
@@ -7,10 +7,10 @@ type ApplyForm struct {
|
||||
}
|
||||
|
||||
type DashboardStats struct {
|
||||
TotalFollowers IntStatItem `json:"totalFollowers"`
|
||||
TotalRevenue FloatStatItem `json:"totalRevenue"`
|
||||
PendingRefunds int `json:"pendingRefunds"`
|
||||
NewMessages int `json:"newMessages"`
|
||||
TotalFollowers IntStatItem `json:"total_followers"`
|
||||
TotalRevenue FloatStatItem `json:"total_revenue"`
|
||||
PendingRefunds int `json:"pending_refunds"`
|
||||
NewMessages int `json:"new_messages"`
|
||||
}
|
||||
|
||||
type IntStatItem struct {
|
||||
@@ -27,14 +27,14 @@ type ContentCreateForm struct {
|
||||
Title string `json:"title"`
|
||||
Genre string `json:"genre"`
|
||||
Price float64 `json:"price"`
|
||||
MediaIDs []string `json:"mediaIds"`
|
||||
MediaIDs []string `json:"media_ids"`
|
||||
}
|
||||
|
||||
type ContentUpdateForm struct {
|
||||
Title string `json:"title"`
|
||||
Genre string `json:"genre"`
|
||||
Price float64 `json:"price"`
|
||||
MediaIDs []string `json:"mediaIds"`
|
||||
MediaIDs []string `json:"media_ids"`
|
||||
}
|
||||
|
||||
type RefundForm struct {
|
||||
@@ -61,7 +61,7 @@ type PayoutAccount struct {
|
||||
type WithdrawForm struct {
|
||||
Amount float64 `json:"amount"`
|
||||
Method string `json:"method"` // wallet, external
|
||||
AccountID string `json:"accountId"`
|
||||
AccountID string `json:"account_id"`
|
||||
}
|
||||
|
||||
// Re-export or Wrap
|
||||
|
||||
Reference in New Issue
Block a user