model

package
v0.0.43-rc Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 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

Jump to

Keyboard shortcuts

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