fix: correct player API struct tag spacing
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
@@ -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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user