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

@@ -1,13 +1,13 @@
package dto
type OrderCreateForm struct {
ContentID string `json:"contentId"`
ContentID string `json:"content_id"`
Sku string `json:"sku"`
Quantity int `json:"quantity"`
}
type OrderCreateResponse struct {
OrderID string `json:"orderId"`
OrderID string `json:"order_id"`
}
type OrderPayForm struct {
@@ -15,7 +15,7 @@ type OrderPayForm struct {
}
type OrderPayResponse struct {
PayParams string `json:"payParams"`
PayParams string `json:"pay_params"`
}
type OrderStatusResponse struct {