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.ShopComment;
|
import com.doumee.dao.web.dto.shop.ShopCommentDTO;
|
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.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@Api(tags = "商家评论管理业务")
|
@Trace(exclude = true)
|
@RestController
|
@RequestMapping("/web/shopComment")
|
@Slf4j
|
public class ShopCommentApi extends ApiController{
|
|
|
/**
|
* 创建
|
*
|
* @param shopComment 实体对象
|
* @return Integer
|
*/
|
@ApiOperation(value = "商家店铺评论", notes = "小程序端")
|
@GetMapping("/createShopCommentDTO")
|
public ApiResponse<Integer> create(@RequestBody ShopCommentDTO shopComment){
|
return ApiResponse.success(shopCommentService.create(shopComment));
|
}
|
|
|
/**
|
* 分页查询商家评论信息
|
* @param pageWrap
|
* @return
|
*/
|
@ApiOperation(value = "分页查询商家评论信息", notes = "小程序端")
|
@GetMapping("/shopCommentDTO")
|
public ApiResponse<PageData<ShopCommentDTO>> findShopCommentDTOPage(@RequestBody PageWrap<ShopComment> pageWrap){
|
return ApiResponse.success(shopCommentService.findShopCommentDTOPage(pageWrap));
|
}
|
}
|