package com.starry.admin.modules.personnel.module.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 管理员管理信息
 *
 * @author admin
 * @since 2024/6/14 14:45
 **/
@Data
public class PlayPersonnelAdminInfoReturnVo {

    /**
     * UUID
     */
    private String id;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 用户ID
     **/
    private String sysUserId;

    /**
     * 用户账号
     **/
    private String sysUserCode;

    /**
     * 管理员名称
     */
    @NotBlank(message = "管理员名称不能为空")
    @Length(min = 1, max = 100, message = "字符长度在1-100之间")
    private String adminName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime addTime;

}
