97 lines
4.5 KiB
Go
97 lines
4.5 KiB
Go
// ==========================================================================
|
||
// GFast自动生成api操作代码。
|
||
// 生成日期:2023-10-07 17:11:20
|
||
// 生成路径: api/v1/system/bus_questions_configuration.go
|
||
// 生成人:gfast
|
||
// desc:题库配置相关参数
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package system
|
||
|
||
import (
|
||
"github.com/gogf/gf/v2/frame/g"
|
||
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
|
||
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
||
)
|
||
|
||
// BusQuestionsConfigurationSearchReq 分页请求参数
|
||
type BusQuestionsConfigurationSearchReq struct {
|
||
g.Meta `path:"/list" tags:"题库配置" method:"get" summary:"题库配置列表"`
|
||
commonApi.PageReq
|
||
commonApi.Author
|
||
}
|
||
|
||
// BusQuestionsConfigurationSearchRes 列表返回结果
|
||
type BusQuestionsConfigurationSearchRes struct {
|
||
g.Meta `mime:"application/json"`
|
||
commonApi.ListRes
|
||
List []*model.BusQuestionsConfigurationListRes `json:"list"`
|
||
}
|
||
|
||
// BusQuestionsConfigurationAddReq 添加操作请求参数
|
||
type BusQuestionsConfigurationAddReq struct {
|
||
g.Meta `path:"/add" tags:"题库配置" method:"post" summary:"题库配置添加"`
|
||
commonApi.Author
|
||
SingleChoice int `p:"singleChoice" dc:"单选题(单位/道)" v:"required#单选题(单位/道)不能为空"`
|
||
SingleScore float64 `p:"singleScore" dc:"单选分数" v:"required#单选分数不能为空"`
|
||
MultipleChoice int `p:"multipleChoice" dc:"多选题(单位/道)" v:"required#多选题(单位/道)不能为空"`
|
||
MultipleScore float64 `p:"multipleScore" dc:"多选分数" v:"required#多选分数不能为空"`
|
||
Estimate int `p:"estimate" dc:"判断题(单位/道)" v:"required#判断题(单位/道)不能为空"`
|
||
EstimateScore float64 `p:"estimateScore" dc:"判断分数" v:"required#判断分数不能为空"`
|
||
FullMark float64 `p:"fullMark" dc:"满分" v:"required#满分不能为空"`
|
||
PassingScore float64 `p:"passingScore" dc:"及格线" v:"required#及格线不能为空"`
|
||
AnswerTime float64 `p:"answerTime" dc:"答题最大超时时间" v:"min:0#及格线不能为空"`
|
||
}
|
||
|
||
// BusQuestionsConfigurationAddRes 添加操作返回结果
|
||
type BusQuestionsConfigurationAddRes struct {
|
||
commonApi.EmptyRes
|
||
}
|
||
|
||
// BusQuestionsConfigurationEditReq 修改操作请求参数
|
||
type BusQuestionsConfigurationEditReq struct {
|
||
g.Meta `path:"/edit" tags:"题库配置" method:"put" summary:"题库配置修改"`
|
||
commonApi.Author
|
||
Id int64 `p:"id" v:"required#主键ID不能为空"`
|
||
SingleChoice int `p:"singleChoice" dc:"单选题(单位/道)" v:"required#单选题(单位/道)不能为空"`
|
||
SingleScore float64 `p:"singleScore" dc:"单选分数" v:"required#单选分数不能为空"`
|
||
MultipleChoice int `p:"multipleChoice" dc:"多选题(单位/道)" v:"required#多选题(单位/道)不能为空"`
|
||
MultipleScore float64 `p:"multipleScore" dc:"多选分数" v:"required#多选分数不能为空"`
|
||
Estimate int `p:"estimate" dc:"判断题(单位/道)" v:"required#判断题(单位/道)不能为空"`
|
||
EstimateScore float64 `p:"estimateScore" dc:"判断分数" v:"required#判断分数不能为空"`
|
||
FullMark float64 `p:"fullMark" dc:"满分" v:"required#满分不能为空"`
|
||
PassingScore float64 `p:"passingScore" dc:"及格线" v:"required#及格线不能为空"`
|
||
AnswerTime float64 `p:"answerTime" dc:"答题最大超时时间" v:"min:0#及格线不能为空"`
|
||
}
|
||
|
||
// BusQuestionsConfigurationEditRes 修改操作返回结果
|
||
type BusQuestionsConfigurationEditRes struct {
|
||
commonApi.EmptyRes
|
||
}
|
||
|
||
// BusQuestionsConfigurationGetReq 获取一条数据请求
|
||
type BusQuestionsConfigurationGetReq struct {
|
||
g.Meta `path:"/get" tags:"题库配置" method:"get" summary:"获取题库配置信息"`
|
||
commonApi.Author
|
||
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
|
||
}
|
||
|
||
// BusQuestionsConfigurationGetRes 获取一条数据结果
|
||
type BusQuestionsConfigurationGetRes struct {
|
||
g.Meta `mime:"application/json"`
|
||
*model.BusQuestionsConfigurationInfoRes
|
||
}
|
||
|
||
// BusQuestionsConfigurationDeleteReq 删除数据请求
|
||
type BusQuestionsConfigurationDeleteReq struct {
|
||
g.Meta `path:"/delete" tags:"题库配置" method:"delete" summary:"删除题库配置"`
|
||
commonApi.Author
|
||
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
|
||
}
|
||
|
||
// BusQuestionsConfigurationDeleteRes 删除数据返回
|
||
type BusQuestionsConfigurationDeleteRes struct {
|
||
commonApi.EmptyRes
|
||
}
|