|
@@ -8,7 +8,6 @@ import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartRequest;
|
|
import org.springframework.web.multipart.MultipartRequest;
|
|
|
import shop.alien.entity.result.R;
|
|
import shop.alien.entity.result.R;
|
|
|
-import shop.alien.entity.store.StoreCommentAppeal;
|
|
|
|
|
import shop.alien.entity.store.vo.StoreCommentAppealInfoVo;
|
|
import shop.alien.entity.store.vo.StoreCommentAppealInfoVo;
|
|
|
import shop.alien.entity.store.vo.StoreCommentAppealVo;
|
|
import shop.alien.entity.store.vo.StoreCommentAppealVo;
|
|
|
import shop.alien.store.annotation.TrackEvent;
|
|
import shop.alien.store.annotation.TrackEvent;
|
|
@@ -157,4 +156,12 @@ public class StoreCommentAppealController {
|
|
|
log.info("StoreCommentAppealController.getAppealHistoryCountStatus?storeId={}", storeId);
|
|
log.info("StoreCommentAppealController.getAppealHistoryCountStatus?storeId={}", storeId);
|
|
|
return R.data(storeCommentAppealService.getAppealHistoryCountStatus(storeId));
|
|
return R.data(storeCommentAppealService.getAppealHistoryCountStatus(storeId));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // TODO 查询当前用户前30天所有评价被申诉通过的次数,如果> 3 次返回true
|
|
|
|
|
+ @ApiOperation("是否可以评价")
|
|
|
|
|
+ @GetMapping("/canRate")
|
|
|
|
|
+ public R<Boolean> canRate(Integer userId) {
|
|
|
|
|
+ log.info("StoreCommentAppealController.canRate");
|
|
|
|
|
+ return R.data(storeCommentAppealService.canRate(userId));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|