package com.ylx.order.controller; import com.ylx.common.core.domain.R; import com.ylx.order.service.TCommentUserService; import com.ylx.order.domain.dto.OrderCommentDTO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.validation.annotation.Validated; 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 Administrator * @version 1.0 * @date 2026/6/9 15:59 */ @Api(tags = "订单评论") @RestController @RequestMapping("/order/comment") @RequiredArgsConstructor public class OrderCommentController { private final TCommentUserService tCommentUserService; @ApiOperation("提交评论(用户评论技师)") @PostMapping("/submit") public R submitComment(@Validated @RequestBody OrderCommentDTO dto) { tCommentUserService.submitComment(dto); return R.ok("评价完成"); } }