model

package
v0.1.108 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 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"`
}

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

	// 判题任务ID
	JudgementId    *string `json:"judgement_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ApplyJudgementResponse Response Object

func (ApplyJudgementResponse) String added in v0.0.54

func (o ApplyJudgementResponse) String() string

type ClassroomCard

type ClassroomCard struct {

	// 课堂ID
	ClassroomId string `json:"classroom_id"`

	// 课堂名称
	Name string `json:"name"`

	// 课堂描述
	Description string `json:"description"`

	// 课堂学分
	Credit float32 `json:"credit"`

	// 课堂当前的状态,normal:课堂处于正常状态,archive:课堂已归档
	Status string `json:"status"`
}

func (ClassroomCard) String

func (o ClassroomCard) String() string

type ClassroomMember

type ClassroomMember struct {

	// 成员ID
	MemberId string `json:"member_id"`

	// 成员名称
	Name string `json:"name"`

	// 成员学号/工号
	Number string `json:"number"`

	// 成员所在班级的名字
	ClassName string `json:"class_name"`

	// 成员用户名
	UserName string `json:"user_name"`

	// 成员加入课堂时间,日期格式:yyyy-MM-dd HH:mm:ss
	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 DifficultInfo added in v0.1.45

type DifficultInfo struct {

	// 难度id
	Id string `json:"id"`

	// 难度名称
	Name string `json:"name"`

	// 难度等级
	Degree int32 `json:"degree"`
}

DifficultInfo 习题难度信息

func (DifficultInfo) String added in v0.1.45

func (o DifficultInfo) String() string

type ExecuteExerciseRequest added in v0.1.45

type ExecuteExerciseRequest struct {

	// 具体调用者的用户token
	UserToken *string `json:"user-token,omitempty"`

	// 需判题的习题id
	ExerciseId string `json:"exercise_id"`

	Body *PackageExerciseJudgeRequestBody `json:"body,omitempty"`
}

ExecuteExerciseRequest Request Object

func (ExecuteExerciseRequest) String added in v0.1.45

func (o ExecuteExerciseRequest) String() string

type ExecuteExerciseResponse added in v0.1.45

type ExecuteExerciseResponse struct {

	// 判题任务ID
	JudgementId    *string `json:"judgement_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ExecuteExerciseResponse Response Object

func (ExecuteExerciseResponse) String added in v0.1.45

func (o ExecuteExerciseResponse) String() string

type ExerciseCard

type ExerciseCard struct {

	// 习题名称
	Name string `json:"name"`

	// 习题ID
	ExerciseId string `json:"exercise_id"`

	// 习题描述
	Description string `json:"description"`

	// 习题子类型 1:函数c 2:函数c++ 3:函数Java 4:函数Python 5:单人项目java 6:单人项目Hadoop 7:通用 8:企业级软件项目 10:web习题 11:AI习题 12:单选题 13:多选题 14:填空题 15:单人项目C 16:单人项目C++
	ResourceSubType int32 `json:"resource_sub_type"`

	// 习题分值
	TargetScore int32 `json:"target_score"`
}

func (ExerciseCard) String

func (o ExerciseCard) String() string

type ExerciseCaseResource added in v0.1.45

type ExerciseCaseResource struct {

	// 测试用例存储id
	Id *string `json:"id,omitempty"`

	// 资源聚合id
	PolymericResourceId *string `json:"polymeric_resource_id,omitempty"`

	// 用例输入
	InputFile *string `json:"input_file,omitempty"`

	// 用例输出
	OutputFile *string `json:"output_file,omitempty"`

	// 用例顺序位置
	Index *int32 `json:"index,omitempty"`

	// 用例类型
	InputType *string `json:"input_type,omitempty"`
}

ExerciseCaseResource 测试用例信息

func (ExerciseCaseResource) String added in v0.1.45

func (o ExerciseCaseResource) String() string

type ExerciseCodeResource added in v0.1.45

