58 lines
2.1 KiB
Go
58 lines
2.1 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)。
|
|
|
|
// IDict 字典服务接口
|
|
type IDict interface {
|
|
// Page 字典分页
|
|
Page(ctx context.Context, req *v1.DictPageReq) (res *v1.DictPageRes, err error)
|
|
// Detail 字典详情
|
|
// 包含字典项集合
|
|
Detail(ctx context.Context, req *v1.DictDetailReq) (res *v1.DictDetailRes, err error)
|
|
// Add 新增字典
|
|
Add(ctx context.Context, req *v1.DictAddReq) (res *v1.IdRes, err error)
|
|
// Update 修改字典
|
|
Update(ctx context.Context, req *v1.DictUpdateReq) (res *v1.DictUpdateRes, err error)
|
|
// Delete 删除字典
|
|
// 连带删除其下字典项
|
|
Delete(ctx context.Context, req *v1.DictDeleteReq) (res *v1.DictDeleteRes, err error)
|
|
// BatchDelete 批量删除字典
|
|
BatchDelete(ctx context.Context, req *v1.DictBatchDeleteReq) (res *v1.DictBatchDeleteRes, err error)
|
|
// RefreshCache 刷新字典缓存
|
|
// 重写 Redis 缓存
|
|
RefreshCache(ctx context.Context, req *v1.DictRefreshCacheReq) (res *v1.DictRefreshCacheRes, err error)
|
|
// AliasList 字典别名列表
|
|
// 登录用户即可访问
|
|
AliasList(ctx context.Context, req *v1.DictAliasListReq) (res v1.DictAliasListRes, err error)
|
|
// AliasInfo 字典别名详情
|
|
// 登录用户即可访问,缓存优先
|
|
AliasInfo(ctx context.Context, req *v1.DictAliasInfoReq) (res *v1.DictAliasInfoRes, err error)
|
|
}
|
|
|
|
// localDict 字典服务实现实例
|
|
var localDict IDict
|
|
|
|
// Dict 获取字典服务实例
|
|
func Dict() IDict {
|
|
if localDict == nil {
|
|
panic("implement not found for interface IDict, forgot register?")
|
|
}
|
|
return localDict
|
|
}
|
|
|
|
// RegisterDict 注册字典服务实现
|
|
func RegisterDict(i IDict) {
|
|
localDict = i
|
|
}
|