user

package
v0.0.0-...-663e6fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPositionIds

func GetPositionIds(data []*ent.Position) []uint64

func GetRoleCodes

func GetRoleCodes(data []*ent.Role) []string

func GetRoleIds

func GetRoleIds(data []*ent.Role) []uint64

func GetRoleNames

func GetRoleNames(data []*ent.Role) []string

Types

type CreateUserLogic

type CreateUserLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateUserLogic

func NewCreateUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateUserLogic

func (*CreateUserLogic) CreateUser

func (l *CreateUserLogic) CreateUser(in *core.UserInfo) (*core.BaseUUIDResp, error)

type DeleteUserLogic

type DeleteUserLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteUserLogic

func NewDeleteUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteUserLogic

func (*DeleteUserLogic) DeleteUser

func (l *DeleteUserLogic) DeleteUser(in *core.UUIDsReq) (*core.BaseResp, error)

type GetUserByIdLogic

type GetUserByIdLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetUserByIdLogic

func NewGetUserByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserByIdLogic

func (*GetUserByIdLogic) GetUserById

func (l *GetUserByIdLogic) GetUserById(in *core.UUIDReq) (*core.UserInfo, error)

type GetUserByUsernameLogic

type GetUserByUsernameLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetUserByUsernameLogic

func NewGetUserByUsernameLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserByUsernameLogic

func (*GetUserByUsernameLogic) GetUserByUsername

func (l *GetUserByUsernameLogic) GetUserByUsername(in *core.UsernameReq) (*core.UserInfo, error)

type GetUserListLogic

type GetUserListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetUserListLogic

func NewGetUserListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserListLogic

func (*GetUserListLogic) GetUserList

func (l *GetUserListLogic) GetUserList(in *core.UserListReq) (*core.UserListResp, error)

type UpdateUserLogic

type UpdateUserLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateUserLogic

func NewUpdateUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateUserLogic

func (*UpdateUserLogic) UpdateUser

func (l *UpdateUserLogic) UpdateUser(in *core.UserInfo) (*core.BaseResp, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL