Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserBiz ¶
type UserBiz interface { Create(ctx context.Context, r *v1.CreateUserRequest) error ChangePassword(ctx context.Context, username string, r *v1.ChangePasswordRequest) error Login(ctx context.Context, r *v1.LoginRequest) (*v1.LoginResponse, error) Get(ctx context.Context, username string) (*v1.GetUserResponse, error) List(ctx context.Context, offset, limit int) (*v1.ListUserResponse, error) Update(ctx context.Context, username string, r *v1.UpdateUserRequest) error Delete(ctx context.Context, username string) error }
UserBiz 定义了 user 模块在 biz 层所实现的方法.
Click to show internal directories.
Click to hide internal directories.