package com.fzzy.api.entity;
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
import com.fzzy.api.Constant;
|
import lombok.Data;
|
import org.hibernate.annotations.GenericGenerator;
|
|
import javax.persistence.*;
|
import java.io.Serializable;
|
|
/**
|
* API-接口列表
|
*
|
* @author Andy
|
*/
|
@Data
|
@Entity
|
@Table(name = "API_LIST")
|
public class ApiList implements Serializable {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GenericGenerator(name = "generator", strategy = "increment")
|
@GeneratedValue(generator = "generator")
|
@Column(name = "ID_")
|
private Integer id;
|
|
@Column(name = "CODE", length = 20)
|
@PropertyDef(label = "接口编码")
|
private String code;
|
|
@Column(name = "NAME", length = 50)
|
@PropertyDef(label = "接口名称")
|
private String name;
|
|
@Column(name = "CATEGORY_", length = 20)
|
@PropertyDef(label = "接口分类")
|
private String category;
|
|
@Column(name = "VERSION_", length = 10)
|
@PropertyDef(label = "接口版本")
|
private String version;
|
|
@Column(name = "URL", length = 100)
|
@PropertyDef(label = "接口地址")
|
private String url;
|
|
@Column(name = "FROM_G_", length = 2)
|
@PropertyDef(label = "数据来源-粮库信息系统")
|
private String fromG = Constant.YN_Y;
|
|
@Column(name = "FROM_P_", length = 2)
|
@PropertyDef(label = "数据来源-省级平台")
|
private String fromP;
|
|
@Column(name = "FROM_C_", length = 2)
|
@PropertyDef(label = "数据来源-中央平台")
|
private String fromC;
|
|
@Column(name = "REMARK_", length = 100)
|
@PropertyDef(label = "备注说明")
|
private String remark;
|
|
@Column(name = "BIZ_TYPE_", length = 20)
|
@PropertyDef(label = "业务类型", description = "GB-国标;JL-军粮")
|
private String bizType = "GB";
|
}
|