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
Click to show internal directories.
Click to hide internal directories.