// ================================================================================ // 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" "easygoadmin/api/v1" ) // 按模块独立拆分(源:gf gen service 产物手工重组)。 // logic 方法签名变更时需同步维护本文件(手维护,勿整体运行 gf gen service)。 // IDictItem 字典项服务接口 type IDictItem interface { // Page 字典项分页 // 补充冗余的字典名与字典编码 Page(ctx context.Context, req *v1.DictItemPageReq) (res *v1.DictItemPageRes, err error) // Detail 字典项详情 Detail(ctx context.Context, req *v1.DictItemDetailReq) (res *v1.DictItemDetailRes, err error) // Add 新增字典项 Add(ctx context.Context, req *v1.DictItemAddReq) (res *v1.IdRes, err error) // Update 修改字典项 Update(ctx context.Context, req *v1.DictItemUpdateReq) (res *v1.DictItemUpdateRes, err error) // Delete 删除字典项 Delete(ctx context.Context, req *v1.DictItemDeleteReq) (res *v1.DictItemDeleteRes, err error) // BatchDelete 批量删除字典项 BatchDelete(ctx context.Context, req *v1.DictItemBatchDeleteReq) (res *v1.DictItemBatchDeleteRes, err error) // QuickList 快捷字典项列表 // 登录用户即可访问,按字典编码查询 QuickList(ctx context.Context, req *v1.DictItemQuickListReq) (res v1.DictItemQuickListRes, err error) } // localDictItem 字典项服务实现实例 var localDictItem IDictItem // DictItem 获取字典项服务实例 func DictItem() IDictItem { if localDictItem == nil { panic("implement not found for interface IDictItem, forgot register?") } return localDictItem } // RegisterDictItem 注册字典项服务实现 func RegisterDictItem(i IDictItem) { localDictItem = i }