model

package
v0.1.105 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCompetitionScoreRequest

type CreateCompetitionScoreRequest struct {
	Body *CreateScoresRequestModel `json:"body,omitempty"`
}

CreateCompetitionScoreRequest Request Object

func (CreateCompetitionScoreRequest) String

type CreateCompetitionScoreResponse

type CreateCompetitionScoreResponse struct {

	// 作品ID
	WorksId        *string `json:"works_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateCompetitionScoreResponse Response Object

func (CreateCompetitionScoreResponse) String

type CreateScoresRequestModel

type CreateScoresRequestModel struct {

	// 大赛ID,大赛平台提供
	CompetitionId string `json:"competition_id"`

	// 大赛阶段ID,大赛平台提供
	StageId string `json:"stage_id"`

	// 第三方服务作品ID
	WorksId int32 `json:"works_id"`

	// 作品名称,名称最大字符数为75,并且不能有含有特殊符号
	Name string `json:"name"`

	// 作品类型,例如docx、png、zip等
	WorksKind *string `json:"works_kind,omitempty"`

	// 作品分数,作品状态为failed时传-1,计算长度时包括小数点,小数点后面最多保留四位
	Score float64 `json:"score"`

	// 作品状态success|failed。判题时,需要对上传作品进行检查,当作品不符合要求时,应该返回failed,并将提示信息通过 message显示出来
	Status CreateScoresRequestModelStatus `json:"status"`

	// 作品创建时间
	CreatedTime string `json:"created_time"`

	// 作品备注信息
	Note *string `json:"note,omitempty"`

	// 作品描述信息
	Message *string `json:"message,omitempty"`

	// 租户ID
	DomainId string `json:"domain_id"`

	// 用户ID
	UserId *string `json:"user_id,omitempty"`
}

func (CreateScoresRequestModel) String

func (o CreateScoresRequestModel) String() string

type CreateScoresRequestModelStatus

type CreateScoresRequestModelStatus struct {
	// contains filtered or unexported fields
}

func (CreateScoresRequestModelStatus) MarshalJSON

func (c CreateScoresRequestModelStatus) MarshalJSON() ([]byte, error)

func (*CreateScoresRequestModelStatus) UnmarshalJSON

func (c *CreateScoresRequestModelStatus) UnmarshalJSON(b []byte) error

func (CreateScoresRequestModelStatus) Value added in v0.0.90

type CreateScoresRequestModelStatusEnum

type CreateScoresRequestModelStatusEnum struct {
	SUCCESS CreateScoresRequestModelStatus
	FAILED  CreateScoresRequestModelStatus
}

func GetCreateScoresRequestModelStatusEnum

func GetCreateScoresRequestModelStatusEnum() CreateScoresRequestModelStatusEnum

type ListCompetitionWorksRequest

type ListCompetitionWorksRequest struct {

	// 要查询的大赛ID,由大赛平台提供
	CompetitionId int32 `json:"competition_id"`

	// 要查询的大赛阶段ID,由大赛平台提供
	StageId int32 `json:"stage_id"`

	// 查询的截止时间
	ReadTime string `json:"read_time"`

	// 查询的时间范围。day表示以read_time作为结束时间,前一天内作为查询范围,hour表示以read_time作为结束时间,前一小内时作为查询范围。
	TimeUnit *ListCompetitionWorksRequestTimeUnit `json:"time_unit,omitempty"`

	// 作品记录的起始编号,如果不传默认从0开始,offset为0时表示从第一条记录开始
	Offset *int32 `json:"offset,omitempty"`

	// 每页包含的作品记录数,如果不传默认返回100条,并且返回最大条数为100
	Limit *int32 `json:"limit,omitempty"`

	// 需要排序的字段,只支持works_id字段,如果不传则不进行排序
	SortKey *string `json:"sort_key,omitempty"`

	// 排序类型,支持asc|desc,默认为asc升序
	SortDir *ListCompetitionWorksRequestSortDir `json:"sort_dir,omitempty"`
}

ListCompetitionWorksRequest Request Object

func (ListCompetitionWorksRequest) String

type ListCompetitionWorksRequestSortDir

type ListCompetitionWorksRequestSortDir struct {
	// contains filtered or unexported fields
}

func (ListCompetitionWorksRequestSortDir) MarshalJSON

func (c ListCompetitionWorksRequestSortDir) MarshalJSON() ([]byte, error)

func (*ListCompetitionWorksRequestSortDir) UnmarshalJSON

func (c *ListCompetitionWorksRequestSortDir) UnmarshalJSON(b []byte) error

func (ListCompetitionWorksRequestSortDir) Value added in v0.0.90

type ListCompetitionWorksRequestSortDirEnum

type ListCompetitionWorksRequestSortDirEnum struct {
	ASC  ListCompetitionWorksRequestSortDir
	DESC ListCompetitionWorksRequestSortDir
}

func GetListCompetitionWorksRequestSortDirEnum

func GetListCompetitionWorksRequestSortDirEnum() ListCompetitionWorksRequestSortDirEnum

type ListCompetitionWorksRequestTimeUnit

type ListCompetitionWorksRequestTimeUnit struct {
	// contains filtered or unexported fields
}

func (ListCompetitionWorksRequestTimeUnit) MarshalJSON

func (c ListCompetitionWorksRequestTimeUnit) MarshalJSON() ([]byte, error)

func (*ListCompetitionWorksRequestTimeUnit) UnmarshalJSON

func (c *ListCompetitionWorksRequestTimeUnit) UnmarshalJSON(b []byte) error

func (ListCompetitionWorksRequestTimeUnit) Value added in v0.0.90

type ListCompetitionWorksRequestTimeUnitEnum

type ListCompetitionWorksRequestTimeUnitEnum struct {
	DAY  ListCompetitionWorksRequestTimeUnit
	HOUR ListCompetitionWorksRequestTimeUnit
}

func GetListCompetitionWorksRequestTimeUnitEnum

func GetListCompetitionWorksRequestTimeUnitEnum() ListCompetitionWorksRequestTimeUnitEnum

type ListCompetitionWorksResponse

type ListCompetitionWorksResponse struct {

	// 作品列表
	Works *[]ListWorksResponseModel `json:"works,omitempty"`

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

ListCompetitionWorksResponse Response Object

func (ListCompetitionWorksResponse) String

type ListWorksResponseModel

type ListWorksResponseModel struct {

	// 作品ID
	WorksId string `json:"works_id"`

	// 租户ID
	DomainId string `json:"domain_id"`

	// 团队ID
	TeamId string `json:"team_id"`
}

func (ListWorksResponseModel) String

func (o ListWorksResponseModel) String() string

type RegisterCompetitionInfoRequest

type RegisterCompetitionInfoRequest struct {
	Body *RegisterInfoRequestModel `json:"body,omitempty"`
}

RegisterCompetitionInfoRequest Request Object

func (RegisterCompetitionInfoRequest) String

type RegisterCompetitionInfoResponse

type RegisterCompetitionInfoResponse struct {

	// 是否允许提交作品,true-允许,false-不允许
	IsPermitted *bool `json:"is_permitted,omitempty"`

	// 团队ID
	TeamId         *string `json:"team_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

RegisterCompetitionInfoResponse Response Object

func (RegisterCompetitionInfoResponse) String

type RegisterInfoRequestModel

type RegisterInfoRequestModel struct {

	// 大赛ID,大赛平台提供
	CompetitionId string `json:"competition_id"`

	// 大赛阶段ID,大赛平台提供
	StageId string `json:"stage_id"`

	// 租户ID
	DomainId string `json:"domain_id"`
}

func (RegisterInfoRequestModel) String

func (o RegisterInfoRequestModel) String() string

type UpdateCompetitionScoreRequest

type UpdateCompetitionScoreRequest struct {
	Body *UpdateScoreRequestModel `json:"body,omitempty"`
}

UpdateCompetitionScoreRequest Request Object

func (UpdateCompetitionScoreRequest) String

type UpdateCompetitionScoreResponse

type UpdateCompetitionScoreResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateCompetitionScoreResponse Response Object

func (UpdateCompetitionScoreResponse) String

type UpdateScoreRequestModel

type UpdateScoreRequestModel struct {

	// 作品ID,大赛平台提供,可以通过接口[ListCompetitionWorks](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=CodeCraft&api=ListCompetitionWorks)查询作品ID
	WorksId int32 `json:"works_id"`

	// 作品分数,作品状态为failed时传-1,计算长度时包括小数点,小数点后面最多保留四位
	Score float64 `json:"score"`

	// 作品状态success|failed。判题时,需要对上传作品进行检查,当作品不符合要求时,应该返回failed,并将提示信息通过 message显示出来
	Status UpdateScoreRequestModelStatus `json:"status"`

	// 作品描述信息
	Message *string `json:"message,omitempty"`
}

func (UpdateScoreRequestModel) String

func (o UpdateScoreRequestModel) String() string

type UpdateScoreRequestModelStatus

type UpdateScoreRequestModelStatus struct {
	// contains filtered or unexported fields
}

func (UpdateScoreRequestModelStatus) MarshalJSON

func (c UpdateScoreRequestModelStatus) MarshalJSON() ([]byte, error)

func (*UpdateScoreRequestModelStatus) UnmarshalJSON

func (c *UpdateScoreRequestModelStatus) UnmarshalJSON(b []byte) error

func (UpdateScoreRequestModelStatus) Value added in v0.0.90

type UpdateScoreRequestModelStatusEnum

type UpdateScoreRequestModelStatusEnum struct {
	SUCCESS UpdateScoreRequestModelStatus
	FAILED  UpdateScoreRequestModelStatus
}

func GetUpdateScoreRequestModelStatusEnum

func GetUpdateScoreRequestModelStatusEnum() UpdateScoreRequestModelStatusEnum

Jump to

Keyboard shortcuts

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