diff --git a/backend/app/http/super/v1/auth/dto/auth.go b/backend/app/http/super/v1/auth/dto/auth.go index 8e53a90..667e9bf 100644 --- a/backend/app/http/super/v1/auth/dto/auth.go +++ b/backend/app/http/super/v1/auth/dto/auth.go @@ -13,7 +13,7 @@ type LoginResponse struct { } type User struct { - ID string `json:"id"` + ID int64 `json:"id"` Phone string `json:"phone"` Nickname string `json:"nickname"` Avatar string `json:"avatar"` diff --git a/backend/app/http/v1/auth/dto/auth.go b/backend/app/http/v1/auth/dto/auth.go index 3f3bef5..96c3390 100644 --- a/backend/app/http/v1/auth/dto/auth.go +++ b/backend/app/http/v1/auth/dto/auth.go @@ -17,7 +17,7 @@ type LoginResponse struct { } type User struct { - ID string `json:"id"` + ID int64 `json:"id"` Phone string `json:"phone"` Nickname string `json:"nickname"` Avatar string `json:"avatar"` diff --git a/backend/app/http/v1/content.go b/backend/app/http/v1/content.go index 512b827..25e92b8 100644 --- a/backend/app/http/v1/content.go +++ b/backend/app/http/v1/content.go @@ -22,7 +22,7 @@ type Content struct{} // @Produce json // @Param keyword query string false "Search keyword" // @Param genre query string false "Genre" -// @Param tenantId query string false "Filter by creator" +// @Param tenantId query int64 false "Filter by creator" // @Param sort query string false "Sort order" Enums(latest, hot, price_asc) // @Param page query int false "Page number" // @Success 200 {object} requests.Pager{items=[]dto.ContentItem} diff --git a/backend/app/http/v1/dto/user.go b/backend/app/http/v1/dto/user.go index d0731cd..6d5e574 100644 --- a/backend/app/http/v1/dto/user.go +++ b/backend/app/http/v1/dto/user.go @@ -55,7 +55,7 @@ type RechargeResponse struct { // PayParams 支付参数(透传给前端)。 PayParams string `json:"pay_params"` // OrderID 充值订单ID。 - OrderID string `json:"order_id"` + OrderID int64 `json:"order_id"` } type Order struct { diff --git a/backend/app/services/wallet.go b/backend/app/services/wallet.go index a61da93..9d17f49 100644 --- a/backend/app/services/wallet.go +++ b/backend/app/services/wallet.go @@ -3,7 +3,6 @@ package services import ( "context" "errors" - "strconv" "time" "quyun/v2/app/errorx" @@ -112,6 +111,6 @@ func (s *wallet) Recharge( // Mock Pay Params return &user_dto.RechargeResponse{ PayParams: "mock_paid_success", - OrderID: strconv.FormatInt(order.ID, 10), + OrderID: order.ID, }, nil }