package cn.iocoder.byzs.module.system.controller.admin.invitecode.vo;

import cn.iocoder.byzs.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.byzs.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 邀请码分页 Request VO")
@Data
public class InviteCodePageReqVO extends PageParam {

    @Schema(description = "邀请码")
    private String code;

    @Schema(description = "绑定角色")
    private String roleName;

    @Schema(description = "有效期（天）")
    private Integer validTime;

    @Schema(description = "使用时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] useTime;

    @Schema(description = "过期时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] expireTime;

    @Schema(description = "使用用户")
    private String useUserName;

    @Schema(description = "使用用户租户")
    private String useUserTenantName;

    @Schema(description = "状态")
    private String status;

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

    @Schema(description = "租户编号", example = "24563")
    private Long tenantId;

    @Schema(description = "指定手机号")
    private String onlyPhone;

}