You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
983 B
34 lines
983 B
// ================================================================================
|
|
// 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/ClientPage"
|
|
)
|
|
|
|
type (
|
|
IClient interface {
|
|
ClientGetHomeworkList(ctx context.Context, jwcode int) (homeworkList []ClientPage.GetHomeworkListRse, err error)
|
|
GetHomeworkQuestion(ctx context.Context, groupId int) (questions []ClientPage.GetHomeworkQuestionRes, err error)
|
|
CommitHomework(ctx context.Context, req ClientPage.CommitHomeworkReq, jwcode int) (err error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localClient IClient
|
|
)
|
|
|
|
func Client() IClient {
|
|
if localClient == nil {
|
|
panic("implement not found for interface IClient, forgot register?")
|
|
}
|
|
return localClient
|
|
}
|
|
|
|
func RegisterClient(i IClient) {
|
|
localClient = i
|
|
}
|