Skip to content

Commit

Permalink
fix: api.common and api.version logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasyRL committed Dec 18, 2024
1 parent 8886174 commit 9f02380
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 29 deletions.
7 changes: 3 additions & 4 deletions api/handler/api/common_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 8 additions & 16 deletions api/handler/api/version_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions api/handler/custom/launch_screen_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"github.com/west2-online/fzuhelper-server/api/rpc"
"github.com/west2-online/fzuhelper-server/kitex_gen/launch_screen"
"github.com/west2-online/fzuhelper-server/pkg/errno"
"github.com/west2-online/fzuhelper-server/pkg/logger"
)

// MobileGetImage .
Expand All @@ -36,7 +35,6 @@ func MobileGetImage(ctx context.Context, c *app.RequestContext) {
var req api.MobileGetImageRequest
err = c.BindAndValidate(&req)
if err != nil {
logger.Errorf("api.MobileGetImage: BindAndValidate error %v", err)
pack.RespError(c, errno.ParamError.WithError(err))
return
}
Expand Down Expand Up @@ -65,7 +63,6 @@ func AddImagePointTime(ctx context.Context, c *app.RequestContext) {
var req api.AddImagePointTimeRequest
err = c.BindAndValidate(&req)
if err != nil {
logger.Errorf("api.AddImagePointTime: BindAndValidate error %v", err)
pack.RespError(c, errno.ParamError.WithError(err))
return
}
Expand Down
6 changes: 0 additions & 6 deletions api/handler/custom/url_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f02380

Please sign in to comment.