Documentation ¶
Index ¶
- type ApplyJudgementRequest
- type ApplyJudgementResponse
- type ClassroomCard
- type ClassroomMember
- type ExerciseCard
- type ExerciseGroup
- type JobCard
- type JobRecords
- type JudgementCaseInfo
- type JudgementCaseResult
- type JudgementCaseResultCaseStatus
- type JudgementCaseResultCaseStatusEnum
- type JudgementResult
- type JudgementTaskRequestBody
- type JudgementTaskRequestBodyCodeType
- type JudgementTaskRequestBodyCodeTypeEnum
- type JudgementTaskRequestBodyOutputType
- type JudgementTaskRequestBodyOutputTypeEnum
- type JudgementTaskRequestBodyRuntimeType
- type JudgementTaskRequestBodyRuntimeTypeEnum
- type ListClassroomMemberJobsRequest
- type ListClassroomMemberJobsResponse
- type ListClassroomMembersRequest
- type ListClassroomMembersResponse
- type ListClassroomsRequest
- type ListClassroomsResponse
- type ListJobsRequest
- type ListJobsResponse
- type ListMemberJobRecordsRequest
- type ListMemberJobRecordsResponse
- type MemberJobCard
- type ShowClassroomDetailRequest
- type ShowClassroomDetailResponse
- type ShowJobDetailRequest
- type ShowJobDetailResponse
- type ShowJobExercisesRequest
- type ShowJobExercisesResponse
- type ShowJudgementDetailRequest
- type ShowJudgementDetailResponse
- type ShowJudgementFileRequest
- type ShowJudgementFileResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyJudgementRequest ¶ added in v0.0.54
type ApplyJudgementRequest struct {
Body *JudgementTaskRequestBody `json:"body,omitempty"`
}
Request Object
func (ApplyJudgementRequest) String ¶ added in v0.0.54
func (o ApplyJudgementRequest) String() string
type ApplyJudgementResponse ¶ added in v0.0.54
type ApplyJudgementResponse struct { JudgementId *string `json:"judgement_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ApplyJudgementResponse) String ¶ added in v0.0.54
func (o ApplyJudgementResponse) String() string
type ClassroomCard ¶
type ClassroomCard struct { ClassroomId string `json:"classroom_id"` Name string `json:"name"` Description string `json:"description"` Credit float32 `json:"credit"` Status string `json:"status"` }
func (ClassroomCard) String ¶
func (o ClassroomCard) String() string
type ClassroomMember ¶
type ClassroomMember struct { MemberId string `json:"member_id"` Name string `json:"name"` Number string `json:"number"` ClassName string `json:"class_name"` UserName string `json:"user_name"` JoinTime string `json:"join_time"` JobReceivedCount int32 `json:"job_received_count"` JobFinishedCount int32 `json:"job_finished_count"` JobFinishedRate float32 `json:"job_finished_rate"` }
func (ClassroomMember) String ¶
func (o ClassroomMember) String() string
type ExerciseCard ¶
type ExerciseCard struct { Name string `json:"name"` ExerciseId string `json:"exercise_id"` Description string `json:"description"` ResourceSubType int32 `json:"resource_sub_type"` TargetScore int32 `json:"target_score"` }
func (ExerciseCard) String ¶
func (o ExerciseCard) String() string
type ExerciseGroup ¶
type ExerciseGroup struct { Exercises []ExerciseCard `json:"exercises"` Type string `json:"type"` }
func (ExerciseGroup) String ¶
func (o ExerciseGroup) String() string
type JobCard ¶
type JobCard struct { Name string `json:"name"` JobId string `json:"job_id"` IsSend string `json:"is_send"` EndTime string `json:"end_time"` AverageScore string `json:"average_score"` SubmitJobNum int32 `json:"submit_job_num"` CreateStatus string `json:"create_status"` SendType string `json:"send_type"` IsScoreVisibility string `json:"is_score_visibility"` SendTime string `json:"send_time"` }
type JobRecords ¶
type JobRecords struct { Name string `json:"name"` AutoScore int32 `json:"auto_score"` CasePassCount int32 `json:"case_pass_count"` ExeCaseCount int32 `json:"exe_case_count"` CodeLine int32 `json:"code_line"` CommitTime string `json:"commit_time"` ComplexityFileAvg string `json:"complexity_file_avg"` AutoScoreUsingTime int32 `json:"auto_score_using_time"` }
func (JobRecords) String ¶
func (o JobRecords) String() string
type JudgementCaseInfo ¶ added in v0.0.61
type JudgementCaseInfo struct { Input string `json:"input"` Output *string `json:"output,omitempty"` }
用例数据
func (JudgementCaseInfo) String ¶ added in v0.0.61
func (o JudgementCaseInfo) String() string
type JudgementCaseResult ¶ added in v0.0.61
type JudgementCaseResult struct { Output string `json:"output"` CaseStatus JudgementCaseResultCaseStatus `json:"case_status"` }
用例运行结果信息
func (JudgementCaseResult) String ¶ added in v0.0.61
func (o JudgementCaseResult) String() string
type JudgementCaseResultCaseStatus ¶ added in v0.0.61
type JudgementCaseResultCaseStatus struct {
// contains filtered or unexported fields
}
func (JudgementCaseResultCaseStatus) MarshalJSON ¶ added in v0.0.61
func (c JudgementCaseResultCaseStatus) MarshalJSON() ([]byte, error)
func (*JudgementCaseResultCaseStatus) UnmarshalJSON ¶ added in v0.0.61
func (c *JudgementCaseResultCaseStatus) UnmarshalJSON(b []byte) error
type JudgementCaseResultCaseStatusEnum ¶ added in v0.0.61
type JudgementCaseResultCaseStatusEnum struct { PASS JudgementCaseResultCaseStatus FAILED JudgementCaseResultCaseStatus SUCCESS JudgementCaseResultCaseStatus ERROR JudgementCaseResultCaseStatus RUN_TIMEOUT JudgementCaseResultCaseStatus }
func GetJudgementCaseResultCaseStatusEnum ¶ added in v0.0.61
func GetJudgementCaseResultCaseStatusEnum() JudgementCaseResultCaseStatusEnum
type JudgementResult ¶ added in v0.0.54
type JudgementResult struct { Output string `json:"output"` FileId string `json:"file_id"` ImageId string `json:"image_id"` CaseCount int32 `json:"case_count"` ExecutedCount int32 `json:"executed_count"` Testcases []JudgementCaseResult `json:"testcases"` }
任务执行结果
func (JudgementResult) String ¶ added in v0.0.54
func (o JudgementResult) String() string
type JudgementTaskRequestBody ¶ added in v0.0.54
type JudgementTaskRequestBody struct { NotifyUrl string `json:"notify_url"` CodeType JudgementTaskRequestBodyCodeType `json:"code_type"` SourceCode string `json:"source_code"` Description *string `json:"description,omitempty"` RuntimeType JudgementTaskRequestBodyRuntimeType `json:"runtime_type"` Timeout *int32 `json:"timeout,omitempty"` OutputType JudgementTaskRequestBodyOutputType `json:"output_type"` Testcases *[]JudgementCaseInfo `json:"testcases,omitempty"` }
下发判题任务请求参数
func (JudgementTaskRequestBody) String ¶ added in v0.0.54
func (o JudgementTaskRequestBody) String() string
type JudgementTaskRequestBodyCodeType ¶ added in v0.0.54
type JudgementTaskRequestBodyCodeType struct {
// contains filtered or unexported fields
}
func (JudgementTaskRequestBodyCodeType) MarshalJSON ¶ added in v0.0.54
func (c JudgementTaskRequestBodyCodeType) MarshalJSON() ([]byte, error)
func (*JudgementTaskRequestBodyCodeType) UnmarshalJSON ¶ added in v0.0.54
func (c *JudgementTaskRequestBodyCodeType) UnmarshalJSON(b []byte) error
type JudgementTaskRequestBodyCodeTypeEnum ¶ added in v0.0.54
type JudgementTaskRequestBodyCodeTypeEnum struct {
INLINE JudgementTaskRequestBodyCodeType
}
func GetJudgementTaskRequestBodyCodeTypeEnum ¶ added in v0.0.54
func GetJudgementTaskRequestBodyCodeTypeEnum() JudgementTaskRequestBodyCodeTypeEnum
type JudgementTaskRequestBodyOutputType ¶ added in v0.0.54
type JudgementTaskRequestBodyOutputType struct {
// contains filtered or unexported fields
}
func (JudgementTaskRequestBodyOutputType) MarshalJSON ¶ added in v0.0.54
func (c JudgementTaskRequestBodyOutputType) MarshalJSON() ([]byte, error)
func (*JudgementTaskRequestBodyOutputType) UnmarshalJSON ¶ added in v0.0.54
func (c *JudgementTaskRequestBodyOutputType) UnmarshalJSON(b []byte) error
type JudgementTaskRequestBodyOutputTypeEnum ¶ added in v0.0.54
type JudgementTaskRequestBodyOutputTypeEnum struct { SYSOUT JudgementTaskRequestBodyOutputType FILEOUT JudgementTaskRequestBodyOutputType IMGOUT JudgementTaskRequestBodyOutputType CASEOUT JudgementTaskRequestBodyOutputType JUDGEOUT JudgementTaskRequestBodyOutputType }
func GetJudgementTaskRequestBodyOutputTypeEnum ¶ added in v0.0.54
func GetJudgementTaskRequestBodyOutputTypeEnum() JudgementTaskRequestBodyOutputTypeEnum
type JudgementTaskRequestBodyRuntimeType ¶ added in v0.0.54
type JudgementTaskRequestBodyRuntimeType struct {
// contains filtered or unexported fields
}
func (JudgementTaskRequestBodyRuntimeType) MarshalJSON ¶ added in v0.0.54
func (c JudgementTaskRequestBodyRuntimeType) MarshalJSON() ([]byte, error)
func (*JudgementTaskRequestBodyRuntimeType) UnmarshalJSON ¶ added in v0.0.54
func (c *JudgementTaskRequestBodyRuntimeType) UnmarshalJSON(b []byte) error
type JudgementTaskRequestBodyRuntimeTypeEnum ¶ added in v0.0.54
type JudgementTaskRequestBodyRuntimeTypeEnum struct { JAVA JudgementTaskRequestBodyRuntimeType C JudgementTaskRequestBodyRuntimeType CPP JudgementTaskRequestBodyRuntimeType PYTHON JudgementTaskRequestBodyRuntimeType }
func GetJudgementTaskRequestBodyRuntimeTypeEnum ¶ added in v0.0.54
func GetJudgementTaskRequestBodyRuntimeTypeEnum() JudgementTaskRequestBodyRuntimeTypeEnum
type ListClassroomMemberJobsRequest ¶
type ListClassroomMemberJobsRequest struct { ClassroomId string `json:"classroom_id"` MemberId string `json:"member_id"` Offset *int32 `json:"offset,omitempty"` Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListClassroomMemberJobsRequest) String ¶
func (o ListClassroomMemberJobsRequest) String() string
type ListClassroomMemberJobsResponse ¶
type ListClassroomMemberJobsResponse struct { Jobs *[]MemberJobCard `json:"jobs,omitempty"` Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListClassroomMemberJobsResponse) String ¶
func (o ListClassroomMemberJobsResponse) String() string
type ListClassroomMembersRequest ¶
type ListClassroomMembersRequest struct { ClassroomId string `json:"classroom_id"` Offset *int32 `json:"offset,omitempty"` Limit *int32 `json:"limit,omitempty"` Filter *string `json:"filter,omitempty"` }
Request Object
func (ListClassroomMembersRequest) String ¶
func (o ListClassroomMembersRequest) String() string
type ListClassroomMembersResponse ¶
type ListClassroomMembersResponse struct { Members *[]ClassroomMember `json:"members,omitempty"` Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListClassroomMembersResponse) String ¶
func (o ListClassroomMembersResponse) String() string
type ListClassroomsRequest ¶
type ListClassroomsRequest struct { Offset *int32 `json:"offset,omitempty"` Limit *int32 `json:"limit,omitempty"` QueryType *string `json:"query_type,omitempty"` }
Request Object
func (ListClassroomsRequest) String ¶
func (o ListClassroomsRequest) String() string
type ListClassroomsResponse ¶
type ListClassroomsResponse struct { Classrooms *[]ClassroomCard `json:"classrooms,omitempty"` Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListClassroomsResponse) String ¶
func (o ListClassroomsResponse) String() string
type ListJobsRequest ¶
type ListJobsRequest struct { SourceFrom string `json:"source_from"` SourceId string `json:"source_id"` Offset *int32 `json:"offset,omitempty"` Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListJobsRequest) String ¶
func (o ListJobsRequest) String() string
type ListJobsResponse ¶
type ListJobsResponse struct { Jobs *[]JobCard `json:"jobs,omitempty"` Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListJobsResponse) String ¶
func (o ListJobsResponse) String() string
type ListMemberJobRecordsRequest ¶
type ListMemberJobRecordsRequest struct { JobId string `json:"job_id"` ExerciseId string `json:"exercise_id"` MemberId string `json:"member_id"` Offset *int32 `json:"offset,omitempty"` Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListMemberJobRecordsRequest) String ¶
func (o ListMemberJobRecordsRequest) String() string
type ListMemberJobRecordsResponse ¶
type ListMemberJobRecordsResponse struct { Records *[]JobRecords `json:"records,omitempty"` Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListMemberJobRecordsResponse) String ¶
func (o ListMemberJobRecordsResponse) String() string
type MemberJobCard ¶
type MemberJobCard struct { Name string `json:"name"` AverageScore string `json:"average_score"` Score int32 `json:"score"` SendTime string `json:"send_time"` LastSubmitTime string `json:"last_submit_time"` }
func (MemberJobCard) String ¶
func (o MemberJobCard) String() string
type ShowClassroomDetailRequest ¶
type ShowClassroomDetailRequest struct {
ClassroomId string `json:"classroom_id"`
}
Request Object
func (ShowClassroomDetailRequest) String ¶
func (o ShowClassroomDetailRequest) String() string
type ShowClassroomDetailResponse ¶
type ShowClassroomDetailResponse struct { Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Announcement *string `json:"announcement,omitempty"` AnnouncementTime *string `json:"announcement_time,omitempty"` CreateTime *string `json:"create_time,omitempty"` UpdateTime *string `json:"update_time,omitempty"` Teacher *string `json:"teacher,omitempty"` Credit float32 `json:"credit,omitempty"` StartTime *string `json:"start_time,omitempty"` EndTime *string `json:"end_time,omitempty"` Role *string `json:"role,omitempty"` School *string `json:"school,omitempty"` ContentCount *int32 `json:"content_count,omitempty"` CoursewareCount *int32 `json:"courseware_count,omitempty"` JobCount *int32 `json:"job_count,omitempty"` MemberCount *int32 `json:"member_count,omitempty"` Status *string `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowClassroomDetailResponse) String ¶
func (o ShowClassroomDetailResponse) String() string
type ShowJobDetailRequest ¶
type ShowJobDetailRequest struct {
JobId string `json:"job_id"`
}
Request Object
func (ShowJobDetailRequest) String ¶
func (o ShowJobDetailRequest) String() string
type ShowJobDetailResponse ¶
type ShowJobDetailResponse struct { AcceptJobNum *int32 `json:"accept_job_num,omitempty"` EndTime *string `json:"end_time,omitempty"` IsAnswerVisibility *string `json:"is_answer_visibility,omitempty"` IsScoreVisibility *string `json:"is_score_visibility,omitempty"` AverageScore *string `json:"average_score,omitempty"` ScoreJobNum *int32 `json:"score_job_num,omitempty"` SubmitJobNum *int32 `json:"submit_job_num,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowJobDetailResponse) String ¶
func (o ShowJobDetailResponse) String() string
type ShowJobExercisesRequest ¶
type ShowJobExercisesRequest struct { JobId string `json:"job_id"` SourceFrom string `json:"source_from"` SourceId string `json:"source_id"` Offset *int32 `json:"offset,omitempty"` Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ShowJobExercisesRequest) String ¶
func (o ShowJobExercisesRequest) String() string
type ShowJobExercisesResponse ¶
type ShowJobExercisesResponse struct { GroupExercises *[]ExerciseGroup `json:"group_exercises,omitempty"` Total *int32 `json:"total,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowJobExercisesResponse) String ¶
func (o ShowJobExercisesResponse) String() string
type ShowJudgementDetailRequest ¶ added in v0.0.54
type ShowJudgementDetailRequest struct {
JudgementId string `json:"judgement_id"`
}
Request Object
func (ShowJudgementDetailRequest) String ¶ added in v0.0.54
func (o ShowJudgementDetailRequest) String() string
type ShowJudgementDetailResponse ¶ added in v0.0.54
type ShowJudgementDetailResponse struct { TaskStatus *string `json:"task_status,omitempty"` Status *string `json:"status,omitempty"` JudgementId *string `json:"judgement_id,omitempty"` StartTime *string `json:"start_time,omitempty"` EndTime *string `json:"end_time,omitempty"` Result *JudgementResult `json:"result,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowJudgementDetailResponse) String ¶ added in v0.0.54
func (o ShowJudgementDetailResponse) String() string
type ShowJudgementFileRequest ¶ added in v0.0.54
type ShowJudgementFileRequest struct {
FileId string `json:"file_id"`
}
Request Object
func (ShowJudgementFileRequest) String ¶ added in v0.0.54
func (o ShowJudgementFileRequest) String() string
type ShowJudgementFileResponse ¶ added in v0.0.54
type ShowJudgementFileResponse struct { HttpStatusCode int `json:"-"` Body io.ReadCloser `json:"-" type:"stream"` }
Response Object
func (ShowJudgementFileResponse) Consume ¶ added in v0.0.54
func (o ShowJudgementFileResponse) Consume(writer io.Writer) (int64, error)
func (ShowJudgementFileResponse) String ¶ added in v0.0.54
func (o ShowJudgementFileResponse) String() string
Source Files ¶
- model_apply_judgement_request.go
- model_apply_judgement_response.go
- model_classroom_card.go
- model_classroom_member.go
- model_exercise_card.go
- model_exercise_group.go
- model_job_card.go
- model_job_records.go
- model_judgement_case_info.go
- model_judgement_case_result.go
- model_judgement_result.go
- model_judgement_task_request_body.go
- model_list_classroom_member_jobs_request.go
- model_list_classroom_member_jobs_response.go
- model_list_classroom_members_request.go
- model_list_classroom_members_response.go
- model_list_classrooms_request.go
- model_list_classrooms_response.go
- model_list_jobs_request.go
- model_list_jobs_response.go
- model_list_member_job_records_request.go
- model_list_member_job_records_response.go
- model_member_job_card.go
- model_show_classroom_detail_request.go
- model_show_classroom_detail_response.go
- model_show_job_detail_request.go
- model_show_job_detail_response.go
- model_show_job_exercises_request.go
- model_show_job_exercises_response.go
- model_show_judgement_detail_request.go
- model_show_judgement_detail_response.go
- model_show_judgement_file_request.go
- model_show_judgement_file_response.go
Click to show internal directories.
Click to hide internal directories.