package com.easyproject.client.controller.feedback;

import com.easyproject.clientbus.domain.dto.FeedbackDto;
import com.easyproject.clientbus.service.feedback.IFeedbackService;
import com.easyproject.common.core.domain.AjaxClientResult;
import lombok.extern.slf4j.Slf4j;
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;

import javax.annotation.Resource;

/**
 * 方法说明: 意见反馈相关接口
 * @param
 * @return
 * @author java-101
 * @date 2025-03-23 18:41:00
 */
@Slf4j
@RestController
@RequestMapping("/v1/feedback")
public class FeedbackController {

    @Resource
    private IFeedbackService feedbackService;

    /**
     * 方法说明: 意见反馈
     * @param
     * @return
     * @author java-101
     * @date 2025-03-23 18:43:25
     */
    @PostMapping("/subFeedback")
    public AjaxClientResult subFeedback(@RequestBody FeedbackDto dto) {
        return feedbackService.feedback(dto);
    }

}
