Documentation ¶
Index ¶
- type UserCenterService
- func (s *UserCenterService) Authorize(ctx context.Context, rq *v1.AuthzRequest) (*v1.AuthzResponse, error)
- func (s *UserCenterService) ChangePassword(ctx context.Context, username string, rq *v1.ChangePasswordRequest) error
- func (s *UserCenterService) Create(ctx context.Context, rq *v1.CreateUserRequest) (*v1.CreateUserResponse, error)
- func (s *UserCenterService) Delete(ctx context.Context, rq *v1.DeleteUserRequest) (*emptypb.Empty, error)
- func (s *UserCenterService) Get(ctx context.Context, rq *v1.GetUserRequest) (*v1.GetUserResponse, error)
- func (s *UserCenterService) List(ctx context.Context, rq *v1.ListUserRequest) (*v1.ListUserResponse, error)
- func (s *UserCenterService) Login(ctx context.Context, rq *v1.LoginRequest) (*v1.LoginResponse, error)
- func (s *UserCenterService) Update(ctx context.Context, rq *v1.UpdateUserRequest) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserCenterService ¶
type UserCenterService struct { Auth *auth.Authz v1.UnimplementedUserCenterServer // contains filtered or unexported fields }
func NewUserCenterService ¶
func NewUserCenterService(biz biz.IBiz, a *auth.Authz) *UserCenterService
func (*UserCenterService) Authorize ¶
func (s *UserCenterService) Authorize(ctx context.Context, rq *v1.AuthzRequest) (*v1.AuthzResponse, error)
Authorize checks authorization for a given request and returns an authorization response.
func (*UserCenterService) ChangePassword ¶
func (s *UserCenterService) ChangePassword(ctx context.Context, username string, rq *v1.ChangePasswordRequest) error
ChangePassword changes the password for a user by calling the corresponding method in the business logic layer.
func (*UserCenterService) Create ¶
func (s *UserCenterService) Create(ctx context.Context, rq *v1.CreateUserRequest) (*v1.CreateUserResponse, error)
Create creates a new user and returns a created user response.
func (*UserCenterService) Delete ¶
func (s *UserCenterService) Delete(ctx context.Context, rq *v1.DeleteUserRequest) (*emptypb.Empty, error)
Delete deletes a user and returns an empty response.
func (*UserCenterService) Get ¶
func (s *UserCenterService) Get(ctx context.Context, rq *v1.GetUserRequest) (*v1.GetUserResponse, error)
Get retrieves a user's information and returns a get user response.
func (*UserCenterService) List ¶
func (s *UserCenterService) List(ctx context.Context, rq *v1.ListUserRequest) (*v1.ListUserResponse, error)
List lists users and returns a list user response.
func (*UserCenterService) Login ¶
func (s *UserCenterService) Login(ctx context.Context, rq *v1.LoginRequest) (*v1.LoginResponse, error)
Login authenticates a user and returns a login response.
func (*UserCenterService) Update ¶
func (s *UserCenterService) Update(ctx context.Context, rq *v1.UpdateUserRequest) (*emptypb.Empty, error)
Update updates a user's information and returns an empty response.
Click to show internal directories.
Click to hide internal directories.