model

package
v0.0.61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

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"`
}

func (JobCard) String

func (o JobCard) String() string

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

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

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

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

type ListClassroomMemberJobsResponse

type ListClassroomMemberJobsResponse struct {
	Jobs *[]MemberJobCard `json:"jobs,omitempty"`

	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListClassroomMemberJobsResponse) 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

type ListClassroomMembersResponse

type ListClassroomMembersResponse struct {
	Members *[]ClassroomMember `json:"members,omitempty"`

	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListClassroomMembersResponse) 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

type ListMemberJobRecordsResponse

type ListMemberJobRecordsResponse struct {
	Records *[]JobRecords `json:"records,omitempty"`

	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListMemberJobRecordsResponse) 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

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

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL