|
|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.yami.shop.bean.model.ProdComm;
|
|
|
import com.yami.shop.bean.po.CommPo;
|
|
|
import com.yami.shop.common.util.PageParam;
|
|
|
+import com.yami.shop.common.util.R;
|
|
|
import com.yami.shop.service.ProdCommService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
@@ -24,22 +25,22 @@ public class ProdCommController {
|
|
|
|
|
|
@GetMapping("/backendCommList")
|
|
|
@ApiOperation(value = "后台管理-用户评价")
|
|
|
- public ResponseEntity<IPage<ProdComm>> backendCommList(PageParam<ProdComm> page, CommPo po) {
|
|
|
- return ResponseEntity.ok(prodCommService.backendCommList(page,po));
|
|
|
+ public R<IPage<ProdComm>> backendCommList(PageParam<ProdComm> page, CommPo po) {
|
|
|
+ return R.SUCCESS(prodCommService.backendCommList(page,po));
|
|
|
}
|
|
|
|
|
|
@GetMapping("/backendCommAudit")
|
|
|
@ApiOperation(value = "后台管理-用户评价-(审核,1:通过,0:待审核, -1:不通过审核)")
|
|
|
- public ResponseEntity<Void> backendCommAudit(Long prodCommId, Integer status) {
|
|
|
+ public R<Void> backendCommAudit(Long prodCommId, Integer status) {
|
|
|
prodCommService.backendCommAudit(prodCommId,status);
|
|
|
- return ResponseEntity.ok().build();
|
|
|
+ return R.SUCCESS();
|
|
|
}
|
|
|
|
|
|
@GetMapping("/reply")
|
|
|
@ApiOperation(value = "后台-商家回复")
|
|
|
- public ResponseEntity<Void> reply(Long prodCommId, String replyContent) {
|
|
|
+ public R<Void> reply(Long prodCommId, String replyContent) {
|
|
|
prodCommService.reply(prodCommId,replyContent);
|
|
|
- return ResponseEntity.ok().build();
|
|
|
+ return R.SUCCESS();
|
|
|
}
|
|
|
|
|
|
|