Documentation
¶
Index ¶
- func LoadTeam() gin.HandlerFunc
- func RegisterRouter(g *gin.RouterGroup)
- type Handler
- func (*Handler) AdminAdd() gin.HandlerFunc
- func (*Handler) AdminDelete() gin.HandlerFunc
- func (*Handler) AdminList() gin.HandlerFunc
- func (*Handler) ApplicationAccept() gin.HandlerFunc
- func (*Handler) ApplicationCancel() gin.HandlerFunc
- func (*Handler) ApplicationList() gin.HandlerFunc
- func (*Handler) ApplicationNew() gin.HandlerFunc
- func (*Handler) ApplicationReject() gin.HandlerFunc
- func (*Handler) Create() gin.HandlerFunc
- func (*Handler) InvitationAccept() gin.HandlerFunc
- func (*Handler) InvitationAcceptByToken() gin.HandlerFunc
- func (*Handler) InvitationCancel() gin.HandlerFunc
- func (*Handler) InvitationList() gin.HandlerFunc
- func (*Handler) InvitationNew() gin.HandlerFunc
- func (*Handler) InvitationReject() gin.HandlerFunc
- func (*Handler) InvitationTokenRefresh() gin.HandlerFunc
- func (*Handler) InvitationTokenShow() gin.HandlerFunc
- func (*Handler) List() gin.HandlerFunc
- func (*Handler) Modify() gin.HandlerFunc
- func (*Handler) Show() gin.HandlerFunc
- func (*Handler) SingleDelete() gin.HandlerFunc
- func (*Handler) StatisticShow() gin.HandlerFunc
- func (*Handler) UserAdd() gin.HandlerFunc
- func (*Handler) UserDelete() gin.HandlerFunc
- func (*Handler) UserList() gin.HandlerFunc
- type RApplication
- type RInvitation
- type RStatisticContest
- type RTeam
- type RTeamUser
- type ReqApplicationAcceptAndReject
- type ReqCreate
- type ReqInvitationAcceptByToken
- type ReqInvitationNewAndCancel
- type ReqModify
- type ReqUserAdd
- type ReqUserDelete
- type RespApplicationList
- type RespCreate
- type RespInvitationList
- type RespInvitationToken
- type RespList
- type RespShow
- type RespStatisticShow
- type RespUserAdd
- type RespUserAddDeleteDetail
- type RespUserDelete
- type RespUserList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadTeam ¶
func LoadTeam() gin.HandlerFunc
func RegisterRouter ¶
func RegisterRouter(g *gin.RouterGroup)
Types ¶
type Handler ¶
type Handler struct {
}
func (*Handler) AdminAdd ¶
func (*Handler) AdminAdd() gin.HandlerFunc
func (*Handler) AdminDelete ¶
func (*Handler) AdminDelete() gin.HandlerFunc
func (*Handler) AdminList ¶
func (*Handler) AdminList() gin.HandlerFunc
func (*Handler) ApplicationAccept ¶
func (*Handler) ApplicationAccept() gin.HandlerFunc
func (*Handler) ApplicationCancel ¶
func (*Handler) ApplicationCancel() gin.HandlerFunc
func (*Handler) ApplicationList ¶
func (*Handler) ApplicationList() gin.HandlerFunc
func (*Handler) ApplicationNew ¶
func (*Handler) ApplicationNew() gin.HandlerFunc
func (*Handler) ApplicationReject ¶
func (*Handler) ApplicationReject() gin.HandlerFunc
func (*Handler) Create ¶
func (*Handler) Create() gin.HandlerFunc
func (*Handler) InvitationAccept ¶
func (*Handler) InvitationAccept() gin.HandlerFunc
func (*Handler) InvitationAcceptByToken ¶
func (*Handler) InvitationAcceptByToken() gin.HandlerFunc
func (*Handler) InvitationCancel ¶
func (*Handler) InvitationCancel() gin.HandlerFunc
func (*Handler) InvitationList ¶
func (*Handler) InvitationList() gin.HandlerFunc
func (*Handler) InvitationNew ¶
func (*Handler) InvitationNew() gin.HandlerFunc
func (*Handler) InvitationReject ¶
func (*Handler) InvitationReject() gin.HandlerFunc
func (*Handler) InvitationTokenRefresh ¶
func (*Handler) InvitationTokenRefresh() gin.HandlerFunc
func (*Handler) InvitationTokenShow ¶
func (*Handler) InvitationTokenShow() gin.HandlerFunc
func (*Handler) List ¶
func (*Handler) List() gin.HandlerFunc
func (*Handler) Modify ¶
func (*Handler) Modify() gin.HandlerFunc
func (*Handler) Show ¶
func (*Handler) Show() gin.HandlerFunc
func (*Handler) SingleDelete ¶
func (*Handler) SingleDelete() gin.HandlerFunc
func (*Handler) StatisticShow ¶
func (*Handler) StatisticShow() gin.HandlerFunc
func (*Handler) UserAdd ¶
func (*Handler) UserAdd() gin.HandlerFunc
func (*Handler) UserDelete ¶
func (*Handler) UserDelete() gin.HandlerFunc
func (*Handler) UserList ¶
func (*Handler) UserList() gin.HandlerFunc
type RApplication ¶
type RApplication struct {
UserID uint `json:"user_id"`
ApplyTime time.Time `json:"apply_time"`
Status uint `json:"status"`
}
func BindApplication ¶
func BindApplication(app *cpt.TeamApplication) *RApplication
func BindApplicationList ¶
func BindApplicationList(applications []cpt.TeamApplication) []*RApplication
type RInvitation ¶
type RInvitation struct {
ToUser uint `json:"to_user"`
FromUser uint `json:"from_user"`
InviteTime time.Time `json:"invite_time"`
Status uint `json:"status"`
}
func BindInvitation ¶
func BindInvitation(inv *cpt.TeamInvitation) *RInvitation
func BindInvitationList ¶
func BindInvitationList(invitations []cpt.TeamInvitation) []*RInvitation
type RStatisticContest ¶
type RTeam ¶
type RTeamUser ¶
type RTeamUser struct {
ID uint `json:"id"`
Username string `json:"username"`
EmailHash string `json:"email_hash"`
Nickname string `json:"nickname"`
}
func BindUserList ¶
type ReqApplicationAcceptAndReject ¶
type ReqApplicationAcceptAndReject struct {
UserID uint `json:"user_id" validate:"required" binding:"required"`
}
type ReqInvitationAcceptByToken ¶
type ReqInvitationAcceptByToken struct {
Token string `json:"token"`
}
type ReqInvitationNewAndCancel ¶
type ReqInvitationNewAndCancel struct {
UserID uint `json:"user_id" validate:"required" binding:"required"`
}
type ReqModify ¶
type ReqUserAdd ¶
type ReqUserAdd struct {
UsersID []uint `json:"users_id"`
}
type ReqUserDelete ¶
type ReqUserDelete struct {
UsersID []uint `json:"users_id"`
}
type RespApplicationList ¶
type RespApplicationList struct {
Response
Applications []*RApplication `json:"applications"`
}
type RespCreate ¶
type RespCreate struct {
Response
TeamID uint `json:"team_id,omitempty"`
}
type RespInvitationList ¶
type RespInvitationList struct {
Response
Invitations []*RInvitation `json:"invitations"`
}
type RespInvitationToken ¶
type RespInvitationToken struct {
Response
Token string `json:"token"`
}
type RespStatisticShow ¶
type RespStatisticShow struct {
Response
Contests []*RStatisticContest `json:"contests"`
}
type RespUserAdd ¶
type RespUserAdd struct {
Response
Details []*RespUserAddDeleteDetail `json:"details"`
}
type RespUserAddDeleteDetail ¶
type RespUserAddDeleteDetail struct {
Response
UserID uint `json:"user_id"`
}
type RespUserDelete ¶
type RespUserDelete struct {
Response
Details []*RespUserAddDeleteDetail `json:"details"`
}
type RespUserList ¶
type RespUserList struct {
Response
Members []*RTeamUser `json:"members"`
}
Click to show internal directories.
Click to hide internal directories.