初始
This commit is contained in:
39
internal/app/system/service/todo_tasks.go
Normal file
39
internal/app/system/service/todo_tasks.go
Normal file
@ -0,0 +1,39 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成service操作代码。
|
||||
// 生成日期:2024-05-15 17:30:14
|
||||
// 生成路径: internal/app/system/service/todo_tasks.go
|
||||
// 生成人:gfast
|
||||
// desc:App-待办
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/tiger1103/gfast/v3/api/v1/system"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
||||
)
|
||||
|
||||
type ITodoTasks interface {
|
||||
MyList(ctx context.Context, req *system.TodoTasksMyListReq) (res *system.TodoTasksMyListRes, err error)
|
||||
List(ctx context.Context, req *system.TodoTasksSearchReq) (res *system.TodoTasksSearchRes, err error)
|
||||
GetById(ctx context.Context, Id uint) (res *model.TodoTasksInfoRes, err error)
|
||||
Add(ctx context.Context, req *system.TodoTasksAddReq) (err error)
|
||||
Edit(ctx context.Context, req *system.TodoTasksEditReq) (err error)
|
||||
Delete(ctx context.Context, Id []uint) (err error)
|
||||
}
|
||||
|
||||
var localTodoTasks ITodoTasks
|
||||
|
||||
func TodoTasks() ITodoTasks {
|
||||
if localTodoTasks == nil {
|
||||
panic("implement not found for interface ITodoTasks, forgot register?")
|
||||
}
|
||||
return localTodoTasks
|
||||
}
|
||||
|
||||
func RegisterTodoTasks(i ITodoTasks) {
|
||||
localTodoTasks = i
|
||||
}
|
Reference in New Issue
Block a user