package com.hotwj.platform.noticeManagerment.complaintAdvice.domain.bo;

import com.hotwj.platform.noticeManagerment.complaintAdvice.domain.HotComplaintAdvice;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

/**
 * 投诉建议业务对象 hot_complaint_advice
 *
 * @author shihongwei
 * @date 2026-01-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotComplaintAdvice.class, reverseConvertGenerate = false)
public class HotComplaintAdviceBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 投诉问题
     */
    @NotBlank(message = "投诉问题不能为空", groups = {AddGroup.class, EditGroup.class})
    private String question;

    /**
     * 投诉单位、企业ID
     */
    @NotNull(message = "投诉单位、企业ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long companyId;

    /**
     * 投诉单位、企业名称
     */
    private String companyName;

    /**
     * 投诉人员id
     */
    @NotBlank(message = "投诉人员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String complainantId;

    /**
     * 投诉人员
     */
    private String complainantName;

    /**
     * 联系电话
     */
    private String contactPhone;

    /**
     * 人员类型
     */
    private String staffType;

    /**
     * 投诉内容
     */
    @NotBlank(message = "投诉内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String complainContent;

    /**
     * 是否回复 0=否,1=是
     */
    private Long isReplied;

    /**
     * 回复内容
     */
    private String replyContent;

    /**
     * 回复时间
     */
    private Date replyTime;

    /**
     * 0=正常, 1=已删除
     */
    private Long isDeleted;


}
