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

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

import java.time.LocalDate;

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


@Schema(description = "管理后台 - token 配置分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
public class TokenConfigPageReqVO extends PageParam {


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


    @Schema(description = "token值")
    private String appToken;


    @Schema(description = "时间范围", example = "[2022-07-01 ,2022-07-01]")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] timeType;


}
