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, }) }