controller

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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,
)

Jump to

Keyboard shortcuts

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