互动
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

package pc
import (
"hudongzhuanjia/controllers"
"hudongzhuanjia/models"
)
//地区店铺
type AreaStoreCtl struct {
controllers.AuthorCtl
}
func (t *AreaStoreCtl) List() {
activityId := t.MustGetInt64("activity_id")
list, err := models.GetAreaStoresByActivityId(activityId)
t.CheckErr(err)
t.JSON(map[string]interface{}{
"total": len(list),
"list": list,
})
}