kfc.go 266 B

1234567891011121314
  1. package http
  2. import (
  3. kfcmdl "go-common/app/admin/main/activity/model/kfc"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. func kfcList(c *bm.Context) {
  7. arg := new(kfcmdl.ListParams)
  8. if err := c.Bind(arg); err != nil {
  9. return
  10. }
  11. c.JSON(kfcSrv.List(c, arg))
  12. }