go-common/app/admin/main/tv/http/arc_audit.go

17 lines
288 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package http
import (
bm "go-common/library/net/http/blademaster"
)
//add archive
func arcAdd(c *bm.Context) {
v := new(struct {
Aids []int64 `form:"aids,split" validate:"required,min=1,dive,gt=0"`
})
if err := c.Bind(v); err != nil {
return
}
c.JSON(tvSrv.AddArcs(v.Aids))
}