Versions in this module Expand all Collapse all v0 v0.0.2 Nov 22, 2019 Changes in this version + func LoadResource() gin.HandlerFunc + func RegisterRouter(g *gin.RouterGroup) + type Handler struct + func (*Handler) Download() gin.HandlerFunc + func (*Handler) List() gin.HandlerFunc + func (*Handler) Modify() gin.HandlerFunc + func (*Handler) SingleDelete() gin.HandlerFunc + func (*Handler) Upload() gin.HandlerFunc + type ReqModify struct + ContestID *uint + ExpiredAt *time.Time + IsHidden *bool + ProblemAlias *string + func (r *ReqModify) Bind(db *gorm.DB, session *cpt.Session, res *cpt.Resource) (err error) + type RespList struct + Resources []*RespResource + type RespResource struct + ContentType string + ContestID uint + CreatedAt time.Time + ExpiredAt time.Time + IsHidden bool + Name string + ProblemID uint + UUID string + func BindList(resources []cpt.Resource) []*RespResource + func BindResource(res *cpt.Resource) *RespResource + type RespUpload struct + UUID string v0.0.1 Nov 22, 2019