fix: int64 ID 字段序列化为 JSON string
This commit is contained in:
+4
-3
@@ -7,9 +7,9 @@ type (
|
||||
Id int64 `path:"id"`
|
||||
}
|
||||
Review {
|
||||
Id int64 `json:"id"`
|
||||
OrderId int64 `json:"orderId"`
|
||||
FromUserId int64 `json:"fromUserId"`
|
||||
Id int64 `json:"id,string"`
|
||||
OrderId int64 `json:"orderId,string"`
|
||||
FromUserId int64 `json:"fromUserId,string"`
|
||||
FromUserName string `json:"fromUserName"`
|
||||
Rating int `json:"rating"`
|
||||
Content string `json:"content"`
|
||||
@@ -61,3 +61,4 @@ service review-api {
|
||||
@handler ListUserReviews
|
||||
get /users/:id/reviews (ListUserReviewsReq) returns (ReviewListResp)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user