Documentation ¶
Index ¶
- Constants
- func VerifyNameAndPassword(req *user.CreateUserRequest) error
- type UserServiceImpl
- func (u *UserServiceImpl) AllowOverwrite() bool
- func (u *UserServiceImpl) Close(ctx context.Context) error
- func (i *UserServiceImpl) CreateUser(ctx context.Context, req *user.CreateUserRequest) (*user.Users, error)
- func (i *UserServiceImpl) DeleteUser(ctx context.Context, req *user.DeleteUserRequest) error
- func (i *UserServiceImpl) EditUser(ctx context.Context, req *user.EditUserRequest) (*user.Users, error)
- func (u *UserServiceImpl) Init() error
- func (u *UserServiceImpl) Name() string
- func (u *UserServiceImpl) Priority() int
- func (i *UserServiceImpl) QueryUser(ctx context.Context, req *user.QueryUserRequest) (*user.Users, error)
- func (u *UserServiceImpl) Version() string
Constants ¶
View Source
const (
AppName = "user"
)
Variables ¶
This section is empty.
Functions ¶
func VerifyNameAndPassword ¶
func VerifyNameAndPassword(req *user.CreateUserRequest) error
验证用户名密码是否为空
Types ¶
type UserServiceImpl ¶
type UserServiceImpl struct {
// contains filtered or unexported fields
}
func (*UserServiceImpl) AllowOverwrite ¶
func (u *UserServiceImpl) AllowOverwrite() bool
func (*UserServiceImpl) CreateUser ¶
func (i *UserServiceImpl) CreateUser(ctx context.Context, req *user.CreateUserRequest) (*user.Users, error)
create user
func (*UserServiceImpl) DeleteUser ¶
func (i *UserServiceImpl) DeleteUser(ctx context.Context, req *user.DeleteUserRequest) error
delete user
func (*UserServiceImpl) EditUser ¶
func (i *UserServiceImpl) EditUser(ctx context.Context, req *user.EditUserRequest) (*user.Users, error)
edit user
func (*UserServiceImpl) Init ¶
func (u *UserServiceImpl) Init() error
func (*UserServiceImpl) Name ¶
func (u *UserServiceImpl) Name() string
func (*UserServiceImpl) Priority ¶
func (u *UserServiceImpl) Priority() int
func (*UserServiceImpl) QueryUser ¶
func (i *UserServiceImpl) QueryUser(ctx context.Context, req *user.QueryUserRequest) (*user.Users, error)
query user
func (*UserServiceImpl) Version ¶
func (u *UserServiceImpl) Version() string
Click to show internal directories.
Click to hide internal directories.