Documentation ¶
Index ¶
- func AddAudit(audit *Audit) error
- func AddDataset(dataset *Dataset) bool
- func AddFile(fileItem *FileItem) error
- func AddFinalQuestion(finalQuestion *FinalQuestion) error
- func AddFinalTestpaper(finalTestpaper *FinalTestpaper) error
- func AddProject(project *Project) error
- func AddQuestionComment(request *AddQuestionCommentRequest) error
- func AddStep(step *Step) error
- func AddSubmit(submit *Submit) error
- func AddTempQuestion(tempQuestion *TempQuestion) error
- func AddTempTestpaper(tempTestpaper *TempTestpaper) error
- func AddTestpaperComment(requset *AddTestpaperCommentRequest) error
- func AppendContent(req *AppendContentInSubmit) (*[]Content, error)
- func ChangeAssignment(req *ChangeAssignmentRequest) error
- func CreateEmptyProject(req *Project) (string, error)
- func CreateNewTempQuestion(request *TempQuestion) (string, error)
- func CreateNewTestpaper(request *TempTestpaper) (string, error)
- func CreateOneStep(req *Step) (string, error)
- func CreateTemplateProject(req *Project) (string, error)
- func DeleteAudit(auditId string) error
- func DeleteDataset(dataset *Dataset) bool
- func DeleteFile(fileID string) error
- func DeleteFinalQuestion(finalQuestion *FinalQuestion) bool
- func DeleteFinalTestpaper(tid string) error
- func DeleteProject(project *Project) bool
- func DeleteStep(stepId string) error
- func DeleteStepTimePoint(req *DeleteStepTimePointRequest) error
- func DeleteSubmit(submitId string) error
- func DeleteTempQuestion(tempQuestion *TempQuestion) bool
- func DeleteTempTestpaper(tid string) error
- func FinishTempQuestion(qid string) (string, error)
- func FinishTempTestpaper(tid string) (string, error)
- func GetAllStepsInProject(pid string) (*[]Step, error)
- func GetProjectAssignment(pid string) (map[string][]Assignment, error)
- func GetProjectDetailedInfo(pid string) (map[string]interface{}, error)
- func GetStepSubmits(stepId string) (*[]Submit, error)
- func GetSubmitAudits(submitId string) (*[]Audit, error)
- func GetTestpaperAssignment(tid string) (map[string]auth.User, error)
- func GetUserAssignments(uid string) (*[]Assignment, error)
- func GetUserSubmitsInStep(req *GetUserSubmitsInStepRequest) (*[]Submit, error)
- func InitAdapter()
- func InitConfig()
- func MakeOneAssignment(req *MakeOneAssignmentRequest) (string, error)
- func MakeOneTpAssignment(req *MakeOneTpAssignmentRequest) (string, error)
- func NextStep(req *NextStepRequest) error
- func QueryProjects(ids []string) map[string]Project
- func QueryTempQuestions(idList []string) map[string]TempQuestion
- func RemoveAssignment(aid string) error
- func SearchFiles(searchReq *FileItem) (*[]FileItem, error)
- func SetStepStatus(req *Step) error
- func SetStepTimePoint(req *SetStepTimePointRequest) (*[]ProjectTimePoint, error)
- func SetSubmitStatus(req *SetSubmitStatusRequest) error
- func UpdateDataset(id string, dataset *Dataset) bool
- func UpdateFinalQuestion(request *TempQuestion) error
- func UpdateProject(id string, project *Project) bool
- func UpdateProjectInfo(req *Project) error
- func UpdateQuestion(request *TempQuestion) (string, error)
- func UpdateStepInfo(req *Step) error
- func UpdateSubmitFile(req *UpdateFileRequest) error
- func UpdateTestpaper(request *TempTestpaper) (string, error)
- func UploadFileToStorage(req *FileItem, fileBytes []byte) (string, string)
- func UploadStepAttachments(req *AddStepAttachment) error
- func WithdrawContent(req *WithdrawContentInSubmit) (*[]Content, error)
- type Adapter
- type AddQuestionCommentRequest
- type AddStepAttachment
- type AddTestpaperCommentRequest
- type AppendContentInSubmit
- type Assignment
- type Audit
- type ChangeAssignmentRequest
- type Content
- type Dataset
- type DeleteStepTimePointRequest
- type FileItem
- type FileRecord
- type FinalQuestion
- type FinalTestpaper
- type GetUserSubmitsInStepRequest
- type MakeOneAssignmentRequest
- type MakeOneTpAssignmentRequest
- type NextStepRequest
- type Project
- type ProjectBasicInfo
- type ProjectFullInfo
- type ProjectGroup
- type ProjectMaterials
- type ProjectTimePoint
- type ProjectTimeTable
- type QuestionAdvancedProps
- type QuestionApplyRecord
- type QuestionBasicProps
- type QuestionComment
- type QuestionExtraProps
- type QuestionInfo
- type QuestionItem
- type QuestionItemV1
- type QuestionSpecProps
- type SetStepTimePointRequest
- type SetSubmitStatusRequest
- type Step
- type StepDataStatistic
- type Submit
- type Task
- type TempQuestion
- type TempTestpaper
- type TempTestpaperResponse
- type TestpaperComment
- type TestpaperPart
- type TestpaperPartV1
- type TestpaperProps
- type TimePoint
- type TpAssignment
- type TreeItem
- type UpdateFileRequest
- type WithdrawContentInSubmit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDataset ¶
func AddFinalQuestion ¶
func AddFinalQuestion(finalQuestion *FinalQuestion) error
func AddFinalTestpaper ¶
func AddFinalTestpaper(finalTestpaper *FinalTestpaper) error
func AddProject ¶
func AddQuestionComment ¶
func AddQuestionComment(request *AddQuestionCommentRequest) error
func AddTempQuestion ¶
func AddTempQuestion(tempQuestion *TempQuestion) error
func AddTempTestpaper ¶
func AddTempTestpaper(tempTestpaper *TempTestpaper) error
func AddTestpaperComment ¶
func AddTestpaperComment(requset *AddTestpaperCommentRequest) error
func AppendContent ¶
func AppendContent(req *AppendContentInSubmit) (*[]Content, error)
func ChangeAssignment ¶
func ChangeAssignment(req *ChangeAssignmentRequest) error
func CreateEmptyProject ¶
func CreateNewTempQuestion ¶
func CreateNewTempQuestion(request *TempQuestion) (string, error)
func CreateNewTestpaper ¶
func CreateNewTestpaper(request *TempTestpaper) (string, error)
func CreateOneStep ¶
func CreateTemplateProject ¶
func DeleteAudit ¶
func DeleteDataset ¶
func DeleteFile ¶
DeleteFile delete the file-record in mongodb (keep on disk currently)
func DeleteFinalQuestion ¶
func DeleteFinalQuestion(finalQuestion *FinalQuestion) bool
func DeleteFinalTestpaper ¶
func DeleteProject ¶
func DeleteStep ¶
func DeleteStepTimePoint ¶
func DeleteStepTimePoint(req *DeleteStepTimePointRequest) error
func DeleteSubmit ¶
func DeleteTempQuestion ¶
func DeleteTempQuestion(tempQuestion *TempQuestion) bool
func DeleteTempTestpaper ¶
func FinishTempQuestion ¶
func FinishTempTestpaper ¶
func GetAllStepsInProject ¶
func GetProjectAssignment ¶
func GetProjectAssignment(pid string) (map[string][]Assignment, error)
func GetProjectDetailedInfo ¶
func GetStepSubmits ¶
func GetSubmitAudits ¶
func GetUserAssignments ¶
func GetUserAssignments(uid string) (*[]Assignment, error)
func GetUserSubmitsInStep ¶
func GetUserSubmitsInStep(req *GetUserSubmitsInStepRequest) (*[]Submit, error)
func InitAdapter ¶
func InitAdapter()
func InitConfig ¶
func InitConfig()
func MakeOneAssignment ¶
func MakeOneAssignment(req *MakeOneAssignmentRequest) (string, error)
func MakeOneTpAssignment ¶
func MakeOneTpAssignment(req *MakeOneTpAssignmentRequest) (string, error)
func NextStep ¶
func NextStep(req *NextStepRequest) error
func QueryProjects ¶
QueryProjects get project list
func QueryTempQuestions ¶
func QueryTempQuestions(idList []string) map[string]TempQuestion
QueryTempQuestions 进行批量查询的方法
func RemoveAssignment ¶
func SearchFiles ¶
func SetStepStatus ¶
func SetStepTimePoint ¶
func SetStepTimePoint(req *SetStepTimePointRequest) (*[]ProjectTimePoint, error)
func SetSubmitStatus ¶
func SetSubmitStatus(req *SetSubmitStatusRequest) error
func UpdateDataset ¶
func UpdateFinalQuestion ¶
func UpdateFinalQuestion(request *TempQuestion) error
func UpdateProject ¶
func UpdateProjectInfo ¶
func UpdateQuestion ¶
func UpdateQuestion(request *TempQuestion) (string, error)
func UpdateStepInfo ¶
func UpdateSubmitFile ¶
func UpdateSubmitFile(req *UpdateFileRequest) error
func UpdateTestpaper ¶
func UpdateTestpaper(request *TempTestpaper) (string, error)
func UploadFileToStorage ¶
func UploadStepAttachments ¶
func UploadStepAttachments(req *AddStepAttachment) error
func WithdrawContent ¶
func WithdrawContent(req *WithdrawContentInSubmit) (*[]Content, error)
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter represents the MySQL adapter for policy storage.
func NewAdapter ¶
NewAdapter is the constructor for Adapter.
type AddStepAttachment ¶
type AddStepAttachment struct { StepId string `json:"step_id"` FilesIds []FileRecord `json:"files_ids"` Uploader string `json:"uploader"` }
type AppendContentInSubmit ¶
type Assignment ¶
type Assignment struct { Uuid string `xorm:"varchar(100) notnull pk" json:"uuid"` UserId string `json:"user_id"` ProjectId string `json:"project_id"` Role int `json:"role"` Operator string `json:"operator"` IsConfirmed bool `json:"is_confirmed"` Status int `json:"status"` CreateAt time.Time `xorm:"created" json:"create_at"` UpdatedAt time.Time `xorm:"updated" json:"updated_at"` }
type Audit ¶
type Audit struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"created_time"` SubmitContent string `json:"submit_content"` Result string `json:"result"` Comment string `json:"comment"` Auditor string `json:"auditor"` CreateAt time.Time `xorm:"created" json:"create_at"` UpdatedAt time.Time `xorm:"updated" json:"updated_at"` }
func CorrectAudit ¶
func GetOneAudit ¶
func MakeOneAudit ¶
type ChangeAssignmentRequest ¶
type Dataset ¶
type Dataset struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` StartDate string `xorm:"varchar(100)" json:"startDate"` EndDate string `xorm:"varchar(100)" json:"endDate"` FullName string `xorm:"varchar(100)" json:"fullName"` Organizer string `xorm:"varchar(100)" json:"organizer"` Location string `xorm:"varchar(100)" json:"location"` Address string `xorm:"varchar(100)" json:"address"` Status string `xorm:"varchar(100)" json:"status"` Language string `xorm:"varchar(100)" json:"language"` Tags []string `xorm:"mediumtext" json:"tags"` Carousels []string `xorm:"mediumtext" json:"carousels"` IntroText string `xorm:"mediumtext" json:"introText"` DefaultItem string `xorm:"mediumtext" json:"defaultItem"` TreeItems []*TreeItem `xorm:"mediumtext" json:"treeItems"` }
func GetDataset ¶
func GetDatasets ¶
func GetGlobalDatasets ¶
func GetGlobalDatasets() []*Dataset
type FileItem ¶
type FileItem struct { Uuid string `xorm:"varchar(100) notnull pk" json:"uuid"` Name string `json:"name"` Type string `json:"type"` SourceProject string `json:"source_project"` Description string `json:"description"` Tags []string `xorm:"mediumtext" json:"tags"` Path string `json:"path"` Owner string `json:"owner"` CreateAt time.Time `xorm:"created" json:"create_at"` UpdatedAt time.Time `xorm:"updated" json:"updated_at"` }
func GetFileInfo ¶
GetFileInfo get file information by file-uuid
type FileRecord ¶
type FinalQuestion ¶
type FinalQuestion struct { Uuid string `xorm:"varchar(100) notnull pk" json:"uuid"` SourceProject string `json:"source_project"` // 来源项目id FinalVersion string `json:"final_version"` // 录入final的最后一个版本 Author string `json:"author"` Info QuestionInfo `xorm:"mediumtext json" json:"info"` BasicProps QuestionBasicProps `xorm:"mediumtext json" json:"basic_props"` SpecProps QuestionSpecProps `xorm:"mediumtext json" json:"spec_props"` ExtraProps QuestionExtraProps `xorm:"mediumtext json" json:"extra_props"` AdvancedProps QuestionAdvancedProps `xorm:"mediumtext json" json:"advanced_props"` ApplyRecord QuestionApplyRecord `xorm:"mediumtext json" json:"apply_record"` CreateAt time.Time `xorm:"created" json:"create_at"` UpdatedAt time.Time `xorm:"updated" json:"updated_at"` DeletedAt time.Time `xorm:"deleted" json:"deleted_at"` }
func GetProjectFinalQuestions ¶
func GetProjectFinalQuestions(pid string) ([]FinalQuestion, error)
func GetUserFinalQuestions ¶
func GetUserFinalQuestions(uid string) ([]FinalQuestion, error)
func SearchQuestion ¶
func SearchQuestion(bodyString string) ([]FinalQuestion, error)
type FinalTestpaper ¶
type FinalTestpaper struct { Uuid string `xorm:"varchar(100) notnull pk" json:"uuid"` SourceProject string `json:"source_project"` Author string `json:"author"` Title string `json:"title"` Info []TestpaperPart `xorm:"mediumtext" json:"info"` Props TestpaperProps `xorm:"mediumtext json" json:"props"` CreateAt time.Time `xorm:"created" json:"create_at"` UpdatedAt time.Time `xorm:"updated" json:"updated_at"` DeletedAt time.Time `xorm:"deleted" json:"deleted_at"` }
func GetProjecgtFinalTestpaper ¶
func GetProjecgtFinalTestpaper(pid string) ([]FinalTestpaper, error)
func GetUserFinalTestpaper ¶
func GetUserFinalTestpaper(uid string) ([]FinalTestpaper, error)
type NextStepRequest ¶
type NextStepRequest struct {
Pid string `json:"pid"`
}
type Project ¶
type Project struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"created_time"` Creator string `xorm:"varchar(256) index" json:"creator"` Status int `json:"status"` BasicInfo ProjectBasicInfo `xorm:"mediumtext json" json:"basic_info"` CreateAt time.Time `xorm:"created" json:"create_at"` UpdatedAt time.Time `xorm:"updated" json:"updated_at"` DeletedAt time.Time `xorm:"deleted" json:"deleted_at"` }
func GetProject ¶
func GetProjectBasicInfo ¶
type ProjectBasicInfo ¶
type ProjectBasicInfo struct { Name string `xorm:"index" json:"name"` Description string `json:"description"` Requirement string `json:"requirement"` Target string `json:"target"` GradeRange []string `xorm:"mediumtext" json:"grade_range"` Subjects []string `xorm:"mediumtext" json:"subjects"` Summary string `json:"summary"` }
type ProjectFullInfo ¶
type ProjectFullInfo struct { BasicInfo Project `json:"basic_info" bson:"basic_info"` Group ProjectGroup `json:"group" bson:"group"` TimeTable ProjectTimeTable `json:"time_table" bson:"time_table"` Materials ProjectMaterials `json:"materials" bson:"materials"` Steps []Step `json:"steps" bson:"steps"` Submits []Submit `json:"submits" bson:"submits"` Audits []Audit `json:"audits" bson:"audits"` }
type ProjectGroup ¶
type ProjectMaterials ¶
type ProjectTimePoint ¶
type ProjectTimeTable ¶
type ProjectTimeTable struct {
TimePoints []ProjectTimePoint `json:"time_points" bson:"time_points"`
}
ProjectTimeTable describe the timeline of a project
type QuestionAdvancedProps ¶
type QuestionApplyRecord ¶
type QuestionBasicProps ¶
type QuestionBasicProps struct { Encode string `json:"encode"` Subject string `json:"subject"` DetailsDimension string `json:"details_dimension"` SubDetailsDimension string `json:"sub_details_dimension"` AbilityDimension string `json:"ability_dimension"` SubAbilityDimension string `json:"sub_ability_dimension"` Description string `json:"description"` SubjectRequirements string `json:"subject_requirements"` Details string `json:"details"` Keywords []string `json:"keywords"` }
type QuestionComment ¶
type QuestionExtraProps ¶
type QuestionInfo ¶
type QuestionItem ¶
type QuestionItemV1 ¶
type QuestionItemV1 struct { SmallQuestionNumber int `json:"small_question_number"` Question TempQuestion `json:"question"` Score int `json:"score"` Comment string `json:"comment"` }
type QuestionSpecProps ¶
type SetStepTimePointRequest ¶
type SetSubmitStatusRequest ¶
type Step ¶
type Step struct { Uuid string `xorm:"varchar(100) notnull pk" json:"uuid"` Name string `json:"name"` ProjectId string `json:"project_id"` StepIndex int `json:"step_index"` Description string `json:"description"` Requirement string `json:"requirement"` Status string `json:"status"` Deadline int64 `json:"deadline"` Timetable []ProjectTimePoint `xorm:"mediumtext" json:"timetable"` Creator string `json:"creator"` Attachments []FileRecord `xorm:"mediumtext" json:"attachments"` // uuid of files CreateAt time.Time `xorm:"created" json:"create_at"` UpdatedAt time.Time `xorm:"updated" json:"updated_at"` }
func GetStepInfo ¶
type StepDataStatistic ¶
type StepDataStatistic struct { Total float64 `json:"total"` PassRate float64 `json:"pass_rate"` Pass float64 `json:"pass"` Returned float64 `json:"returned"` ToUpload float64 `json:"to_upload"` ToAudit float64 `json:"to_audit"` ToCorrect float64 `json:"to_correct"` }
func GetStepDataStatistic ¶
func GetStepDataStatistic(stepId string) (*StepDataStatistic, error)
type Submit ¶
type Submit struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"created_time"` StepId string `json:"step_id"` TestpaperId string `json:"testpaper_id"` Title string `json:"title"` Description string `json:"description"` Submitter string `json:"submitter"` Contents []Content `xorm:"mediumtext" json:"contents"` Status string `json:"status"` File []FileRecord `json:"file"` CreateAt time.Time `xorm:"created" json:"create_at"` UpdatedAt time.Time `xorm:"updated" json:"updated_at"` DeletedAt time.Time `xorm:"deleted" json:"deleted_at"` }
func GetOneSubmit ¶
func GetProjectSubmit ¶
func MakeOneSubmit ¶
type Task ¶
type Task struct { Owner string `xorm:"varchar(100) notnull pk" json:"owner"` Name string `xorm:"varchar(100) notnull pk" json:"name"` CreatedTime string `xorm:"varchar(100)" json:"createdTime"` Preface string `xorm:"mediumtext" json:"preface"` Text string `xorm:"mediumtext" json:"text"` Type string `xorm:"varchar(100)" json:"type"` Canvas string `xorm:"mediumtext" json:"canvas"` Basic string `xorm:"mediumtext" json:"basic"` Video string `xorm:"mediumtext" json:"video"` Slides string `xorm:"mediumtext" json:"slides"` Sketch string `xorm:"mediumtext" json:"sketch"` Frame string `xorm:"mediumtext" json:"frame"` Three string `xorm:"mediumtext" json:"three"` Game string `xorm:"mediumtext" json:"game"` Deck string `xorm:"mediumtext" json:"deck"` Extras []string `xorm:"varchar(1000)" json:"extras"` Options []string `xorm:"varchar(100)" json:"options"` Answer []string `xorm:"varchar(100)" json:"answer"` SourceProject string `json:"source_project"` // 项目来源 }
type TempQuestion ¶
type TempQuestion struct { Uuid string `xorm:"varchar(100) notnull pk" json:"uuid"` IsRoot bool `json:"is_root"` // 临时题目是否是根 Base string `json:"base"` // 若不是root, 需要设置上级题目, 进行版本管理 Next string `json:"next"` SourceProject string `json:"source_project"` // 项目来源 Author string `json:"author"` IsNew bool `json:"is_new"` FinalBase string `json:"final_base"` Info QuestionInfo `xorm:"mediumtext json" json:"info"` BasicProps QuestionBasicProps `xorm:"mediumtext json" json:"basic_props"` SpecProps QuestionSpecProps `xorm:"mediumtext json" json:"spec_props"` ExtraProps QuestionExtraProps `xorm:"mediumtext json" json:"extra_props"` AdvancedProps QuestionAdvancedProps `xorm:"mediumtext json" json:"advanced_props"` ApplyRecord QuestionApplyRecord `xorm:"mediumtext json" json:"apply_record"` CommentRecord []QuestionComment `xorm:"mediumtext" json:"comment_record"` ChangeLog string `json:"change_log"` CreateAt time.Time `xorm:"created" json:"create_at"` UpdatedAt time.Time `xorm:"updated" json:"updated_at"` DeletedAt time.Time `xorm:"deleted" json:"deleted_at"` }
func GetProjectTempQuestions ¶
func GetProjectTempQuestions(pid string) ([]TempQuestion, error)
func GetUserTempQuestions ¶
func GetUserTempQuestions(uid string) ([]TempQuestion, error)
func TraceQuestionVersion ¶
func TraceQuestionVersion(qid string) ([]TempQuestion, error)
type TempTestpaper ¶
type TempTestpaper struct { Uuid string `xorm:"varchar(100) notnull pk" json:"uuid"` IsRoot bool `json:"is_root"` Base string `json:"base"` SourceProject string `json:"source_project"` Author string `json:"author"` Title string `json:"title"` Info []TestpaperPart `xorm:"mediumtext" json:"info"` Props TestpaperProps `xorm:"mediumtext json" json:"props"` CommentRecord []TestpaperComment `xorm:"mediumtext" json:"comment_record"` CreateAt time.Time `xorm:"created" json:"create_at"` UpdatedAt time.Time `xorm:"updated" json:"updated_at"` DeletedAt time.Time `xorm:"deleted" json:"deleted_at"` }
func GetProjectTempTestpaper ¶
func GetProjectTempTestpaper(pid string) ([]TempTestpaper, error)
func GetUserTempTestpaper ¶
func GetUserTempTestpaper(uid string) ([]TempTestpaper, error)
func TraceTestpaperVersion ¶
func TraceTestpaperVersion(tid string) ([]TempTestpaper, error)
type TempTestpaperResponse ¶
type TempTestpaperResponse struct { Uuid string `xorm:"varchar(100) notnull pk" json:"uuid"` IsRoot bool `json:"is_root"` Base string `json:"base"` SourceProject string `json:"source_project"` Author string `json:"author"` Title string `json:"title"` Info []TestpaperPartV1 `xorm:"mediumtext" json:"info"` Props TestpaperProps `xorm:"mediumtext json" json:"props"` CommentRecord []TestpaperComment `xorm:"mediumtext" json:"comment_record"` }
func GetTempTestPaperDetail ¶
func GetTempTestPaperDetail(tid string) (*TempTestpaperResponse, error)
type TestpaperComment ¶
type TestpaperPart ¶
type TestpaperPart struct { BigQuestionNumber int `json:"big_question_number"` Title string `json:"title"` Description string `json:"description"` QuestionList []QuestionItem `xorm:"mediumtext" json:"question_list"` Score int `json:"score"` }
type TestpaperPartV1 ¶
type TestpaperPartV1 struct { BigQuestionNumber int `json:"big_question_number"` Title string `json:"title"` Description string `json:"description"` QuestionList []QuestionItemV1 `xorm:"mediumtext" json:"question_list"` Score int `json:"score"` }
type TestpaperProps ¶
type TpAssignment ¶
type TpAssignment struct { Uuid string `xorm:"varchar(100) notnull pk" json:"uuid"` UserId string `json:"user_id"` ProjectId string `json:"project_id"` TestpaperId string `json:"testpaper_id"` Role string `json:"role"` Operator string `json:"operator"` CreateAt time.Time `xorm:"created" json:"create_at"` UpdatedAt time.Time `xorm:"updated" json:"updated_at"` }
type TreeItem ¶
type TreeItem struct { Key string `xorm:"varchar(100)" json:"key"` Title string `xorm:"varchar(100)" json:"title"` Content string `xorm:"mediumtext" json:"content"` TitleEn string `xorm:"varchar(100)" json:"titleEn"` ContentEn string `xorm:"mediumtext" json:"contentEn"` Children []*TreeItem `xorm:"varchar(1000)" json:"children"` }
type UpdateFileRequest ¶
type UpdateFileRequest struct { SubmitId string `json:"submit_id"` NewFileUrl []FileRecord `json:"new_file_url"` }
type WithdrawContentInSubmit ¶
Click to show internal directories.
Click to hide internal directories.