package com.doumee.api.web; import com.doumee.core.annotation.trace.Trace; import com.doumee.core.model.ApiResponse; import com.doumee.core.model.PageData; import com.doumee.core.model.PageWrap; import com.doumee.dao.business.model.ShopNews; import com.doumee.dao.web.dto.shop.ShopNewsDTO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @Api(tags = "商家新鲜事") @Trace(exclude = true) @RestController @RequestMapping("/web/shopNew") @Slf4j public class ShopNewsApi extends ApiController { /** * 获取店铺门面新鲜事信息 * @param shopId * @return */ @ApiOperation(value = "获取店铺门面信息", notes = "小程序端") @GetMapping("/shopFaceDetailDTO") public ApiResponse findShopNewsDTO( @RequestParam Integer shopId){ return ApiResponse.success(shopNewsService.findShopNewsDTO(shopId,getMemberId())); } /** * 分页查询 * * @param pageWrap 分页对象 * @return PageData */ @ApiOperation(value = "获取店铺新鲜事信息", notes = "小程序端") @GetMapping("/findShopNewsDTOPage") public ApiResponse> findShopNewsDTOPage(@RequestParam PageWrap pageWrap){ return ApiResponse.success(shopNewsService.findShopNewsDTOPage(pageWrap)); } }