package com.xindazhou.business.controller.admin.service.feedback.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 FeedbackPageReqVO extends PageParam {

    @Schema(description = "关键字（用户手机号/昵称）", example = "关键字")
    private String keyword;

    @Schema(description = "反馈类型：suggestion-功能建议，problem-问题反馈，other-其他", example = "suggestion")
    private String type;

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

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

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

}

