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

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. // all area store doc
  11. // @Summary activity
  12. // @Description get all area store
  13. // @Tags pc
  14. // @Accept json
  15. // @Produce json
  16. // @Success 200 {string} string "success"
  17. // @Router /Pc/ActivityCtl/list [get]
  18. func (t *AreaStoreCtl) List() {
  19. activityId := t.MustGetInt64("activity_id")
  20. list, err := models.GetAreaStoresByActivityId(activityId)
  21. t.CheckErr(err)
  22. t.JSON(map[string]interface{}{
  23. "total": len(list),
  24. "list": list,
  25. })
  26. }