Skip to content

Commit 0e95384

Browse files
YinTokey1379
authored andcommitted
fix: spelling errors
1 parent 82bd48c commit 0e95384

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

handler/route.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ func (s *Server) RegisterRouters() {
342342
contentAPIRouter.GET("/links", s.wrapHandler(s.ContentAPILinkHandler.ListLinks))
343343
contentAPIRouter.GET("/links/team_view", s.wrapHandler(s.ContentAPILinkHandler.LinkTeamVO))
344344

345-
contentAPIRouter.GET("/options/comment", s.wrapHandler(s.ContentAPIOptionHander.Comment))
345+
contentAPIRouter.GET("/options/comment", s.wrapHandler(s.ContentAPIOptionHandler.Comment))
346346
}
347347
}
348348
}

handler/server.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type Server struct {
7575
ContentAPILinkHandler *api.LinkHandler
7676
ContentAPIPostHandler *api.PostHandler
7777
ContentAPISheetHandler *api.SheetHandler
78-
ContentAPIOptionHander *api.OptionHandler
78+
ContentAPIOptionHandler *api.OptionHandler
7979
}
8080

8181
type ServerParams struct {
@@ -129,7 +129,7 @@ type ServerParams struct {
129129
ContentAPILinkHandler *api.LinkHandler
130130
ContentAPIPostHandler *api.PostHandler
131131
ContentAPISheetHandler *api.SheetHandler
132-
ContentAPIOptionHander *api.OptionHandler
132+
ContentAPIOptionHandler *api.OptionHandler
133133
}
134134

135135
func NewServer(param ServerParams, lifecycle fx.Lifecycle) *Server {
@@ -192,7 +192,7 @@ func NewServer(param ServerParams, lifecycle fx.Lifecycle) *Server {
192192
ContentAPILinkHandler: param.ContentAPILinkHandler,
193193
ContentAPIPostHandler: param.ContentAPIPostHandler,
194194
ContentAPISheetHandler: param.ContentAPISheetHandler,
195-
ContentAPIOptionHander: param.ContentAPIOptionHander,
195+
ContentAPIOptionHandler: param.ContentAPIOptionHandler,
196196
ContentSearchHandler: param.ContentSearchHandler,
197197
}
198198
lifecycle.Append(fx.Hook{

0 commit comments

Comments
 (0)