type ExerciseCodeResource struct {

	// 习题内容存储id
	Id *string `json:"id,omitempty"`

	// 资源聚合id
	PolymericResourceId *string `json:"polymeric_resource_id,omitempty"`

	// 习题内容
	Content *string `json:"content,omitempty"`

	// 参考答案
	CodeAnswer *string `json:"code_answer,omitempty"`
}

ExerciseCodeResource 习题详细内容

func (ExerciseCodeResource) String added in v0.1.45

func (o ExerciseCodeResource) String() string

type ExerciseDetailData added in v0.1.45

type ExerciseDetailData struct {
	ExerciseCodeResource *ExerciseCodeResource `json:"exercise_code_resource,omitempty"`

	// 测试用例信息
	ExerciseCaseResource *[]ExerciseCaseResource `json:"exercise_case_resource,omitempty"`
}

ExerciseDetailData 习题详细内容及测试用例信息

func (ExerciseDetailData) String added in v0.1.45

func (o ExerciseDetailData) String() string

type ExerciseFilter added in v0.1.45

type ExerciseFilter struct {

	// 需查询的习题名称
	Name *string `json:"name,omitempty"`

	// 习题类型列表
	ExerciseType *[]int32 `json:"exercise_type,omitempty"`

	// 难度id列表
	DifficultIds *[]string `json:"difficult_ids,omitempty"`

	// 知识点id列表
	KnowledgePointIds *[]string `json:"knowledge_point_ids,omitempty"`
}

ExerciseFilter 获取习题库里习题过滤字段

func (ExerciseFilter) String added in v0.1.45

func (o ExerciseFilter) String() string

type ExerciseGroup

type ExerciseGroup struct {

	// 习题列表
	Exercises []ExerciseCard `json:"exercises"`

	// 习题分类
	Type string `json:"type"`
}

func (ExerciseGroup) String

func (o ExerciseGroup) String() string

type ExercisesListRequestBody added in v0.1.45

type ExercisesListRequestBody struct {
	Filter *ExerciseFilter `json:"filter,omitempty"`

	// 每页数量
	PageSize *int32 `json:"page_size,omitempty"`

	// 起始页
	StartIndex *int32 `json:"start_index,omitempty"`
}

ExercisesListRequestBody 获取习题库里习题调用参数

func (ExercisesListRequestBody) String added in v0.1.45

func (o ExercisesListRequestBody) String() string

type JobCard

type JobCard struct {

	// 作业名称
	Name string `json:"name"`

	// 作业ID
	JobId string `json:"job_id"`

	// 作业下发状态(unsend:作业未下发, send:作业已下发)
	IsSend string `json:"is_send"`

	// 作业截止时间, 日期格式:yyyy-MM-dd HH:mm:ss
	EndTime string `json:"end_time"`

	// 作业均分
	AverageScore string `json:"average_score"`

	// 作业提交人数
	SubmitJobNum int32 `json:"submit_job_num"`

	// 作业创建状态(yes:作业可以下发, no:作业不能下发)
	CreateStatus string `json:"create_status"`

	// 作业下发类型(specific:指定成员下发, all:下发课堂全员)
	SendType string `json:"send_type"`

	// 作业成绩是否公布(unpublish:表示未公布成绩, publish:表示已公布成绩)
	IsScoreVisibility string `json:"is_score_visibility"`

	// 作业下发时间, 日期格式:yyyy-MM-dd HH:mm:ss
	SendTime string `json:"send_time"`
}

func (JobCard) String

func (o JobCard) String() string

type JobRecords

type JobRecords struct {

	// 第XX次提交
	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"`

	// 习题提交时间, 日期格式:yyyy-MM-dd HH:mm:ss
	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"`
}

JudgementCaseInfo 用例数据

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

	// 用例运行结果状态: judgeout判题类型对应:pass(用例比对成功)、failed(用例比对失败); caseout判题类型对应:success(用例运行成功)、error(用例运行失败);run_timeout(用例运行超时)
	CaseStatus JudgementCaseResultCaseStatus `json:"case_status"`
}

JudgementCaseResult 用例运行结果信息

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

