Skip to content

Commit

Permalink
typo: 替换错别字 (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyenought authored Nov 23, 2022
1 parent d100faa commit 4da597c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apiserver/httpserver/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (h *HTTPServer) AuthStatus(req *restful.Request, rsp *restful.Response) {
handler.WriteHeaderAndProto(resp)
}

// Login 登陆函数
// Login 登录函数
func (h *HTTPServer) Login(req *restful.Request, rsp *restful.Response) {
handler := &httpcommon.Handler{
Request: req,
Expand Down
4 changes: 2 additions & 2 deletions apiserver/httpserver/auth_apinotes.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ GET /core/v1/auth/status
{
"code": 200000,
"info": "execute success",
"optionSwitch":
"optionSwitch":
{
"auth": "true"
}
Expand Down Expand Up @@ -385,7 +385,7 @@ Header X-Polaris-Token: {访问凭据}
~~~
`
enrichLoginApiNotes = `
用于控制台进行用户登陆操作
用于控制台进行用户登录操作
请求示例:
Expand Down
2 changes: 1 addition & 1 deletion auth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type AuthServer interface {
// AfterResourceOperation 操作完资源的后置处理逻辑
AfterResourceOperation(afterCtx *model.AcquireContext) error

// Login 登陆动作
// Login 登录动作
Login(req *api.LoginRequest) *api.Response

// UserOperator 用户操作
Expand Down
2 changes: 1 addition & 1 deletion auth/defaultauth/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (svr *server) initialize() error {
return nil
}

// Login 登陆动作
// Login 登录动作
func (svr *server) Login(req *api.LoginRequest) *api.Response {
username := req.GetName().GetValue()
ownerName := req.GetOwner().GetValue()
Expand Down
2 changes: 1 addition & 1 deletion common/api/v1/auth_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func NewStrategyResourcesResponse(code uint32, ret *StrategyResources) *Response
}
}

// NewLoginResponse 创建登陆响应体
// NewLoginResponse 创建登录响应体
func NewLoginResponse(code uint32, loginResponse *LoginResponse) *Response {
return &Response{
Code: &wrappers.UInt32Value{Value: code},
Expand Down

0 comments on commit 4da597c

Please sign in to comment.