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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

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

@Schema(description = "管理后台 - 应用注册表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ApplicationRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4109")
    @ExcelProperty("主键")
    private int id;

    @Schema(description = "应用标识", example = "okk")
    @ExcelProperty("应用标识")
    private String appId;

    @Schema(description = "应用密钥", example = "121gfrsg5sb4gs")
    @ExcelProperty("应用密钥")
    private String appKey;

    @Schema(description = "服务器IP列表", example = "0.0.0.0")
    @ExcelProperty("服务器IP列表")
    private String serverIp;

    @Schema(description = "应用简称")
    @ExcelProperty("应用简称")
    private String code;

    @Schema(description = "应用名")
    @ExcelProperty("应用名")
    private String name;

    @Schema(description = "应用主体")
    @ExcelProperty("应用主体")
    private String company;

    @Schema(description = "状态: 0停用，1正常")
    @ExcelProperty("状态")
    private Boolean status;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
