package cn.iocoder.yudao.module.pms.controller.admin.yanfan.protocol.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

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

@Schema(description = "管理后台 - yf协议分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotYfProtocolPageReqVO extends PageParam {

    @Schema(description = "协议编码")
    private String protocolCode;

    @Schema(description = "协议名称", example = "张三")
    private String protocolName;

    @Schema(description = "协议jar包,js包，c程序上传地址", example = "https://www.iocoder.cn")
    private String protocolFileUrl;

    @Schema(description = "协议类型 0:未知 1:jar，2.js,3.c", example = "2")
    private Integer protocolType;

    @Schema(description = "协议文件摘要(文件的md5)")
    private String jarSign;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "0:草稿 1:启用 2:停用", example = "2")
    private Integer protocolStatus;

    @Schema(description = "0:正常 1:删除")
    private Integer delFlag;

    @Schema(description = "部门id", example = "8215")
    private Long deptId;

}
