Newer
Older
huludao / src / main / java / com / newfiber / api / pc / model / entity / ProEquipInfoEntity.java
package com.newfiber.api.pc.model.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author : zhangjun
 * @Project_name:newfiber_haimian_cihu
 * @date:2020/4/24 9:01
 * @email:505724729@qq.com
 * @description:设备基础表
 * @Exception: throw {todo}
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("pro_equip_info")
public class ProEquipInfoEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键")
    @JsonSerialize(using= ToStringSerializer.class)
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 设备编号 */
    @ApiModelProperty(value = "设备编号")
    private String equipNo;
    /** 设备描述 */
    @ApiModelProperty(value = "设备描述")
    private String equipDesc;
    /** 设备厂家 */
    @ApiModelProperty(value = "设备厂家")
    private String equipFactory;
    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}