mirror of
https://github.com/cool-team-official/cool-admin-java.git
synced 2026-10-07 15:11:23 +08:00
release v7.1
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
package com.cool.modules.plugin.entity;
|
||||
|
||||
import com.cool.core.base.BaseEntity;
|
||||
import com.cool.core.config.PluginJson;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.handler.Fastjson2TypeHandler;
|
||||
import com.tangzc.autotable.annotation.Ignore;
|
||||
import com.tangzc.autotable.annotation.Index;
|
||||
import com.tangzc.mybatisflex.autotable.annotation.ColumnDefine;
|
||||
import com.tangzc.mybatisflex.autotable.annotation.UniIndex;
|
||||
import java.util.Map;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(value = "plugin_info", comment = "插件信息")
|
||||
public class PluginInfoEntity extends BaseEntity<PluginInfoEntity> {
|
||||
|
||||
@ColumnDefine(comment = "名称")
|
||||
private String name;
|
||||
|
||||
@ColumnDefine(comment = "简介")
|
||||
private String description;
|
||||
|
||||
@UniIndex
|
||||
@ColumnDefine(comment = "实例对象")
|
||||
private String key;
|
||||
|
||||
@Index
|
||||
@ColumnDefine(comment = "Hook", length = 50)
|
||||
private String hook;
|
||||
|
||||
@ColumnDefine(comment = "描述", type = "text")
|
||||
private String readme;
|
||||
|
||||
@ColumnDefine(comment = "版本")
|
||||
private String version;
|
||||
|
||||
@ColumnDefine(comment = "Logo(base64)", type = "text", notNull = true)
|
||||
private String logo;
|
||||
|
||||
@ColumnDefine(comment = "作者")
|
||||
private String author;
|
||||
|
||||
@ColumnDefine(comment = "状态 0-禁用 1-启用", defaultValue = "1")
|
||||
private Integer status;
|
||||
|
||||
@ColumnDefine(comment = "插件的plugin.json", type = "json", notNull = true)
|
||||
@Column(typeHandler = Fastjson2TypeHandler.class)
|
||||
private PluginJson pluginJson;
|
||||
|
||||
@ColumnDefine(comment = "jar二进制文件", type = "longblob", notNull = true)
|
||||
private byte[] jarFile;
|
||||
|
||||
@ColumnDefine(comment = "配置", type = "json")
|
||||
@Column(typeHandler = Fastjson2TypeHandler.class)
|
||||
private Map<String, Object> config;
|
||||
|
||||
@Ignore
|
||||
@Column(ignore = true)
|
||||
public String keyName;
|
||||
|
||||
public String getKeyName() {
|
||||
return key;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user