adminrepo

package
v0.0.0-...-14942be Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UmsAdminRepo

type UmsAdminRepo interface {
	Create(c context.Context, admin *model.UmsAdmin) (int64, error)
	SelectByUserName(c context.Context, userName string) (result *model.UmsAdmin, exists bool, err error)
}

func NewUmsAdminRepo

func NewUmsAdminRepo(data *data.Data) UmsAdminRepo

type UmsMenuRepo

type UmsMenuRepo interface {
	Create(c context.Context, menu *model.UmsMenu) (int64, error)
	SelectList(c context.Context) (list []*model.UmsMenu, err error)
}

func NewUmsMenuRepo

func NewUmsMenuRepo(data *data.Data) UmsMenuRepo

type UmsResourceCategoryRepo

type UmsResourceCategoryRepo interface {
	Create(c context.Context, category *model.UmsResourceCategory) (int64, error)
}

func NewUmsResourceCategoryRepo

func NewUmsResourceCategoryRepo(data *data.Data) UmsResourceCategoryRepo

type UmsResourceRepo

type UmsResourceRepo interface {
	Create(c context.Context, resource *model.UmsResource) (int64, error)
}

func NewUmsResourceRepo

func NewUmsResourceRepo(data *data.Data) UmsResourceRepo

type UmsRoleRepo

type UmsRoleRepo interface {
	Create(c context.Context, role *model.UmsRole) (int64, error)
	Delete(c context.Context, ids []string) (int64, error)
	Update(c context.Context, role *model.UmsRole) (int64, error)
	SelectByRoleName(c context.Context, roleName string) (result *model.UmsRole, exists bool, err error)
	SelectById(c context.Context, id uint) (result *model.UmsRole, exists bool, err error)
	RemoveRoleMenuRelationByRoleId(c context.Context, id uint) (int64, error)
	BatchInsertRoleMenuRelationForRole(c context.Context, list []*model.UmsRoleMenuRelation) (int64, error)
	BatchInsertRoleRelationForAdmin(c context.Context, list []*model.UmsRoleRelation) (int64, error)
}

func NewUmsRoleRepo

func NewUmsRoleRepo(data *data.Data) UmsRoleRepo

Jump to

Keyboard shortcuts

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