v5

package
v0.1.87 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeCraftClientBuilder

func CodeCraftClientBuilder() *httpclient.HcHttpClientBuilder

func GenReqDefForCreateCompetitionScore

func GenReqDefForCreateCompetitionScore() *def.HttpRequestDef

func GenReqDefForListCompetitionWorks

func GenReqDefForListCompetitionWorks() *def.HttpRequestDef

func GenReqDefForRegisterCompetitionInfo

func GenReqDefForRegisterCompetitionInfo() *def.HttpRequestDef

func GenReqDefForUpdateCompetitionScore

func GenReqDefForUpdateCompetitionScore() *def.HttpRequestDef

Types

type CodeCraftClient

type CodeCraftClient struct {
	HcClient *httpclient.HcHttpClient
}

func NewCodeCraftClient

func NewCodeCraftClient(hcClient *httpclient.HcHttpClient) *CodeCraftClient

func (*CodeCraftClient) CreateCompetitionScore

CreateCompetitionScore 登记第三方提交的作品信息(得分回调)

针对在第三方提交作品的场景:第三方服务对作品完成判分后,调用该接口将作品信息及作品得分返回给大赛平台

Please refer to HUAWEI cloud API Explorer for details.

func (*CodeCraftClient) CreateCompetitionScoreInvoker added in v0.0.90

func (c *CodeCraftClient) CreateCompetitionScoreInvoker(request *model.CreateCompetitionScoreRequest) *CreateCompetitionScoreInvoker

CreateCompetitionScoreInvoker 登记第三方提交的作品信息(得分回调)

func (*CodeCraftClient) ListCompetitionWorks

ListCompetitionWorks 获取指定时间内选手提交的作品

第三方服务获取某个大赛某个阶段中一段时间内提交的作品信息。其中以请求参数read_time作为结束时间,定义向前一天或一小时内的时间作为查询范围

Please refer to HUAWEI cloud API Explorer for details.

func (*CodeCraftClient) ListCompetitionWorksInvoker added in v0.0.90

func (c *CodeCraftClient) ListCompetitionWorksInvoker(request *model.ListCompetitionWorksRequest) *ListCompetitionWorksInvoker

ListCompetitionWorksInvoker 获取指定时间内选手提交的作品

func (*CodeCraftClient) RegisterCompetitionInfo

RegisterCompetitionInfo 验证用户报名信息和团队信息

第三方服务验证用户是否在大赛平台报名、是否组建团队、是否可以提交作品。如果已经报名但是未组建团队,则创建一个虚拟团队,设置为允许提交作品。如果已经组建团队则根据大赛报名截止时间判断是否可以提交作品。返回团队ID、是否可以提交作品

Please refer to HUAWEI cloud API Explorer for details.

func (*CodeCraftClient) RegisterCompetitionInfoInvoker added in v0.0.90

func (c *CodeCraftClient) RegisterCompetitionInfoInvoker(request *model.RegisterCompetitionInfoRequest) *RegisterCompetitionInfoInvoker

RegisterCompetitionInfoInvoker 验证用户报名信息和团队信息

func (*CodeCraftClient) UpdateCompetitionScore

UpdateCompetitionScore 修改平台提交的作品分数(得分回调)

针对在大赛平台提交作品的场景:第三方服务对作品完成判分后,根据作品ID调用该接口将作品分数、作品状态等信息返回给大赛平台

Please refer to HUAWEI cloud API Explorer for details.

func (*CodeCraftClient) UpdateCompetitionScoreInvoker added in v0.0.90

func (c *CodeCraftClient) UpdateCompetitionScoreInvoker(request *model.UpdateCompetitionScoreRequest) *UpdateCompetitionScoreInvoker

UpdateCompetitionScoreInvoker 修改平台提交的作品分数(得分回调)

type CreateCompetitionScoreInvoker added in v0.0.90

type CreateCompetitionScoreInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCompetitionScoreInvoker) Invoke added in v0.0.90

type ListCompetitionWorksInvoker added in v0.0.90

type ListCompetitionWorksInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCompetitionWorksInvoker) Invoke added in v0.0.90

type RegisterCompetitionInfoInvoker added in v0.0.90

type RegisterCompetitionInfoInvoker struct {
	*invoker.BaseInvoker
}

func (*RegisterCompetitionInfoInvoker) Invoke added in v0.0.90

type UpdateCompetitionScoreInvoker added in v0.0.90

type UpdateCompetitionScoreInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateCompetitionScoreInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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