package cn.iocoder.yudao.module.server.controller.admin.policycommunications.vo.analysis;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

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

@Schema(description = "管理后台 - 政策沟通交流统计分析查询 Request VO")
@Data
public class PolicyCommunicationsAnalysisQueryReqVO {
    
    @Schema(description = "开始时间", required = true)
//    @NotNull(message = "开始时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
//    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDateTime startTime;
    
    @Schema(description = "结束时间", required = true)
//    @NotNull(message = "结束时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
//    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDateTime endTime;
    
    @Schema(description = "部门ID列表")
    private Long departmentId;
    
    @Schema(description = "政策标题")
    private String policyTitle;
    
    @Schema(description = "政策文号")
    private String policyCode;
    
    @Schema(description = "沟通类型")
    private String submitType;
    
    @Schema(description = "时间粒度：day-日，week-周，month-月")
    private String granularity = "day";
}