package com.cf.imes.module.system.controller.admin.machine.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

import static com.cf.imes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static com.cf.imes.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

/**
 * @author Beal
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AuthTemplateResp {
    @Schema(description = "组织id")
    private Long organId;
    @Schema(description = "组织名称")
    private String organName;
    @Schema(description = "用户id")
    private Long userId;
    @Schema(description = "用户昵称")
    private String nickname;
    @Schema(description = "更新时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date updateTime;
    @Schema(description = "机台模板列表")
    private List<AutoTemplateVO> authTemplateList;
}
