go-common/app/admin/main/videoup/http/flow.go
2019-04-22 18:49:16 +08:00

21 lines
454 B
Go

package http
import (
"go-common/app/admin/main/videoup/model/archive"
"go-common/library/ecode"
bm "go-common/library/net/http/blademaster"
)
//查询某个资源所命中的所有流量套餐
func hitFlows(c *bm.Context) {
pm := new(struct {
OID int64 `form:"aid" validate:"required"`
})
if err := c.Bind(pm); err != nil {
c.JSON(nil, ecode.RequestErr)
return
}
c.JSON(vdaSvc.HitFlowGroups(c, pm.OID, []int8{archive.PoolArcForbid}))
}