You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

44 lines
1.3 KiB

// ================================================================================
// 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"
v1 "xgit.pub/module/cms/app/api/collect/v1"
)
type (
ICollect interface {
// GetList 获取列表
GetList(ctx context.Context, req *v1.GetListReq) (res *v1.GetListRes, err error)
// Get 获取详情
Get(ctx context.Context, req *v1.GetReq) (res *v1.GetRes, err error)
// Create 创建
Create(ctx context.Context, req *v1.CreateReq) (res *v1.CreateRes, err error)
// Update 更新
Update(ctx context.Context, req *v1.UpdateReq) (res *v1.UpdateRes, err error)
// Delete 删除
Delete(ctx context.Context, req *v1.DeleteReq) (res *v1.DeleteRes, err error)
// BatchDelete 批量删除
BatchDelete(ctx context.Context, req *v1.BatchDeleteReq) (res *v1.BatchDeleteRes, err error)
}
)
var (
localCollect ICollect
)
func Collect() ICollect {
if localCollect == nil {
panic("implement not found for interface ICollect, forgot register?")
}
return localCollect
}
func RegisterCollect(i ICollect) {
localCollect = i
}