package com.weavi.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

@Entity
@Data
public class Interface {
    //接口编号
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
    //接口名称
    private String interfaceName;
    //接口创建日期
    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private Date createTime;
    //接口描述
    private String description;
}
