Versions in this module Expand all Collapse all v0 v0.0.2 Nov 22, 2019 Changes in this version + func LoadTeam() gin.HandlerFunc + func RegisterRouter(g *gin.RouterGroup) + type Handler struct + 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 struct + ApplyTime time.Time + Status uint + UserID uint + func BindApplication(app *cpt.TeamApplication) *RApplication + func BindApplicationList(applications []cpt.TeamApplication) []*RApplication + type RInvitation struct + FromUser uint + InviteTime time.Time + Status uint + ToUser uint + func BindInvitation(inv *cpt.TeamInvitation) *RInvitation + func BindInvitationList(invitations []cpt.TeamInvitation) []*RInvitation + type RStatisticContest struct + ID uint + Name string + Points uint + Rank uint + type RTeam struct + CreateAt time.Time + Description string + MemberCount uint + Name string + TeamID uint + func BindList(db *gorm.DB, teams []cpt.Team) []*RTeam + func BindTeam(db *gorm.DB, t *cpt.Team) *RTeam + type RTeamUser struct + EmailHash string + ID uint + Nickname string + Username string + func BindUser(u *cpt.User) *RTeamUser + func BindUserList(users []cpt.User) []*RTeamUser + type ReqApplicationAcceptAndReject struct + UserID uint + type ReqCreate struct + Description string + Name string + type ReqInvitationAcceptByToken struct + Token string + type ReqInvitationNewAndCancel struct + UserID uint + type ReqModify struct + Description *string + Name *string + func (r *ReqModify) Bind(t *cpt.Team) + type ReqUserAdd struct + UsersID []uint + type ReqUserDelete struct + UsersID []uint + type RespApplicationList struct + Applications []*RApplication + type RespCreate struct + TeamID uint + type RespInvitationList struct + Invitations []*RInvitation + type RespInvitationToken struct + Token string + type RespList struct + Teams []*RTeam + type RespShow struct + Team *RTeam + type RespStatisticShow struct + Contests []*RStatisticContest + type RespUserAdd struct + Details []*RespUserAddDeleteDetail + type RespUserAddDeleteDetail struct + UserID uint + type RespUserDelete struct + Details []*RespUserAddDeleteDetail + type RespUserList struct + Members []*RTeamUser v0.0.1 Nov 22, 2019