7 changed files with 28 additions and 65 deletions
-
6link_homework/internal/controller/clientPage/clientPage.go
-
16link_homework/internal/controller/record/manageRecord.go
-
18link_homework/internal/logic/client/client.go
-
0link_homework/internal/logic/homework/.gitkeep
-
14link_homework/internal/logic/record/record.go
-
37link_homework/internal/service/homework.go
-
2link_homework/manifest/config/config.yaml
@ -1,37 +0,0 @@ |
|||||
// ================================================================================
|
|
||||
// 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" |
|
||||
"link_homework/api/v1/homework" |
|
||||
"link_homework/internal/model/entity" |
|
||||
) |
|
||||
|
|
||||
type ( |
|
||||
IHomework interface { |
|
||||
GetHomeworkList(ctx context.Context, pageNo int, pageSize int) (homeworkList []*entity.ActivityInteractiveGroup, err error) |
|
||||
GetHomeworkListTotal(ctx context.Context) (total int, err error) |
|
||||
GetHomework(ctx context.Context, id int) (homework *entity.ActivityInteractiveGroup, err error) |
|
||||
AddHomework(ctx context.Context, req *homework.AddHomeworkReq) (err error) |
|
||||
EditHomework(ctx context.Context, req *homework.EditHomeworkReq) (err error) |
|
||||
} |
|
||||
) |
|
||||
|
|
||||
var ( |
|
||||
localHomework IHomework |
|
||||
) |
|
||||
|
|
||||
func Homework() IHomework { |
|
||||
if localHomework == nil { |
|
||||
panic("implement not found for interface IHomework, forgot register?") |
|
||||
} |
|
||||
return localHomework |
|
||||
} |
|
||||
|
|
||||
func RegisterHomework(i IHomework) { |
|
||||
localHomework = i |
|
||||
} |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue