|
@@ -1,7 +1,6 @@
|
|
|
package com.chelvc.cloud.maintain.controller;
|
|
|
|
|
|
-import com.chelvc.cloud.vehicle.api.dto.NewInformDTO;
|
|
|
-import com.chelvc.cloud.vehicle.api.dto.OmsOrderOperateHistoryDTO;
|
|
|
+import com.chelvc.cloud.vehicle.api.dto.*;
|
|
|
import com.chelvc.cloud.vehicle.api.service.InformService;
|
|
|
import com.chelvc.framework.base.context.SessionContextHolder;
|
|
|
import com.chelvc.framework.common.model.Pagination;
|
|
@@ -33,7 +32,7 @@ public class InformController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 获取用户的订单列表
|
|
|
+ * 获取用户的订单通知列表
|
|
|
*
|
|
|
* @param paging 分页信息
|
|
|
* @return 用户的订单列表
|
|
@@ -60,4 +59,84 @@ public class InformController {
|
|
|
public NewInformDTO getNewInform() {
|
|
|
return informService.getNewInform(SessionContextHolder.getId());
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取用户的支付通知列表
|
|
|
+ *
|
|
|
+ * @param paging 分页信息
|
|
|
+ * @return 用户的订单列表
|
|
|
+ */
|
|
|
+ @GetMapping("/pay/inform")
|
|
|
+ public Pagination<OmsOrderPayHistoryDTO> listUserPayInform(@Valid Paging paging) {
|
|
|
+ return informService.selectOmsOrderPayHistoryListByUserId(SessionContextHolder.getId(), paging);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 将新订单通知标识更改
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @PutMapping("/pay/inform/flag")
|
|
|
+ public void changeUserPayInformFlag() {
|
|
|
+ informService.changeUserPayInformFlag(SessionContextHolder.getId());
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取用户的点赞回复通知列表
|
|
|
+ *
|
|
|
+ * @param paging 分页信息
|
|
|
+ * @return 用户的订单列表
|
|
|
+ */
|
|
|
+ @GetMapping("/evaluate/inform")
|
|
|
+ public Pagination<OmsOrderPayHistoryDTO> listEvaluate(@Valid Paging paging) {
|
|
|
+ return informService.selectEvaluateListByUserId(SessionContextHolder.getId(), paging);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 将新点赞回复通知标识更改
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @PutMapping("/evaluate/inform/flag")
|
|
|
+ public void changeEvaluateInformFlag() {
|
|
|
+ informService.changeEvaluateInformFlag(SessionContextHolder.getId());
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取用户的评价通知列表
|
|
|
+ *
|
|
|
+ * @param paging 分页信息
|
|
|
+ * @return 用户的订单列表
|
|
|
+ */
|
|
|
+ @GetMapping("/comment/inform")
|
|
|
+ public Pagination<CommentDTO> listCommentInform(@Valid Paging paging) {
|
|
|
+ return informService.selectCommentListByUserId(SessionContextHolder.getId(), paging);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 将新评价通知标识更改
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @PutMapping("/comment/inform/flag")
|
|
|
+ public void changeCommentInformFlag() {
|
|
|
+ informService.changeCommentInformFlag(SessionContextHolder.getId());
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取用户的优惠券通知列表
|
|
|
+ *
|
|
|
+ * @param paging 分页信息
|
|
|
+ * @return 用户的订单列表
|
|
|
+ */
|
|
|
+ @GetMapping("/coupon/inform")
|
|
|
+ public Pagination<UserCouponDTO> listUserCouponInform(@Valid Paging paging) {
|
|
|
+ return informService.selectUserCouponListByUserId(SessionContextHolder.getId(), paging);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 将新优惠券通知标识更改
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @PutMapping("/coupon/inform/flag")
|
|
|
+ public void changeUserCouponInformFlag() {
|
|
|
+ informService.changeUserCouponInformFlag(SessionContextHolder.getId());
|
|
|
+ }
|
|
|
}
|