diff --git a/internal/router/answer_api_router.go b/internal/router/answer_api_router.go index ccc46909..065373ac 100644 --- a/internal/router/answer_api_router.go +++ b/internal/router/answer_api_router.go @@ -112,7 +112,6 @@ func (a *AnswerAPIRouter) RegisterMustUnAuthAnswerAPIRouter(r *gin.RouterGroup) routerGroup.POST("/user/password/reset", a.userController.RetrievePassWord) routerGroup.POST("/user/password/replacement", a.userController.UseRePassWord) routerGroup.PUT("/user/email/notification", a.userController.UserUnsubscribeEmailNotification) - routerGroup.GET("/user/info/search", a.userController.SearchUserListByName) } func (a *AnswerAPIRouter) RegisterUnAuthAnswerAPIRouter(r *gin.RouterGroup) { @@ -213,6 +212,7 @@ func (a *AnswerAPIRouter) RegisterAnswerAPIRouter(r *gin.RouterGroup) { r.PUT("/user/info", a.userController.UserUpdateInfo) r.PUT("/user/interface", a.userController.UserUpdateInterface) r.POST("/user/notice/set", a.userController.UserNoticeSet) + r.GET("/user/info/search", a.userController.SearchUserListByName) // vote r.GET("/personal/vote/page", a.voteController.UserVotes) diff --git a/internal/service/service_config/service_config.go b/internal/service/service_config/service_config.go index b5c1f56b..b66992d4 100644 --- a/internal/service/service_config/service_config.go +++ b/internal/service/service_config/service_config.go @@ -1,6 +1,5 @@ package service_config type ServiceConfig struct { - SecretKey string `json:"secret_key" mapstructure:"secret_key" yaml:"secret_key"` UploadPath string `json:"upload_path" mapstructure:"upload_path" yaml:"upload_path"` }