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.
31 lines
584 B
31 lines
584 B
package pc
|
|
|
|
import (
|
|
"hudongzhuanjia/controllers"
|
|
"hudongzhuanjia/models"
|
|
)
|
|
|
|
//地区店铺
|
|
type AreaStoreCtl struct {
|
|
controllers.AuthorCtl
|
|
}
|
|
|
|
// all area store doc
|
|
// @Summary activity
|
|
// @Description get all area store
|
|
// @Tags pc
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Success 200 {string} string "success"
|
|
// @Router /Pc/ActivityCtl/list [get]
|
|
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,
|
|
})
|
|
}
|