37 lines
1.1 KiB
Go
37 lines
1.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"
|
|
"server/internal/model"
|
|
)
|
|
|
|
type (
|
|
IChapter interface {
|
|
// List retrieves a paginated list of chapters
|
|
List(ctx context.Context, in *model.ChapterListIn) (out *model.ChapterListOut, err error)
|
|
Create(ctx context.Context, in *model.ChapterAddIn) (out *model.ChapterCRUDOut, err error)
|
|
Update(ctx context.Context, in *model.ChapterEditIn) (out *model.ChapterCRUDOut, err error)
|
|
Delete(ctx context.Context, in *model.ChapterDelIn) (out *model.ChapterCRUDOut, err error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localChapter IChapter
|
|
)
|
|
|
|
func Chapter() IChapter {
|
|
if localChapter == nil {
|
|
panic("implement not found for interface IChapter, forgot register?")
|
|
}
|
|
return localChapter
|
|
}
|
|
|
|
func RegisterChapter(i IChapter) {
|
|
localChapter = i
|
|
}
|