-
Notifications
You must be signed in to change notification settings - Fork 14
/
note_class.go
40 lines (33 loc) · 1.05 KB
/
note_class.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// ================================================================================
// 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"
"github.com/iimeta/iim-client/internal/model"
)
type (
INoteClass interface {
// List 分类列表
List(ctx context.Context) (*model.ClassListRes, error)
// Edit 添加或修改分类
Edit(ctx context.Context, params model.ClassEditReq) (*model.ClassEditRes, error)
// Delete 删除分类
Delete(ctx context.Context, params model.ClassDeleteReq) error
// Sort 删除分类
Sort(ctx context.Context, params model.ClassSortReq) error
}
)
var (
localNoteClass INoteClass
)
func NoteClass() INoteClass {
if localNoteClass == nil {
panic("implement not found for interface INoteClass, forgot register?")
}
return localNoteClass
}
func RegisterNoteClass(i INoteClass) {
localNoteClass = i
}