新增菜单和角色关联接口
This commit is contained in:
33
internal/service/role_menu.go
Normal file
33
internal/service/role_menu.go
Normal file
@ -0,0 +1,33 @@
|
||||
// ================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// You can delete these comments if you wish manually maintain this interface file.
|
||||
// ================================================================================
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"server/internal/model"
|
||||
)
|
||||
|
||||
type (
|
||||
IRoleMenu interface {
|
||||
List(ctx context.Context, in *model.RoleMenuListInput) (out *model.MenuListOutput, err error)
|
||||
Save(ctx context.Context, in *model.RoleMenuSaveInput) (out *model.UpdateOut, err error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localRoleMenu IRoleMenu
|
||||
)
|
||||
|
||||
func RoleMenu() IRoleMenu {
|
||||
if localRoleMenu == nil {
|
||||
panic("implement not found for interface IRoleMenu, forgot register?")
|
||||
}
|
||||
return localRoleMenu
|
||||
}
|
||||
|
||||
func RegisterRoleMenu(i IRoleMenu) {
|
||||
localRoleMenu = i
|
||||
}
|
||||
Reference in New Issue
Block a user