package com.xindazhou.business.controller.admin.community.ban.vo;

import com.xindazhou.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 com.xindazhou.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 封禁分页 Request VO")
@Data
public class BanPageReqVO extends PageParam {

    @Schema(description = "关键字（用户名/用户ID/原因）", example = "关键字")
    private String keyword;

    @Schema(description = "用户ID", example = "1")
    private Long userId;

    @Schema(description = "用户名，模糊匹配", example = "用户名")
    private String username;

    @Schema(description = "封禁原因，模糊匹配", example = "原因")
    private String banReason;

    @Schema(description = "封禁开始时间开始", example = "2022-07-01 00:00:00")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime banStartTimeStart;

    @Schema(description = "封禁开始时间结束", example = "2022-07-01 23:59:59")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime banStartTimeEnd;

}

