activity.go 356 B

1234567891011121314151617
  1. package http
  2. import (
  3. bm "go-common/library/net/http/blademaster"
  4. )
  5. func listChallActivity(ctx *bm.Context) {
  6. v := &struct {
  7. Business int8 `form:"business" validate:"required,gt=0"`
  8. Cid int64 `form:"cid" validate:"required,gt=0"`
  9. }{}
  10. if err := ctx.Bind(v); err != nil {
  11. return
  12. }
  13. ctx.JSON(wkfSvc.ActivityList(ctx, v.Business, v.Cid))
  14. }