Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRelatedProjectRequest ¶
type AddRelatedProjectRequest struct { Owner string `json:"owner"` Name string `json:"project_name"` }
func (*AddRelatedProjectRequest) ToInfo ¶
func (req *AddRelatedProjectRequest) ToInfo() ( owner types.Account, name types.ResourceName, err error, )
type ChangeTeamNameRequest ¶
type ChangeTeamNameRequest = CreateTeamRequest
type CompetitorApplyRequest ¶
type CompetitorApplyRequest struct { Name string `json:"name"` City string `json:"city"` Email string `json:"email"` Phone string `json:"phone"` Identity string `json:"identity"` Province string `json:"province"` Detail map[string]string `json:"detail"` Agreement bool `json:"agreement"` }
func (*CompetitorApplyRequest) ToCmd ¶
func (req *CompetitorApplyRequest) ToCmd(user types.Account) (cmd app.CompetitorApplyCmd, err error)
type CreateTeamRequest ¶
type CreateTeamRequest struct {
Name string `json:"team_name"`
}
func (*CreateTeamRequest) ToCmd ¶
func (req *CreateTeamRequest) ToCmd(user types.Account) ( cmd app.CompetitionTeamCreateCmd, err error, )
type DeleteMemberRequest ¶
type DeleteMemberRequest = TransferLeaderRequest
type JoinTeamRequest ¶
type JoinTeamRequest struct {
Account string `json:"leader_account"`
}
func (*JoinTeamRequest) ToCmd ¶
func (req *JoinTeamRequest) ToCmd(user types.Account) ( cmd app.CompetitionTeamJoinCmd, err error, )
type TransferLeaderRequest ¶
type TransferLeaderRequest struct {
Account string `json:"competitor_account"`
}
func (*TransferLeaderRequest) ToCmd ¶
func (req *TransferLeaderRequest) ToCmd(leader types.Account) ( cmd app.CmdToTransferTeamLeader, err error, )
Click to show internal directories.
Click to hide internal directories.