package org.qinan.safetyeval.client.co;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 人员变更记录CO（Client Object）
 *
 * @author safety-eval
 */
@Data
public class OrgPersonnelChangeCO {

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "人员ID")
    private Long personnelId;

    @ApiModelProperty(value = "变更事项")
    private String changeItem;

    @ApiModelProperty(value = "变更时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime changeTime;

    @ApiModelProperty(value = "操作人姓名")
    private String operatorName;

    @ApiModelProperty(value = "租户ID")
    private Long tenantId;
}
