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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
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 java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 护工信息业务对象 tb_nursing_worker
 *
 * @author baifc
 * @date 2025-09-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("护工信息业务对象")
public class NursingWorkerBo 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 phoneNumber;

    /**
     * 性别 1-男 2-女
     */
    @ApiModelProperty(value = "性别 1-男 2-女", required = true)
    @NotBlank(message = "性别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sex;

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

    /**
     * 工作年限
     */
    @ApiModelProperty(value = "工作年限", required = true)
    @NotNull(message = "工作年限不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer workYears;

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

    /**
     * 身份证号
     */
    @ApiModelProperty(value = "身份证号", required = true)
    @NotBlank(message = "身份证号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String idCard;

    /**
     * 接单状态 0-正常 1-关闭
     */
    @ApiModelProperty(value = "接单状态 0-正常 1-关闭", required = true)
    @NotNull(message = "接单状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderReceivingStatus;

    /**
     * 用户状态 0-启用 0-禁用
     */
    @ApiModelProperty(value = "用户状态 0-启用 1-禁用", required = true)
    @NotNull(message = "用户状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String enableStatus;

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

    /**
     * 形象照片url
     */
    @ApiModelProperty(value = "形象照片url", required = true)
    @NotBlank(message = "形象照片url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String photographUrl;

    /**
     * 护工从业证书信息
     */
    @ApiModelProperty(value = "护工从业证书信息", required = true)
    private List<NursingCertificateBo> nursingCertificateList;

    /**
     * 创建时间开始
     */
    @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;


}
