package com.hdkj.lt.bf.controller;

import com.hdkj.lt.bf.entity.vo.UserFeedbackVO;
import com.hdkj.lt.bf.service.IUserFeedbackService;
import com.hdkj.hussar.ApiResponse;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
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.validation.Valid;

/**
 * <p>
 * 用户问题反馈信息表 前端控制器
 * </p>
 *
 * @author luorui
 * @since 2025-08-29
 */

@RestController
@AllArgsConstructor
@RequestMapping("/user-feedback")
public class UserFeedbackController {

    private final IUserFeedbackService userFeedbackService;

    /**
     * 保存用户反馈信息
     */
    @ApiOperation(value = "保存用户反馈信息")
    @PostMapping("/save")
    public ApiResponse<String> saveUserFeedback(@Valid @RequestBody UserFeedbackVO userFeedbackVO) {
        userFeedbackService.saveUserFeedback(userFeedbackVO);
        return ApiResponse.success("保存成功");
    }

}
