| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- // ================================================================================
- // Code generated by GoFrame CLI tool. DO NOT EDIT.
- // You can delete these comments if you wish manually maintain this interface file.
- // ================================================================================
- package service
- import (
- "context"
- "github.com/tiger1103/gfast/v3/api/v1/system"
- "github.com/tiger1103/gfast/v3/internal/app/system/model"
- "github.com/tiger1103/gfast/v3/internal/app/system/model/entity"
- )
- type (
- ISysAuthRule interface {
- GetMenuListSearch(ctx context.Context, req *system.RuleSearchReq) (res []*model.SysAuthRuleInfoRes, err error)
- GetIsMenuList(ctx context.Context) ([]*model.SysAuthRuleInfoRes, error)
- GetMenuList(ctx context.Context) (list []*model.SysAuthRuleInfoRes, err error)
- GetIsButtonList(ctx context.Context) ([]*model.SysAuthRuleInfoRes, error)
- Add(ctx context.Context, req *system.RuleAddReq) (err error)
- BindRoleRule(ctx context.Context, ruleId interface{}, roleIds []uint) (err error)
- Get(ctx context.Context, id uint) (rule *entity.SysAuthRule, err error)
- GetMenuRoles(ctx context.Context, id uint) (roleIds []uint, err error)
- Update(ctx context.Context, req *system.RuleUpdateReq) (err error)
- UpdateRoleRule(ctx context.Context, ruleId uint, roleIds []uint) (err error)
- GetMenuListTree(pid uint, list []*model.SysAuthRuleInfoRes) []*model.SysAuthRuleTreeRes
- DeleteMenuByIds(ctx context.Context, ids []int) (err error)
- FindSonByParentId(list []*model.SysAuthRuleInfoRes, pid uint) []*model.SysAuthRuleInfoRes
- }
- )
- var (
- localSysAuthRule ISysAuthRule
- )
- func SysAuthRule() ISysAuthRule {
- if localSysAuthRule == nil {
- panic("implement not found for interface ISysAuthRule, forgot register?")
- }
- return localSysAuthRule
- }
- func RegisterSysAuthRule(i ISysAuthRule) {
- localSysAuthRule = i
- }
|