package cn.iocoder.yudao.module.pms.controller.admin.iotdevicebom.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
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 = "管理后台 - PMS 设备BOM 关系分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IotDeviceBomPageReqVO extends PageParam {

    @Schema(description = "所属设备分类", example = "29983")
    private Long deviceCategoryId;

    @Schema(description = "所属设备", example = "11465")
    private Long deviceId;

    @Schema(description = "BOM名称", example = "张三")
    private String name;

    @Schema(description = "BOM编码")
    private String code;

    @Schema(description = "父BOM id 顶级为0", example = "25524")
    private Long parentId;

    @Schema(description = "子节点id 逗号分隔")
    private String childIds;

    @Schema(description = "层级")
    private Integer level;

    @Schema(description = "是否叶子节点 0是 1否")
    private Integer leafFlag;

    @Schema(description = "显示顺序")
    private Integer sort;

    @Schema(description = "M维修 S保养 A维修+保养", example = "1")
    private String type;

    @Schema(description = "状态 0启用  1停用", example = "2")
    private Integer status;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "版本")
    private Integer version;

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

}