Documentation ¶
Index ¶
Constants ¶
View Source
const CompMiddlewareKey = "compID"
View Source
const OrgAuthMiddlewareKey = "organizerID"
Variables ¶
This section is empty.
Functions ¶
func CheckCompMiddleware ¶
func CheckCompMiddleware(svc *svc.Svc) gin.HandlerFunc
func CheckOrgCanUse ¶
func CheckOrgCanUse() gin.HandlerFunc
func OrgAuthMiddleware ¶
func OrgAuthMiddleware(svc *svc.Svc) gin.HandlerFunc
Types ¶
type CheckCompMiddlewareReq ¶
type CheckCompMiddlewareReq struct {
CompId uint `uri:"compId" json:"compId"`
}
type OrgAuthMiddlewareReq ¶
type OrgAuthMiddlewareReq struct {
OrgId uint `uri:"orgId"`
}
Click to show internal directories.
Click to hide internal directories.