package com.xindazhou.business.controller.admin.community.report.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 ReportPageReqVO extends PageParam {

    @Schema(description = "关键字（被举报人/处理人）", example = "关键字")
    private String keyword;

    @Schema(description = "被举报人ID", example = "1")
    private Long reportedPersonId;

    @Schema(description = "被举报人，模糊匹配", example = "被举报人")
    private String reportedPerson;

    @Schema(description = "处理人，模糊匹配", example = "处理人")
    private String handler;

    @Schema(description = "分类", example = "untrue_content")
    private String category;

    @Schema(description = "状态：0-未处理，1-已处理", example = "1")
    private Integer status;

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

    @Schema(description = "举报时间结束", example = "2022-07-01 23:59:59")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime reportTimeEnd;

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

    @Schema(description = "处理时间结束", example = "2022-07-01 23:59:59")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime handleTimeEnd;

}

