package com.lz.modules.equipment.entity.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author: djc
 * @Desc:
 * @Date: 2020/7/27 11:03
 */
@Data
@ApiModel(value = "设备变更body", description = "设备变更请求体")
public class ChangeEquipmentModel {

    @ApiModelProperty(value = "设备状态(0：入库（采购或归还）1：售出 2：不可用 3:调拨 4:申领)", name = "state", example = "1", required=true)
    @NotNull(message = "变更状态不能为空")
    private Integer state;

    @ApiModelProperty(value = "设备标识", name = "code", example = "", required=true)
    @NotNull(message = "设备标识不能为空")
    private String code;

    @ApiModelProperty(value = "设备原有标识", name = "originalCode", example = "", required=true)
    private String originalCode;

    @ApiModelProperty(value = "出售金额", name = "saleAmount", example = "1")
    private BigDecimal saleAmount;

    @ApiModelProperty(value = "使用方id", name = "userId", example = "1")
    private Long userId;

    @ApiModelProperty(value = "是否为员工申领", name = "employee", example = "true")
    private boolean employee;

    @ApiModelProperty(value = "备注", name = "mark", example = "1")
    private String mark;

    //品牌id
    @ApiModelProperty(value = "品牌id", name = "brandId")
    private Long brandId;
    //规格型号

    @ApiModelProperty(value = "规格id", name = "specId")
    private Long specId;

    @ApiModelProperty(value = "类型id", name = "typeId")
    private Long typeId;

    @ApiModelProperty(value = "设备本身标识", name = "qr")
    private String qr;

    @ApiModelProperty(value = "设备id", name = "id")
    private Long id;


}
