fix: correct player API struct tag spacing

This commit is contained in:
zetaloop
2026-04-22 20:17:01 +08:00
parent c2646163f2
commit 9ab495c7bf
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ type (
Meta PageMeta `json:"meta"`
}
CreateServiceReq {
GameId int64 `json:"gameId, optional"`
GameId int64 `json:"gameId,optional"`
Title string `json:"title,optional"`
Description string `json:"description,optional"`
Price float64 `json:"price"`
@@ -37,7 +37,7 @@ type (
}
UpdateServiceReq {
Id int64 `path:"id"`
GameId *int64 `json:"gameId, optional"`
GameId *int64 `json:"gameId,optional"`
Title *string `json:"title,optional"`
Description *string `json:"description,optional"`
Price *float64 `json:"price,optional"`