
package org.sky.scientific.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.sky.core.tenant.mp.TenantEntity;

import java.util.List;

/**
 * 意见反馈 实体类
 *
 * @author Kd
 * @since 2025-07-01
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("kd_feedback")
public class FeedBackEntity extends TenantEntity {

	@Schema(description = "反馈类型，1：建议意见，2：技术服务问题，3：系统应用问题，4:其他")
	@NotNull(message = "反馈类型不能为空")
	private Integer type;

	@Schema(description = "详细描述")
	@NotBlank(message = "详细描述不能为空")
	private String remark;

	@Schema(description = "截图证明")
	private String attachment;

	@Schema(description = "反馈人")
	@TableField(exist = false)
	private String userName;

	@Schema(description = "反馈公司")
	@TableField(exist = false)
	private String tenantName;

	@Schema(description = "回复")
	@TableField(exist = false)
	private List<FeedBackReplyEntity> replyList;

}
