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

import com.hotwj.platform.noticeManagerment.notificationIssue.domain.HotNotificationIssue;
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;

/**
 * 通知下发业务对象 hot_notification_issue
 *
 * @author shihongwei
 * @date 2026-01-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotNotificationIssue.class, reverseConvertGenerate = false)
public class HotNotificationIssueBo extends BaseEntity {

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

    /**
     * 下发公司ids
     */
    private String issueCompanyIds;

    /**
     * 下发内容
     */
    private String issueContent;

    /**
     * 文件名称
     */
    @NotBlank(message = "文件名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String fileName;

    /**
     * 通知类型
     */
    @NotNull(message = "通知类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long notifyType;

    /**
     * 回复期限
     */
    private String deadline;

    /**
     * 附件URL
     */
    @NotBlank(message = "附件URL不能为空", groups = {AddGroup.class, EditGroup.class})
    private String attachmentUrl;

    /**
     * 省编码
     */
    @NotBlank(message = "省编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String provinceCode;

    /**
     * 市编码
     */
    @NotBlank(message = "市编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String cityCode;

    /**
     * 区/县编码
     */
    @NotBlank(message = "区/县编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String districtCode;

    /**
     * 区域名称(省市区组合展示)
     */
    private String areaName;

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


}