func (JudgementCaseResultCaseStatus) Value added in v0.0.90

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

	// 文件形式输出的文件id,可根据文件id下载详情
	FileId string `json:"file_id"`

	// 图片形式输出的图片id,可根据图片id下载详情
	ImageId string `json:"image_id"`

	// 用例形式输出的用例总个数
	CaseCount int32 `json:"case_count"`

	// 用例形式输出的已执行用例的个数
	ExecutedCount int32 `json:"executed_count"`

	// 用例形式输出的已执行用例的结果
	Testcases []JudgementCaseResult `json:"testcases"`
}

JudgementResult 任务执行结果

func (JudgementResult) String added in v0.0.54

func (o JudgementResult) String() string

type JudgementTaskRequestBody added in v0.0.54

type JudgementTaskRequestBody struct {

	// 第三方指定的判题结果回调url,取值来源于伙伴通道“判题管理配置”-“接口管理”中设置的回调地址相同
	NotifyUrl string `json:"notify_url"`

	// 代码来源:inline(源代码)
	CodeType JudgementTaskRequestBodyCodeType `json:"code_type"`

	// 源代码,需Base64编码
	SourceCode string `json:"source_code"`

	// 任务描述
	Description *string `json:"description,omitempty"`

	// 支持语言类型:java、c、cpp、python、javaScript
	RuntimeType JudgementTaskRequestBodyRuntimeType `json:"runtime_type"`

	// 代码运行超时时间,单位为秒
	Timeout *int32 `json:"timeout,omitempty"`

	// 结果返回类型:sysout(标准输出)、fileout(以文件形式输出)、imgout(以图片形式输出)、caseout(用例运行返回)、judgeout(用例对比返回)
	OutputType JudgementTaskRequestBodyOutputType `json:"output_type"`

	// 当判题结果类型是caseout和judgeout类型才需要传的字段,表示用例数据
	Testcases *[]JudgementCaseInfo `json:"testcases,omitempty"`
}

JudgementTaskRequestBody 下发判题任务请求参数

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

func (JudgementTaskRequestBodyCodeType) Value added in v0.0.90

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

func (JudgementTaskRequestBodyOutputType) Value added in v0.0.90

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

func (JudgementTaskRequestBodyRuntimeType) Value added in v0.0.90

type KnowledgePointInfo added in v0.1.45

type KnowledgePointInfo struct {

	// 知识点id
	Id string `json:"id"`

	// 知识点名称
	Name string `json:"name"`

	// 知识点顺序编号
	Sequence int32 `json:"sequence"`
}

KnowledgePointInfo 习题知识点信息

func (KnowledgePointInfo) String added in v0.1.45

func (o KnowledgePointInfo) String() string

type KnowledgePointsListRequestBody added in v0.1.45

type KnowledgePointsListRequestBody struct {

	// 名称模糊查询
	Name *string `json:"name,omitempty"`

	// 每页数量
	PageSize *int32 `json:"page_size,omitempty"`

	// 起始页
	StartIndex *int32 `json:"start_index,omitempty"`
}

KnowledgePointsListRequestBody 知识点列表请求参数

func (KnowledgePointsListRequestBody) String added in v0.1.45

type ListAllDifficultsRequest added in v0.1.45

type ListAllDifficultsRequest struct {
}

ListAllDifficultsRequest Request Object

func (ListAllDifficultsRequest) String added in v0.1.45

func (o ListAllDifficultsRequest) String() string

type ListAllDifficultsResponse added in v0.1.45

