互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
379 B

5 years ago
  1. package pc
  2. import (
  3. "hudongzhuanjia/controllers"
  4. "hudongzhuanjia/models"
  5. )
  6. //地区店铺
  7. type AreaStoreCtl struct {
  8. controllers.AuthorCtl
  9. }
  10. func (t *AreaStoreCtl) List() {
  11. activityId := t.MustGetInt64("activity_id")
  12. list, err := models.GetAreaStoresByActivityId(activityId)
  13. t.CheckErr(err)
  14. t.JSON(map[string]interface{}{
  15. "total": len(list),
  16. "list": list,
  17. })
  18. }