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
+1 -1
View File
@@ -1,5 +1,5 @@
// Code generated by goctl. DO NOT EDIT. // Code generated by goctl. DO NOT EDIT.
// goctl 1.9.2 // goctl 1.10.1
package handler package handler
+2 -2
View File
@@ -4,7 +4,7 @@
package types package types
type CreateServiceReq struct { type CreateServiceReq struct {
GameId int64 `json:"gameId, optional"` GameId int64 `json:"gameId,optional"`
Title string `json:"title,optional"` Title string `json:"title,optional"`
Description string `json:"description,optional"` Description string `json:"description,optional"`
Price float64 `json:"price"` Price float64 `json:"price"`
@@ -100,7 +100,7 @@ type UpdatePlayerStatusReq struct {
type UpdateServiceReq struct { type UpdateServiceReq struct {
Id int64 `path:"id"` Id int64 `path:"id"`
GameId *int64 `json:"gameId, optional"` GameId *int64 `json:"gameId,optional"`
Title *string `json:"title,optional"` Title *string `json:"title,optional"`
Description *string `json:"description,optional"` Description *string `json:"description,optional"`
Price *float64 `json:"price,optional"` Price *float64 `json:"price,optional"`
+2 -2
View File
@@ -27,7 +27,7 @@ type (
Meta PageMeta `json:"meta"` Meta PageMeta `json:"meta"`
} }
CreateServiceReq { CreateServiceReq {
GameId int64 `json:"gameId, optional"` GameId int64 `json:"gameId,optional"`
Title string `json:"title,optional"` Title string `json:"title,optional"`
Description string `json:"description,optional"` Description string `json:"description,optional"`
Price float64 `json:"price"` Price float64 `json:"price"`
@@ -37,7 +37,7 @@ type (
} }
UpdateServiceReq { UpdateServiceReq {
Id int64 `path:"id"` Id int64 `path:"id"`
GameId *int64 `json:"gameId, optional"` GameId *int64 `json:"gameId,optional"`
Title *string `json:"title,optional"` Title *string `json:"title,optional"`
Description *string `json:"description,optional"` Description *string `json:"description,optional"`
Price *float64 `json:"price,optional"` Price *float64 `json:"price,optional"`