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.
47 lines
1.7 KiB
47 lines
1.7 KiB
// ================================================================================
|
|
// 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 (
|
|
v1 "Knowledge_Test_Go/api/v1"
|
|
"context"
|
|
|
|
"github.com/gogf/gf/v2/net/ghttp"
|
|
)
|
|
|
|
type (
|
|
IQuestionBank interface {
|
|
// GetQuestions 获取题目列表
|
|
GetQuestions(ctx context.Context, req *v1.QuestionOutputReq) (res []*v1.QuestionOutputRes, total int, err error)
|
|
// QuestionUpdate 修改题目
|
|
QuestionUpdate(ctx context.Context, req *v1.QuestionUpdateReq) (res string, err error)
|
|
// QuestionDel 删除题目
|
|
QuestionDel(ctx context.Context, req *v1.QuestionDelReq) (res string, err error)
|
|
// UserScoreOutput 获取用户成绩列表
|
|
UserScoreOutput(ctx context.Context, req *v1.UserScoreOutputReq) (res []*v1.UserScoreOutputRes, total int, err error)
|
|
// ErrorOutPutUser 错题统计出错用户
|
|
ErrorOutPutUser(ctx context.Context, req *v1.ErrorOutPutUserReq) (res []*v1.ErrorOutPutUserRes, total int, err error)
|
|
// ExportQuestion 导出题目数据到 Excel
|
|
ExportQuestion(r *ghttp.Request, ctx context.Context, req *v1.QuestionOutputReq)
|
|
// ExportUserScore 导出用户成绩数据到 Excel
|
|
ExportUserScore(r *ghttp.Request, ctx context.Context, req *v1.UserScoreOutputReq)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localQuestionBank IQuestionBank
|
|
)
|
|
|
|
func QuestionBank() IQuestionBank {
|
|
if localQuestionBank == nil {
|
|
panic("implement not found for interface IQuestionBank, forgot register?")
|
|
}
|
|
return localQuestionBank
|
|
}
|
|
|
|
func RegisterQuestionBank(i IQuestionBank) {
|
|
localQuestionBank = i
|
|
}
|