package com.qmth.sop.business.entity;

import java.io.Serializable;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qmth.sop.common.base.BaseEntity;
import com.qmth.sop.common.contant.SystemConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 设备品牌型号表 模型.
 * 
 * @author: shudonghui
 * @date: 2023-08-25 10:29:08
 * @version: 1.0
 * @email: shudonghui@qmth.com.cn
 * @Company: www.qmth.com.cn
 */
@ApiModel(value = "sys_device_model对象", description = "设备品牌型号表")
public class SysDeviceModel extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;
  	@ApiModelProperty(value = "品牌ID")
	@JsonSerialize(using = ToStringSerializer.class)
	@NotNull(message = "品牌ID不能为空")
  	private long brandId;

  	@ApiModelProperty(value = "型号")
	@NotBlank(message = "型号不能为空")
  	private String model;

	/**
	 * 品牌ID
	 */	
  	public void setBrandId(long brandId) {
		this.brandId = brandId;
  	}
 	/**
	 * 品牌ID
	 */	 	
  	public long getBrandId() {
		return brandId;
  	}
	/**
	 * 型号
	 */	
  	public void setModel(String model) {
		this.model = model;
  	}
 	/**
	 * 型号
	 */	 	
  	public String getModel() {
		return model;
  	}
}