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

import com.cf.imes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

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

@Schema(description = "管理后台 - 应用注册表分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ApplicationPageReqVO extends PageParam {

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

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

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

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

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

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

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

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

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