47 lines
1.6 KiB
Go
47 lines
1.6 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)。
|
|
|
|
// ILink 友链服务接口
|
|
type ILink interface {
|
|
// Page 友链分页
|
|
Page(ctx context.Context, req *v1.LinkPageReq) (res *v1.LinkPageRes, err error)
|
|
// Detail 友链详情
|
|
Detail(ctx context.Context, req *v1.LinkDetailReq) (res *v1.LinkDetailRes, err error)
|
|
// Add 新增友链
|
|
Add(ctx context.Context, req *v1.LinkAddReq) (res *v1.IdRes, err error)
|
|
// Update 修改友链
|
|
Update(ctx context.Context, req *v1.LinkUpdateReq) (res *v1.LinkUpdateRes, err error)
|
|
// Delete 删除友链
|
|
Delete(ctx context.Context, req *v1.LinkDeleteReq) (res *v1.LinkDeleteRes, err error)
|
|
// BatchDelete 批量删除友链
|
|
BatchDelete(ctx context.Context, req *v1.LinkBatchDeleteReq) (res *v1.LinkBatchDeleteRes, err error)
|
|
}
|
|
|
|
// localLink 友链服务实现实例
|
|
var localLink ILink
|
|
|
|
// Link 获取友链服务实例
|
|
func Link() ILink {
|
|
if localLink == nil {
|
|
panic("implement not found for interface ILink, forgot register?")
|
|
}
|
|
return localLink
|
|
}
|
|
|
|
// RegisterLink 注册友链服务实现
|
|
func RegisterLink(i ILink) {
|
|
localLink = i
|
|
}
|