package cn.skcks.docking.gb28181.wvp.dto.record;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

@NoArgsConstructor
@Data
public class QueryRecordResp {

    private String channelId;
    private Integer count;
    private String deviceId;
    private String name;
    private List<RecordListDTO> recordList;
    private String sn;
    private Integer sumNum;

    @NoArgsConstructor
    @Data
    public static class RecordListDTO {
        private String deviceId;

        @DateTimeFormat(pattern= DatePattern.NORM_DATETIME_PATTERN)
        @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
        private String endTime;
        private String filePath;
        private String name;
        private Integer secrecy;

        @DateTimeFormat(pattern= DatePattern.NORM_DATETIME_PATTERN)
        @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
        private String startTime;
        private String type;
    }
}
