OrderCommentController.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.ylx.order.controller;
  2. import com.ylx.common.core.domain.R;
  3. import com.ylx.order.service.TCommentUserService;
  4. import com.ylx.order.domain.dto.OrderCommentDTO;
  5. import io.swagger.annotations.Api;
  6. import io.swagger.annotations.ApiOperation;
  7. import lombok.RequiredArgsConstructor;
  8. import org.springframework.validation.annotation.Validated;
  9. import org.springframework.web.bind.annotation.PostMapping;
  10. import org.springframework.web.bind.annotation.RequestBody;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RestController;
  13. /**
  14. * 类描述:订单评论控制器
  15. *
  16. * @author Administrator
  17. * @version 1.0
  18. * @date 2026/6/9 15:59
  19. */
  20. @Api(tags = "订单评论")
  21. @RestController
  22. @RequestMapping("/order/comment")
  23. @RequiredArgsConstructor
  24. public class OrderCommentController {
  25. private final TCommentUserService tCommentUserService;
  26. @ApiOperation("提交评论(用户评论技师)")
  27. @PostMapping("/submit")
  28. public R<?> submitComment(@Validated @RequestBody OrderCommentDTO dto) {
  29. tCommentUserService.submitComment(dto);
  30. return R.ok("评价完成");
  31. }
  32. }