35 lines
1.0 KiB
Go
35 lines
1.0 KiB
Go
// ================================================================================
|
|
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
|
// You can delete these comments if you wish manually maintain this interface file.
|
|
// ================================================================================
|
|
|
|
package service
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/tiger1103/gfast/v3/api/v1/system"
|
|
"github.com/tiger1103/gfast/v3/internal/app/system/model/entity"
|
|
)
|
|
|
|
type ISysPost interface {
|
|
List(ctx context.Context, req *system.PostSearchReq) (res *system.PostSearchRes, err error)
|
|
Add(ctx context.Context, req *system.PostAddReq) (err error)
|
|
Edit(ctx context.Context, req *system.PostEditReq) (err error)
|
|
Delete(ctx context.Context, ids []int) (err error)
|
|
GetUsedPost(ctx context.Context) (list []*entity.SysPost, err error)
|
|
}
|
|
|
|
var localSysPost ISysPost
|
|
|
|
func SysPost() ISysPost {
|
|
if localSysPost == nil {
|
|
panic("implement not found for interface ISysPost, forgot register?")
|
|
}
|
|
return localSysPost
|
|
}
|
|
|
|
func RegisterSysPost(i ISysPost) {
|
|
localSysPost = i
|
|
}
|