Documentation ¶
Index ¶
- Variables
- type LoginSrv
- func (a *LoginSrv) DestroyToken(ctx context.Context, tokenString string) error
- func (a *LoginSrv) GenerateToken(ctx context.Context, userID string) (*schema.LoginTokenInfo, error)
- func (a *LoginSrv) GetCaptcha(ctx context.Context, length int) (*schema.LoginCaptcha, error)
- func (a *LoginSrv) GetLoginInfo(ctx context.Context, userID uint64) (*schema.UserLoginInfo, error)
- func (a *LoginSrv) QueryUserMenuTree(ctx context.Context, userID uint64) (schema.MenuTrees, error)
- func (a *LoginSrv) ResCaptcha(ctx context.Context, w http.ResponseWriter, captchaID string, ...) error
- func (a *LoginSrv) UpdatePassword(ctx context.Context, userID uint64, params schema.UpdatePasswordParam) error
- func (a *LoginSrv) Verify(ctx context.Context, userName, password string) (*schema.User, error)
- type MenuSrv
- func (a *MenuSrv) Create(ctx context.Context, item schema.Menu) (*schema.IDResult, error)
- func (a *MenuSrv) Delete(ctx context.Context, id uint64) error
- func (a *MenuSrv) Get(ctx context.Context, id uint64, opts ...schema.MenuQueryOptions) (*schema.Menu, error)
- func (a *MenuSrv) InitData(ctx context.Context, dataFile string) error
- func (a *MenuSrv) Query(ctx context.Context, params schema.MenuQueryParam, ...) (*schema.MenuQueryResult, error)
- func (a *MenuSrv) QueryActions(ctx context.Context, id uint64) (schema.MenuActions, error)
- func (a *MenuSrv) Update(ctx context.Context, id uint64, item schema.Menu) error
- func (a *MenuSrv) UpdateStatus(ctx context.Context, id uint64, status int) error
- type RoleSrv
- func (a *RoleSrv) Create(ctx context.Context, item schema.Role) (*schema.IDResult, error)
- func (a *RoleSrv) Delete(ctx context.Context, id uint64) error
- func (a *RoleSrv) Get(ctx context.Context, id uint64, opts ...schema.RoleQueryOptions) (*schema.Role, error)
- func (a *RoleSrv) Query(ctx context.Context, params schema.RoleQueryParam, ...) (*schema.RoleQueryResult, error)
- func (a *RoleSrv) QueryRoleMenus(ctx context.Context, roleID uint64) (schema.RoleMenus, error)
- func (a *RoleSrv) Update(ctx context.Context, id uint64, item schema.Role) error
- func (a *RoleSrv) UpdateStatus(ctx context.Context, id uint64, status int) error
- type UserSrv
- func (a *UserSrv) Create(ctx context.Context, item schema.User) (*schema.IDResult, error)
- func (a *UserSrv) Delete(ctx context.Context, id uint64) error
- func (a *UserSrv) Get(ctx context.Context, id uint64, opts ...schema.UserQueryOptions) (*schema.User, error)
- func (a *UserSrv) Query(ctx context.Context, params schema.UserQueryParam, ...) (*schema.UserQueryResult, error)
- func (a *UserSrv) QueryShow(ctx context.Context, params schema.UserQueryParam, ...) (*schema.UserShowQueryResult, error)
- func (a *UserSrv) Update(ctx context.Context, id uint64, item schema.User) error
- func (a *UserSrv) UpdateStatus(ctx context.Context, id uint64, status int) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type LoginSrv ¶
type LoginSrv struct { Auth auth.Auther UserRepo *dao.UserRepo UserRoleRepo *dao.UserRoleRepo RoleRepo *dao.RoleRepo RoleMenuRepo *dao.RoleMenuRepo MenuRepo *dao.MenuRepo MenuActionRepo *dao.MenuActionRepo }
func (*LoginSrv) DestroyToken ¶
func (*LoginSrv) GenerateToken ¶
func (*LoginSrv) GetCaptcha ¶
func (*LoginSrv) GetLoginInfo ¶
func (*LoginSrv) QueryUserMenuTree ¶
func (*LoginSrv) ResCaptcha ¶
func (*LoginSrv) UpdatePassword ¶
type MenuSrv ¶
type MenuSrv struct { TransRepo *dao.TransRepo MenuRepo *dao.MenuRepo MenuActionRepo *dao.MenuActionRepo MenuActionResourceRepo *dao.MenuActionResourceRepo }
func (*MenuSrv) Query ¶
func (a *MenuSrv) Query(ctx context.Context, params schema.MenuQueryParam, opts ...schema.MenuQueryOptions) (*schema.MenuQueryResult, error)
func (*MenuSrv) QueryActions ¶
type RoleSrv ¶
type RoleSrv struct { Enforcer *casbin.SyncedEnforcer TransRepo *dao.TransRepo RoleRepo *dao.RoleRepo RoleMenuRepo *dao.RoleMenuRepo UserRepo *dao.UserRepo MenuActionResourceRepo *dao.MenuActionResourceRepo }
func (*RoleSrv) Query ¶
func (a *RoleSrv) Query(ctx context.Context, params schema.RoleQueryParam, opts ...schema.RoleQueryOptions) (*schema.RoleQueryResult, error)
func (*RoleSrv) QueryRoleMenus ¶
type UserSrv ¶
type UserSrv struct { Enforcer *casbin.SyncedEnforcer TransRepo *dao.TransRepo UserRepo *dao.UserRepo UserRoleRepo *dao.UserRoleRepo RoleRepo *dao.RoleRepo }
func (*UserSrv) Query ¶
func (a *UserSrv) Query(ctx context.Context, params schema.UserQueryParam, opts ...schema.UserQueryOptions) (*schema.UserQueryResult, error)
func (*UserSrv) QueryShow ¶
func (a *UserSrv) QueryShow(ctx context.Context, params schema.UserQueryParam, opts ...schema.UserQueryOptions) (*schema.UserShowQueryResult, error)
Click to show internal directories.
Click to hide internal directories.