58 lines
2.2 KiB
Go
58 lines
2.2 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)。
|
|
|
|
// IConfig 配置服务接口
|
|
type IConfig interface {
|
|
// Page 配置分页
|
|
Page(ctx context.Context, req *v1.ConfigPageReq) (res *v1.ConfigPageRes, err error)
|
|
// List 配置列表
|
|
// 每项携带其下的配置项集合
|
|
List(ctx context.Context, req *v1.ConfigListReq) (res v1.ConfigListRes, err error)
|
|
// Detail 配置详情
|
|
// 包含配置项集合
|
|
Detail(ctx context.Context, req *v1.ConfigDetailReq) (res *v1.ConfigDetailRes, err error)
|
|
// Add 新增配置
|
|
Add(ctx context.Context, req *v1.ConfigAddReq) (res *v1.IdRes, err error)
|
|
// Update 修改配置
|
|
Update(ctx context.Context, req *v1.ConfigUpdateReq) (res *v1.ConfigUpdateRes, err error)
|
|
// Delete 删除配置
|
|
// 连带删除其下配置项
|
|
Delete(ctx context.Context, req *v1.ConfigDeleteReq) (res *v1.ConfigDeleteRes, err error)
|
|
// BatchDelete 批量删除配置
|
|
BatchDelete(ctx context.Context, req *v1.ConfigBatchDeleteReq) (res *v1.ConfigBatchDeleteRes, err error)
|
|
// WebIndex 网站配置聚合
|
|
// 按配置分组返回,供网站配置页渲染
|
|
WebIndex(ctx context.Context, req *v1.ConfigWebIndexReq) (res *v1.ConfigWebIndexRes, err error)
|
|
// WebSave 批量保存网站配置
|
|
// 接收配置项编码到值的映射
|
|
WebSave(ctx context.Context, req *v1.ConfigWebSaveReq) (res *v1.ConfigWebSaveRes, err error)
|
|
}
|
|
|
|
// localConfig 配置服务实现实例
|
|
var localConfig IConfig
|
|
|
|
// Config 获取配置服务实例
|
|
func Config() IConfig {
|
|
if localConfig == nil {
|
|
panic("implement not found for interface IConfig, forgot register?")
|
|
}
|
|
return localConfig
|
|
}
|
|
|
|
// RegisterConfig 注册配置服务实现
|
|
func RegisterConfig(i IConfig) {
|
|
localConfig = i
|
|
}
|