Documentation ¶
Index ¶
- func CodeCraftClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForCreateCompetitionScore() *def.HttpRequestDef
- func GenReqDefForListCompetitionWorks() *def.HttpRequestDef
- func GenReqDefForRegisterCompetitionInfo() *def.HttpRequestDef
- func GenReqDefForUpdateCompetitionScore() *def.HttpRequestDef
- type CodeCraftClient
- func (c *CodeCraftClient) CreateCompetitionScore(request *model.CreateCompetitionScoreRequest) (*model.CreateCompetitionScoreResponse, error)
- func (c *CodeCraftClient) CreateCompetitionScoreInvoker(request *model.CreateCompetitionScoreRequest) *CreateCompetitionScoreInvoker
- func (c *CodeCraftClient) ListCompetitionWorks(request *model.ListCompetitionWorksRequest) (*model.ListCompetitionWorksResponse, error)
- func (c *CodeCraftClient) ListCompetitionWorksInvoker(request *model.ListCompetitionWorksRequest) *ListCompetitionWorksInvoker
- func (c *CodeCraftClient) RegisterCompetitionInfo(request *model.RegisterCompetitionInfoRequest) (*model.RegisterCompetitionInfoResponse, error)
- func (c *CodeCraftClient) RegisterCompetitionInfoInvoker(request *model.RegisterCompetitionInfoRequest) *RegisterCompetitionInfoInvoker
- func (c *CodeCraftClient) UpdateCompetitionScore(request *model.UpdateCompetitionScoreRequest) (*model.UpdateCompetitionScoreResponse, error)
- func (c *CodeCraftClient) UpdateCompetitionScoreInvoker(request *model.UpdateCompetitionScoreRequest) *UpdateCompetitionScoreInvoker
- type CreateCompetitionScoreInvoker
- type ListCompetitionWorksInvoker
- type RegisterCompetitionInfoInvoker
- type UpdateCompetitionScoreInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodeCraftClientBuilder ¶
func CodeCraftClientBuilder() *http_client.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 *http_client.HcHttpClient
}
func NewCodeCraftClient ¶
func NewCodeCraftClient(hcClient *http_client.HcHttpClient) *CodeCraftClient
func (*CodeCraftClient) CreateCompetitionScore ¶
func (c *CodeCraftClient) CreateCompetitionScore(request *model.CreateCompetitionScoreRequest) (*model.CreateCompetitionScoreResponse, error)
CreateCompetitionScore 登记第三方提交的作品信息(得分回调)
针对在第三方提交作品的场景:第三方服务对作品完成判分后,调用该接口将作品信息及作品得分返回给大赛平台
详细说明请参考华为云API Explorer。 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 ¶
func (c *CodeCraftClient) ListCompetitionWorks(request *model.ListCompetitionWorksRequest) (*model.ListCompetitionWorksResponse, error)
ListCompetitionWorks 获取指定时间内选手提交的作品
第三方服务获取某个大赛某个阶段中一段时间内提交的作品信息。其中以请求参数read_time作为结束时间,定义向前一天或一小时内的时间作为查询范围
详细说明请参考华为云API Explorer。 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 ¶
func (c *CodeCraftClient) RegisterCompetitionInfo(request *model.RegisterCompetitionInfoRequest) (*model.RegisterCompetitionInfoResponse, error)
RegisterCompetitionInfo 验证用户报名信息和团队信息
第三方服务验证用户是否在大赛平台报名、是否组建团队、是否可以提交作品。如果已经报名但是未组建团队,则创建一个虚拟团队,设置为允许提交作品。如果已经组建团队则根据大赛报名截止时间判断是否可以提交作品。返回团队ID、是否可以提交作品
详细说明请参考华为云API Explorer。 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 ¶
func (c *CodeCraftClient) UpdateCompetitionScore(request *model.UpdateCompetitionScoreRequest) (*model.UpdateCompetitionScoreResponse, error)
UpdateCompetitionScore 修改平台提交的作品分数(得分回调)
针对在大赛平台提交作品的场景:第三方服务对作品完成判分后,根据作品ID调用该接口将作品分数、作品状态等信息返回给大赛平台
详细说明请参考华为云API Explorer。 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
func (i *CreateCompetitionScoreInvoker) Invoke() (*model.CreateCompetitionScoreResponse, error)
type ListCompetitionWorksInvoker ¶ added in v0.0.90
type ListCompetitionWorksInvoker struct {
*invoker.BaseInvoker
}
func (*ListCompetitionWorksInvoker) Invoke ¶ added in v0.0.90
func (i *ListCompetitionWorksInvoker) Invoke() (*model.ListCompetitionWorksResponse, error)
type RegisterCompetitionInfoInvoker ¶ added in v0.0.90
type RegisterCompetitionInfoInvoker struct {
*invoker.BaseInvoker
}
func (*RegisterCompetitionInfoInvoker) Invoke ¶ added in v0.0.90
func (i *RegisterCompetitionInfoInvoker) Invoke() (*model.RegisterCompetitionInfoResponse, error)
type UpdateCompetitionScoreInvoker ¶ added in v0.0.90
type UpdateCompetitionScoreInvoker struct {
*invoker.BaseInvoker
}
func (*UpdateCompetitionScoreInvoker) Invoke ¶ added in v0.0.90
func (i *UpdateCompetitionScoreInvoker) Invoke() (*model.UpdateCompetitionScoreResponse, error)