flow.go 454 B

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