package com.ruoyi.info.hospital.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.filepathsplicing.FilePathRich;
import com.ruoyi.common.filepathsplicing.FilePathValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 医院信息业务对象 tb_hospital
 *
 * @author baifc
 * @date 2025-09-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("医院信息业务对象")
public class HospitalBo extends BaseEntity {

    /**
     * 医院ID
     */
    @ApiModelProperty(value = "医院ID", required = true)
    @NotNull(message = "医院ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 医院名称
     */
    @ApiModelProperty(value = "医院名称", required = true)
    @NotBlank(message = "医院名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 负责人
     */
    @ApiModelProperty(value = "负责人", required = true)
    @NotBlank(message = "负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String responsiblePerson;

    /**
     * 联系方式
     */
    @ApiModelProperty(value = "联系方式", required = true)
    @NotBlank(message = "联系方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactMobile;

    /**
     * 医院地址
     */
    @ApiModelProperty(value = "医院地址", required = true)
    @NotBlank(message = "医院地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 营业状态 0-正常 1-已停业
     */
    @ApiModelProperty(value = "营业状态 0-正常 1-已停业", required = true)
    @NotBlank(message = "营业状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String businessStatus;

    /**
     * 上架状态 0-上架 1-下架
     */
    @ApiModelProperty(value = "上架状态 0-上架 1-下架", required = true)
    private String rackStatus;

    /**
     * 医院等级
     */
    @ApiModelProperty(value = "医院等级", required = true)
    @NotBlank(message = "医院等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String level;

    /**
     * 医院标签
     */
    @ApiModelProperty(value = "医院标签", required = true)
    @NotBlank(message = "医院标签不能为空", groups = { AddGroup.class, EditGroup.class })
    private String label;

    /**
     * 省id
     */
    @ApiModelProperty(value = "省id", required = true)
    @NotNull(message = "省id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String provinceId;

    /**
     * 省名称
     */
    @ApiModelProperty(value = "省名称")
    private String provinceName;

    /**
     * 市id
     */
    @ApiModelProperty(value = "市id", required = true)
    @NotNull(message = "市id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cityId;

    /**
     * 市名称
     */
    @ApiModelProperty(value = "市名称")
    private String cityName;

    /**
     * 区域id
     */
    @ApiModelProperty(value = "区域id", required = true)
    @NotNull(message = "区域id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaId;

    /**
     * 区域名称
     */
    @ApiModelProperty(value = "区域名称")
    private String areaName;

    /**
     * 经纬度
     */
    @ApiModelProperty(value = "经纬度", required = true)
    @NotBlank(message = "经纬度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String coordinates;

    /**
     * 客服电话
     */
    @ApiModelProperty(value = "客服电话", required = true)
    @NotBlank(message = "客服电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String serviceMobile;

    /**
     * 医院介绍
     */
    @FilePathRich
    @ApiModelProperty(value = "医院介绍", required = true)
    private String introduction;

    /**
     * 医院logo_url
     */
    @FilePathValue
    @ApiModelProperty(value = "医院logo_url", required = true)
    @NotBlank(message = "医院logo不能为空", groups = { AddGroup.class, EditGroup.class })
    private String logoUrl;

    /**
     * 小程序二维码url
     */
    @FilePathValue
    @ApiModelProperty(value = "小程序二维码url", required = true)
    private String qrCodeUrl;

    /**
     * 营业时间
     */
    @ApiModelProperty(value = "营业时间", required = true)
    private String businessHours;

    /**
     * 排序序号
     */
    @ApiModelProperty(value = "排序序号", required = true)
    @NotNull(message = "排序序号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer sortOrder;

    /**
     * 创建时间开始
     */
    @ApiModelProperty(value = "创建时间开始")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeStart;

    /**
     * 创建时间结束
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间结束")
    private Date createTimeEnd;

    /**
     * 开始日期(查询用)
     */
    @ApiModelProperty(value = "开始日期(查询用)", required = true)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 结束日期(查询用)
     */
    @ApiModelProperty(value = "结束日期(查询用)", required = true)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
}