type ListAllDifficultsResponse struct {

	// 所有难度数量
	TotalCount *int32 `json:"total_count,omitempty"`

	// 难度信息
	Data           *[]DifficultInfo `json:"data,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ListAllDifficultsResponse Response Object

func (ListAllDifficultsResponse) String added in v0.1.45

func (o ListAllDifficultsResponse) String() string

type ListClassroomMemberJobsRequest

type ListClassroomMemberJobsRequest struct {

	// 课堂ID
	ClassroomId string `json:"classroom_id"`

	// 用户ID
	MemberId string `json:"member_id"`

	// 信息记录的起始编号
	Offset *int32 `json:"offset,omitempty"`

	// 每页包含的信息记录数
	Limit *int32 `json:"limit,omitempty"`
}

ListClassroomMemberJobsRequest Request Object

func (ListClassroomMemberJobsRequest) String

type ListClassroomMemberJobsResponse

type ListClassroomMemberJobsResponse struct {

	// 课堂下作业列表信息
	Jobs *[]MemberJobCard `json:"jobs,omitempty"`

	// 学生作业总数
	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListClassroomMemberJobsResponse Response Object

func (ListClassroomMemberJobsResponse) String

type ListClassroomMembersRequest

type ListClassroomMembersRequest struct {

	// 课堂ID
	ClassroomId string `json:"classroom_id"`

	// 信息记录的起始编号
	Offset *int32 `json:"offset,omitempty"`

	// 每页包含的信息记录数
	Limit *int32 `json:"limit,omitempty"`

	// 按照条件搜索学生,搜索字段会同时匹配姓名,学号,用户名,班级
	Filter *string `json:"filter,omitempty"`
}

ListClassroomMembersRequest Request Object

func (ListClassroomMembersRequest) String

type ListClassroomMembersResponse

type ListClassroomMembersResponse struct {

	// 课堂成员列表
	Members *[]ClassroomMember `json:"members,omitempty"`

	// 课堂成员总数
	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListClassroomMembersResponse Response Object

func (ListClassroomMembersResponse) String

type ListClassroomsRequest

type ListClassroomsRequest struct {

	// 信息记录的起始编号
	Offset *int32 `json:"offset,omitempty"`

	// 每页包含的信息记录数
	Limit *int32 `json:"limit,omitempty"`

	// 查询的课堂类别,默认查询所有的课堂。 取值范围: create:只查询当前用户创建的课堂。 attend:只查询当前用户加入的课堂。 all:查询当前用户所有的课堂。
	QueryType *string `json:"query_type,omitempty"`
}

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

ListClassroomsResponse Response Object

func (ListClassroomsResponse) String

func (o ListClassroomsResponse) String() string

type ListExercisesRequest added in v0.1.45

type ListExercisesRequest struct {

	// 习题库id
	PackageId string `json:"package_id"`

	Body *ExercisesListRequestBody `json:"body,omitempty"`
}

ListExercisesRequest Request Object

func (ListExercisesRequest) String added in v0.1.45

func (o ListExercisesRequest) String() string

type ListExercisesResponse added in v0.1.45

type ListExercisesResponse struct {

	// 习题库数量
	Total *int32 `json:"total,omitempty"`

	// 习题库列表
	Data           *[]PackageExerciseCard `json:"data,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ListExercisesResponse Response Object

func (ListExercisesResponse) String added in v0.1.45

func (o ListExercisesResponse) String() string

type ListJobsRequest

type ListJobsRequest struct {

	// 作业来源于课堂或课程。 取值范围: classroom:课堂作业 course:课程作业
	SourceFrom string `json:"source_from"`

	// 课堂ID或者课程ID。
	SourceId string `json:"source_id"`

	// 信息记录的起始编号
	Offset *int32 `json:"offset,omitempty"`

	// 每页包含的信息记录数
	Limit *int32 `json:"limit,omitempty"`
}

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

ListJobsResponse Response Object

func (ListJobsResponse) String

func (o ListJobsResponse) String() string

type ListMemberJobRecordsRequest

type ListMemberJobRecordsRequest struct {

	// 作业ID
	JobId string `json:"job_id"`

	// 习题ID
	ExerciseId string `json:"exercise_id"`

	// 用户ID
	MemberId string `json:"member_id"`

	// 信息记录的起始编号
	Offset *int32 `json:"offset,omitempty"`

	// 每页包含的信息记录数
	Limit *int32 `json:"limit,omitempty"`
}

ListMemberJobRecordsRequest Request Object

func (ListMemberJobRecordsRequest) String

type ListMemberJobRecordsResponse

type ListMemberJobRecordsResponse struct {

	// 习题提交列表信息
	Records *[]JobRecords `json:"records,omitempty"`

	// 习题提交总次数
	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListMemberJobRecordsResponse Response Object

func (ListMemberJobRecordsResponse) String

type ListMyKnowledgePointsRequest added in v0.1.45

type ListMyKnowledgePointsRequest struct {
	Body *KnowledgePointsListRequestBody `json:"body,omitempty"`
}

ListMyKnowledgePointsRequest Request Object

func (ListMyKnowledgePointsRequest) String added in v0.1.45

type ListMyKnowledgePointsResponse added in v0.1.45

type ListMyKnowledgePointsResponse struct {

	// 知识点数量
	TotalCount *int32 `json:"total_count,omitempty"`

	// 知识点信息
	Data           *[]KnowledgePointInfo `json:"data,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

ListMyKnowledgePointsResponse Response Object

func (ListMyKnowledgePointsResponse) String added in v0.1.45

type ListPackagesRequest added in v0.1.45

type ListPackagesRequest struct {
	Body *PackagesListRequestBody `json:"body,omitempty"`
}

ListPackagesRequest Request Object

func (ListPackagesRequest) String added in v0.1.45

func (o ListPackagesRequest) String() string

type ListPackagesResponse added in v0.1.45

type ListPackagesResponse struct {

	// 习题库数量
	Total *int32 `json:"total,omitempty"`

	// 习题库列表
	Data           *[]PackageCard `json:"data,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ListPackagesResponse Response Object

func (ListPackagesResponse) String added in v0.1.45

func (o ListPackagesResponse) String() string

type MemberJobCard

type MemberJobCard struct {

	// 作业名称
	Name string `json:"name"`

	// 作业均分(作业有均分该字段才返回)
	AverageScore string `json:"average_score"`

	// 作业得分(作业有分数该字段才返回)
	Score int32 `json:"score"`

	// 作业下发时间, 日期格式:yyyy-MM-dd HH:mm:ss
	SendTime string `json:"send_time"`

	// 作业最后一次提交时间, 日期格式:yyyy-MM-dd HH:mm:ss
	LastSubmitTime string `json:"last_submit_time"`
}

func (MemberJobCard) String

func (o MemberJobCard) String() string

type PackageCard added in v0.1.45

type PackageCard struct {

	// 习题库id
	Id *string `json:"id,omitempty"`

	// 习题库名称
	Name *string `json:"name,omitempty"`

	// 标签名称
	TagName *string `json:"tag_name,omitempty"`

	// 学习名称
	School *string `json:"school,omitempty"`

	// 教师名称
	TeacherName *string `json:"teacher_name,omitempty"`

	// 租户习题库编号
	OrderCount *int32 `json:"order_count,omitempty"`

	// 背景图url
	ImageUrl *string `json:"image_url,omitempty"`
}

PackageCard 习题库简单信息返回体,用于列表返回

func (PackageCard) String added in v0.1.45

func (o PackageCard) String() string

type PackageExerciseCard added in v0.1.45

type PackageExerciseCard struct {

	// 习题id
	Id *string `json:"id,omitempty"`

	// 习题名称
	Name *string `json:"name,omitempty"`

	Difficult *DifficultInfo `json:"difficult,omitempty"`

	// 习题类型编号
	ExerciseType *int32 `json:"exercise_type,omitempty"`

	// 习题类型名称
	ExerciseTypeName *string `json:"exercise_type_name,omitempty"`

	// 习题库里习题编号
	OrderCount *int32 `json:"order_count,omitempty"`

	// 相关知识点
	KnowledgePoint *[]KnowledgePointInfo `json:"knowledge_point,omitempty"`
}

PackageExerciseCard 习题简单信息返回体,用于列表返回

func (PackageExerciseCard) String added in v0.1.45

func (o PackageExerciseCard) String() string

type PackageExerciseJudgeRequestBody added in v0.1.45

type PackageExerciseJudgeRequestBody struct {

	// 判题结束后的回调url
	NotifyUrl string `json:"notify_url"`

	// 代码超时时间
	Timeout *int32 `json:"timeout,omitempty"`

	// 结果返回类型
	OutputType string `json:"output_type"`

	// 习题作答(需Base64编码)
	CodeAnswer string `json:"code_answer"`
}

PackageExerciseJudgeRequestBody 习题库里习题判题调用参数

func (PackageExerciseJudgeRequestBody) String added in v0.1.45

type PackageFilter added in v0.1.45

type PackageFilter struct {

	// 需查询的习题库名称
	Name *string `json:"name,omitempty"`

	// 标签名称列表
	TagNames *[]string `json:"tag_names,omitempty"`
}

PackageFilter 获取租户的习题库过滤字段

func (PackageFilter) String added in v0.1.45

func (o PackageFilter) String() string

type PackagesListRequestBody added in v0.1.45

type PackagesListRequestBody struct {
	Filter *PackageFilter `json:"filter,omitempty"`

	// 每页数量
	PageSize *int32 `json:"page_size,omitempty"`

	// 起始页
	StartIndex *int32 `json:"start_index,omitempty"`
}

PackagesListRequestBody 获取租户的习题库调用参数

func (PackagesListRequestBody) String added in v0.1.45

func (o PackagesListRequestBody) String() string

type ShowClassroomDetailRequest

type ShowClassroomDetailRequest struct {

	// 课堂ID
	ClassroomId string `json:"classroom_id"`
}

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

	// 课堂公告创建时间,日期格式:yyyy-MM-dd
	AnnouncementTime *string `json:"announcement_time,omitempty"`

	// 课堂创建时间,日期格式:yyyy-MM-dd HH:mm:ss
	CreateTime *string `json:"create_time,omitempty"`

	// 课堂最新更新时间,日期格式:yyyy-MM-dd HH:mm:ss
	UpdateTime *string `json:"update_time,omitempty"`

	// 当前课堂的授课人
	Teacher *string `json:"teacher,omitempty"`

	// 课堂学分
	Credit float32 `json:"credit,omitempty"`

	// 课堂开始时间,日期格式:yyyy-MM-dd HH:mm:ss
	StartTime *string `json:"start_time,omitempty"`

	// 课堂结束时间,日期格式:yyyy-MM-dd HH:mm:ss
	EndTime *string `json:"end_time,omitempty"`

	// 当前用户在课堂下角色,取值范围:teacher:老师,student:学生
	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"`

	// 课堂当前的状态,normal:课堂处于正常状态,archive:课堂已归档
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowClassroomDetailResponse Response Object

func (ShowClassroomDetailResponse) String

type ShowExerciseDetailRequest added in v0.1.45

type ShowExerciseDetailRequest struct {

	// 需查询的习题id
	ExerciseId string `json:"exercise_id"`
}

ShowExerciseDetailRequest Request Object

func (ShowExerciseDetailRequest) String added in v0.1.45

func (o ShowExerciseDetailRequest) String() string

type ShowExerciseDetailResponse added in v0.1.45

type ShowExerciseDetailResponse struct {

	// 习题id
	Id *string `json:"id,omitempty"`

	// 习题名称
	Name *string `json:"name,omitempty"`

	// 习题描述
	Description *string `json:"description,omitempty"`

	Difficult *DifficultInfo `json:"difficult,omitempty"`

	// 习题类型编号
	ExerciseType *int32 `json:"exercise_type,omitempty"`

	// 习题类型名称
	ExerciseTypeName *string `json:"exercise_type_name,omitempty"`

	// 习题库里习题编号
	OrderCount *int32 `json:"order_count,omitempty"`

	// 测试用例描述
	TestCaseDescription *string `json:"test_case_description,omitempty"`

	// 相关知识点
	KnowledgePoint *[]KnowledgePointInfo `json:"knowledge_point,omitempty"`

	// 判题类型
	JudgeType *int32 `json:"judge_type,omitempty"`

	ExerciseData   *ExerciseDetailData `json:"exercise_data,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

ShowExerciseDetailResponse Response Object

func (ShowExerciseDetailResponse) String added in v0.1.45

type ShowJobDetailRequest

type ShowJobDetailRequest struct {

	// 作业ID
	JobId string `json:"job_id"`
}

ShowJobDetailRequest Request Object

func (ShowJobDetailRequest) String

func (o ShowJobDetailRequest) String() string

type ShowJobDetailResponse

type ShowJobDetailResponse struct {

	// 作业下发人数
	AcceptJobNum *int32 `json:"accept_job_num,omitempty"`

	// 作业截止时间, 日期格式:yyyy-MM-dd HH:mm:ss
	EndTime *string `json:"end_time,omitempty"`

	// 作业答案是否公布(unpublish:表示未公布答案, publish:表示已公布答案)
	IsAnswerVisibility *string `json:"is_answer_visibility,omitempty"`

	// 作业成绩是否公布(unpublish:表示未公布成绩, publish:表示已公布成绩)
	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:"-"`
}

ShowJobDetailResponse Response Object

func (ShowJobDetailResponse) String

func (o ShowJobDetailResponse) String() string

type ShowJobExercisesRequest

type ShowJobExercisesRequest struct {

	// 作业ID。
	JobId string `json:"job_id"`

	// 作业来源于课堂或课程。 取值范围: classroom:课堂作业 course:课程作业
	SourceFrom string `json:"source_from"`

	// 课堂ID或者课程ID。
	SourceId string `json:"source_id"`

	// 信息记录的起始编号
	Offset *int32 `json:"offset,omitempty"`

	// 每页包含的信息记录数
	Limit *int32 `json:"limit,omitempty"`
}

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

ShowJobExercisesResponse Response Object

func (ShowJobExercisesResponse) String

func (o ShowJobExercisesResponse) String() string

type ShowJudgementDetailRequest added in v0.0.54

type ShowJudgementDetailRequest struct {

	// 判题任务ID
	JudgementId string `json:"judgement_id"`
}

ShowJudgementDetailRequest Request Object

func (ShowJudgementDetailRequest) String added in v0.0.54

type ShowJudgementDetailResponse added in v0.0.54

type ShowJudgementDetailResponse struct {

	// 任务回调状态:callback_success(回调成功)、callback_error(回调出错)
	TaskStatus *string `json:"task_status,omitempty"`

	// 任务运行状态:success(成功)、compile_error(编译错误)、internal_error(系统内部错误)、run_timeout(运行超时)、judging(代码运行中)、runtime_error(运行出错)、output_match_error(不符合输出规范)
	Status *string `json:"status,omitempty"`

	// 判题任务ID
	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:"-"`
}

ShowJudgementDetailResponse Response Object

func (ShowJudgementDetailResponse) String added in v0.0.54

type ShowJudgementFileRequest added in v0.0.54

type ShowJudgementFileRequest struct {

	// 文件id,可以从接口[ShowJudgementDetail](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=Classroom&api=ShowJudgementDetail)的响应中获取
	FileId string `json:"file_id"`
}

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

ShowJudgementFileResponse 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

type ShowPackageDetailRequest added in v0.1.45

type ShowPackageDetailRequest struct {

	// 需查询的习题库id
	PackageId string `json:"package_id"`
}

ShowPackageDetailRequest Request Object

func (ShowPackageDetailRequest) String added in v0.1.45

func (o ShowPackageDetailRequest) String() string

type ShowPackageDetailResponse added in v0.1.45

type ShowPackageDetailResponse struct {

	// 习题库id
	Id *string `json:"id,omitempty"`

	// 习题库名称
	Name *string `json:"name,omitempty"`

	// 标签名称
	TagName *string `json:"tag_name,omitempty"`

	// 学习名称
	School *string `json:"school,omitempty"`

	// 教师名称
	TeacherName *string `json:"teacher_name,omitempty"`

	// 租户习题库编号
	OrderCount *int32 `json:"order_count,omitempty"`

	// 背景图url
	ImageUrl *string `json:"image_url,omitempty"`

	// 习题库描述
	Description *string `json:"description,omitempty"`

	// 习题库里的习题数量
	ExerciseCnt    *int32 `json:"exercise_cnt,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowPackageDetailResponse Response Object

func (ShowPackageDetailResponse) String added in v0.1.45

func (o ShowPackageDetailResponse) String() string

Source Files

Jump to

Keyboard shortcuts

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