
package org.sky.scientific.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.sky.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 意见反馈-回复 实体类
 *
 * @author Kd
 * @since 2025-07-01
 */
@Data
@TableName("kd_feedback_reply")
public class FeedBackReplyEntity {

 	@Schema(
		description = "主键id"
	)
	@TableId(
		value = "reply_id",
		type = IdType.ASSIGN_ID
	)
	private Long replyId;

	@Schema(description = "意见反馈ID")
	@NotNull(message = "参数feedbackId不能为空")
	private Long feedbackId;

	@Schema(description = "回复内容")
	@NotBlank(message = "参数replyContent不能为空")
	private String replyContent;

	@Schema(description = "回复时间")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
	private Date replyTime;

	@Schema(description = "回复人")
	private Long replyUser;

}
