38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
|
// ==========================================================================
|
|||
|
// GFast自动生成service操作代码。
|
|||
|
// 生成日期:2024-05-28 15:09:13
|
|||
|
// 生成路径: internal/app/system/service/app_menus.go
|
|||
|
// 生成人:gfast
|
|||
|
// desc:app菜单
|
|||
|
// company:云南奇讯科技有限公司
|
|||
|
// ==========================================================================
|
|||
|
|
|||
|
package service
|
|||
|
|
|||
|
import (
|
|||
|
"context"
|
|||
|
"github.com/tiger1103/gfast/v3/api/v1/system"
|
|||
|
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
|||
|
)
|
|||
|
|
|||
|
type IAppMenus interface {
|
|||
|
List(ctx context.Context, req *system.AppMenusSearchReq) (res *system.AppMenusSearchRes, err error)
|
|||
|
GetByMenuId(ctx context.Context, MenuId uint) (res *model.AppMenusInfoRes, err error)
|
|||
|
Add(ctx context.Context, req *system.AppMenusAddReq) (err error)
|
|||
|
Edit(ctx context.Context, req *system.AppMenusEditReq) (err error)
|
|||
|
Delete(ctx context.Context, MenuId []uint) (err error)
|
|||
|
}
|
|||
|
|
|||
|
var localAppMenus IAppMenus
|
|||
|
|
|||
|
func AppMenus() IAppMenus {
|
|||
|
if localAppMenus == nil {
|
|||
|
panic("implement not found for interface IAppMenus, forgot register?")
|
|||
|
}
|
|||
|
return localAppMenus
|
|||
|
}
|
|||
|
|
|||
|
func RegisterAppMenus(i IAppMenus) {
|
|||
|
localAppMenus = i
|
|||
|
}
|