arc_audit.go 288 B

12345678910111213141516
  1. package http
  2. import (
  3. bm "go-common/library/net/http/blademaster"
  4. )
  5. //add archive
  6. func arcAdd(c *bm.Context) {
  7. v := new(struct {
  8. Aids []int64 `form:"aids,split" validate:"required,min=1,dive,gt=0"`
  9. })
  10. if err := c.Bind(v); err != nil {
  11. return
  12. }
  13. c.JSON(tvSrv.AddArcs(v.Aids))
  14. }