From 206f601b1f2a2e3cb0bf4f5dead01bec9077d8e9 Mon Sep 17 00:00:00 2001
From: 彭雪彬 <1724387007@qq.com>
Date: Thu, 04 Sep 2025 15:28:52 +0800
Subject: [PATCH] Merge branch 'xin' into pxb

---
 oying-system/src/main/java/com/oying/modules/message/rest/MesRiderEvaluationController.java |   81 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 81 insertions(+), 0 deletions(-)

diff --git a/oying-system/src/main/java/com/oying/modules/message/rest/MesRiderEvaluationController.java b/oying-system/src/main/java/com/oying/modules/message/rest/MesRiderEvaluationController.java
new file mode 100644
index 0000000..f47126c
--- /dev/null
+++ b/oying-system/src/main/java/com/oying/modules/message/rest/MesRiderEvaluationController.java
@@ -0,0 +1,81 @@
+package com.oying.modules.message.rest;
+
+import com.oying.modules.message.domain.myDto.MesRiderEvaluationDto;
+import com.oying.modules.message.service.MesRiderEvaluationService;
+import com.oying.utils.R;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @author 李萌
+ * @date 2025-07-25
+ **/
+@RestController
+@RequiredArgsConstructor
+@Api(tags = "消息中心2.0")
+@RequestMapping("/api/mesRiderEvaluation")
+public class MesRiderEvaluationController {
+
+    private final MesRiderEvaluationService mesRiderEvaluationService;
+
+//    @ApiOperation("导出数据")
+//    @GetMapping(value = "/download")
+//    @PreAuthorize("@el.check('mesRiderEvaluation:list')")
+//    public void exportMesRiderEvaluation(HttpServletResponse response, MesRiderEvaluationQueryCriteria criteria) throws IOException {
+//        mesRiderEvaluationService.download(mesRiderEvaluationService.queryAll(criteria), response);
+//    }
+//
+//    @GetMapping
+//    @ApiOperation("查询消息")
+//    @PreAuthorize("@el.check('mesRiderEvaluation:list')")
+//    public ResponseEntity<PageResult<MesRiderEvaluation>> queryMesRiderEvaluation(MesRiderEvaluationQueryCriteria criteria){
+//        Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize());
+//        return new ResponseEntity<>(mesRiderEvaluationService.queryAll(criteria,page),HttpStatus.OK);
+//    }
+//
+//    @PostMapping
+//    @Log("新增消息")
+//    @ApiOperation("新增消息")
+//    @PreAuthorize("@el.check('mesRiderEvaluation:add')")
+//    public ResponseEntity<Object> createMesRiderEvaluation(@Validated @RequestBody MesRiderEvaluation resources){
+//        mesRiderEvaluationService.create(resources);
+//        return new ResponseEntity<>(HttpStatus.CREATED);
+//    }
+//
+//    @PutMapping
+//    @Log("修改消息")
+//    @ApiOperation("修改消息")
+//    @PreAuthorize("@el.check('mesRiderEvaluation:edit')")
+//    public ResponseEntity<Object> updateMesRiderEvaluation(@Validated @RequestBody MesRiderEvaluation resources){
+//        mesRiderEvaluationService.update(resources);
+//        return new ResponseEntity<>(HttpStatus.NO_CONTENT);
+//    }
+//
+//    @DeleteMapping
+//    @Log("删除消息")
+//    @ApiOperation("删除消息")
+//    @PreAuthorize("@el.check('mesRiderEvaluation:del')")
+//    public ResponseEntity<Object> deleteMesRiderEvaluation(@ApiParam(value = "传ID数组[]") @RequestBody List<Long> ids) {
+//        mesRiderEvaluationService.deleteAll(ids);
+//        return new ResponseEntity<>(HttpStatus.OK);
+//    }
+
+    //对一个骑手评价 + 打分
+    //
+    @PostMapping("/addRiderEvaluation")
+    @ApiOperation("对一个骑手评价 + 打分")
+    public R<Object> addGoodsEvaluation(@RequestBody MesRiderEvaluationDto resources) {
+        try {
+            mesRiderEvaluationService.addRiderEvaluation(resources);
+            return R.success();
+        } catch (Exception e) {
+            return R.fail(e.getMessage());
+        }
+
+    }
+}

--
Gitblit v1.9.3