package com.fzzy.api.entity; import com.bstek.dorado.annotation.PropertyDef; import com.fzzy.api.Constant; import lombok.Data; import javax.persistence.*; import java.io.Serializable; import java.util.List; /** * 数据字典 * * @author Andy */ @Data @Entity @Table(name = "API_TRIGGER") public class ApiTrigger implements Serializable { /** * */ public static final long serialVersionUID = 1L; @Id @Column(name = "ID_",length = 30) public String id; @Column(name = "CODE_", length = 20) @PropertyDef(label = "接口编码") public String code; @Column(name = "PARENT_CODE_", length = 20) @PropertyDef(label = "父编码") public String parentCode = Constant.DEFAULT_CODE; @Column(name = "BIZ_CODE_", length = 20) @PropertyDef(label = "对接系统编码") public String bizCode = Constant.DEFAULT_CODE; @Column(name = "NAME_", length = 30) @PropertyDef(label = "名称") public String name; @Column(name = "DEFAULT_", length = 2) @PropertyDef(label = "是否默认") public String defaultTag = Constant.YN_N; @Column(name = "VAL_", length = 2) @PropertyDef(label = "是否可用") public String val = Constant.YN_N; @Column(name = "REMARK_", length = 100) @PropertyDef(label = "备注说明") public String remark; @Transient public List nodes; public ApiTrigger() { super(); } public ApiTrigger(String code, String name) { super(); this.code = code; this.name = name; } }