50 lines
1.9 KiB
Go
50 lines
1.9 KiB
Go
// ================================================================================
|
|
// 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)。
|
|
|
|
// IConfigItem 配置项服务接口
|
|
type IConfigItem interface {
|
|
// Page 配置项分页
|
|
// 补充冗余的所属配置名
|
|
Page(ctx context.Context, req *v1.ConfigItemPageReq) (res *v1.ConfigItemPageRes, err error)
|
|
// List 配置项列表
|
|
List(ctx context.Context, req *v1.ConfigItemListReq) (res v1.ConfigItemListRes, err error)
|
|
// Detail 配置项详情
|
|
Detail(ctx context.Context, req *v1.ConfigItemDetailReq) (res *v1.ConfigItemDetailRes, err error)
|
|
// Add 新增配置项
|
|
Add(ctx context.Context, req *v1.ConfigItemAddReq) (res *v1.IdRes, err error)
|
|
// Update 修改配置项
|
|
Update(ctx context.Context, req *v1.ConfigItemUpdateReq) (res *v1.ConfigItemUpdateRes, err error)
|
|
// Delete 删除配置项
|
|
Delete(ctx context.Context, req *v1.ConfigItemDeleteReq) (res *v1.ConfigItemDeleteRes, err error)
|
|
// BatchDelete 批量删除配置项
|
|
BatchDelete(ctx context.Context, req *v1.ConfigItemBatchDeleteReq) (res *v1.ConfigItemBatchDeleteRes, err error)
|
|
}
|
|
|
|
// localConfigItem 配置项服务实现实例
|
|
var localConfigItem IConfigItem
|
|
|
|
// ConfigItem 获取配置项服务实例
|
|
func ConfigItem() IConfigItem {
|
|
if localConfigItem == nil {
|
|
panic("implement not found for interface IConfigItem, forgot register?")
|
|
}
|
|
return localConfigItem
|
|
}
|
|
|
|
// RegisterConfigItem 注册配置项服务实现
|
|
func RegisterConfigItem(i IConfigItem) {
|
|
localConfigItem = i
|
|
}
|