From 9ab495c7bf7033183cc3b84f5f1d1592c3dba3cb Mon Sep 17 00:00:00 2001 From: zetaloop Date: Wed, 22 Apr 2026 20:17:01 +0800 Subject: [PATCH] fix: correct player API struct tag spacing --- app/player/api/internal/handler/routes.go | 2 +- app/player/api/internal/types/types.go | 4 ++-- desc/api/player.api | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/player/api/internal/handler/routes.go b/app/player/api/internal/handler/routes.go index 7ad37b2..1b8bfb2 100644 --- a/app/player/api/internal/handler/routes.go +++ b/app/player/api/internal/handler/routes.go @@ -1,5 +1,5 @@ // Code generated by goctl. DO NOT EDIT. -// goctl 1.9.2 +// goctl 1.10.1 package handler diff --git a/app/player/api/internal/types/types.go b/app/player/api/internal/types/types.go index 4ec92ed..a0c92fa 100644 --- a/app/player/api/internal/types/types.go +++ b/app/player/api/internal/types/types.go @@ -4,7 +4,7 @@ package types type CreateServiceReq struct { - GameId int64 `json:"gameId, optional"` + GameId int64 `json:"gameId,optional"` Title string `json:"title,optional"` Description string `json:"description,optional"` Price float64 `json:"price"` @@ -100,7 +100,7 @@ type UpdatePlayerStatusReq struct { type UpdateServiceReq struct { 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"` diff --git a/desc/api/player.api b/desc/api/player.api index 9b89e75..1fc78d3 100644 --- a/desc/api/player.api +++ b/desc/api/player.api @@ -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"`