mirror of
https://gitee.com/EMF/solon-manager.git
synced 2025-12-06 16:58:28 +08:00
mod: 添加auto-table 表备注
This commit is contained in:
parent
07761d207a
commit
ced523116f
32
pom.xml
32
pom.xml
@ -37,16 +37,36 @@
|
||||
<artifactId>solon-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara.autotable</groupId>
|
||||
<artifactId>auto-table</artifactId>
|
||||
<version>2.3.1</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara.autotable</groupId>
|
||||
<artifactId>auto-table-solon-plugin</artifactId>
|
||||
<version>2.3.1</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara.autotable</groupId>
|
||||
<artifactId>auto-table-annotation</artifactId>
|
||||
<version>2.3.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.dromara.autotable</groupId>
|
||||
<artifactId>auto-table-core</artifactId>
|
||||
<version>2.3.1</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
|
||||
@ -83,6 +103,8 @@
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.18.34</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
package vip.fuck.sm.common.exception;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import vip.fuck.sm.common.exception.code.BaseResponseCode;
|
||||
import vip.fuck.sm.common.exception.code.ResponseCodeInterface;
|
||||
|
||||
@ -11,6 +12,7 @@ import vip.fuck.sm.common.exception.code.ResponseCodeInterface;
|
||||
* @version V1.0
|
||||
* @date 2020年3月18日
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class BusinessException extends RuntimeException {
|
||||
/**
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
package vip.fuck.sm.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* 代码生成 列属性
|
||||
@ -46,59 +48,4 @@ public class ColumnEntity {
|
||||
*/
|
||||
private String extra;
|
||||
|
||||
public String getColumnName() {
|
||||
return columnName;
|
||||
}
|
||||
|
||||
public void setColumnName(String columnName) {
|
||||
this.columnName = columnName;
|
||||
}
|
||||
|
||||
public String getDataType() {
|
||||
return dataType;
|
||||
}
|
||||
|
||||
public void setDataType(String dataType) {
|
||||
this.dataType = dataType;
|
||||
}
|
||||
|
||||
public String getComments() {
|
||||
return comments;
|
||||
}
|
||||
|
||||
public void setComments(String comments) {
|
||||
this.comments = comments;
|
||||
}
|
||||
|
||||
public String getAttrname() {
|
||||
return attrname;
|
||||
}
|
||||
|
||||
public void setAttrname(String attrname) {
|
||||
this.attrname = attrname;
|
||||
}
|
||||
|
||||
public String getAttrName() {
|
||||
return attrName;
|
||||
}
|
||||
|
||||
public void setAttrName(String attrName) {
|
||||
this.attrName = attrName;
|
||||
}
|
||||
|
||||
public String getAttrType() {
|
||||
return attrType;
|
||||
}
|
||||
|
||||
public void setAttrType(String attrType) {
|
||||
this.attrType = attrType;
|
||||
}
|
||||
|
||||
public String getExtra() {
|
||||
return extra;
|
||||
}
|
||||
|
||||
public void setExtra(String extra) {
|
||||
this.extra = extra;
|
||||
}
|
||||
}
|
||||
|
||||
@ -19,7 +19,7 @@ import java.util.Date;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("sys_content")
|
||||
@AutoTable("sys_content")
|
||||
@AutoTable(value = "sys_content",comment = "内容管理")
|
||||
public class SysContentEntity extends BasePageEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ import java.util.Date;
|
||||
*/
|
||||
@Data
|
||||
@TableName("sys_dept")
|
||||
@AutoTable("sys_dept")
|
||||
@AutoTable(value = "sys_dept",comment = "部门")
|
||||
public class SysDept implements Serializable {
|
||||
@TableId(type = IdType.AUTO)
|
||||
@PrimaryKey(autoIncrement = true)
|
||||
|
||||
@ -20,7 +20,7 @@ import java.util.Date;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("sys_dict_detail")
|
||||
@AutoTable("sys_dict_detail")
|
||||
@AutoTable(value = "sys_dict_detail",comment = "字典明细")
|
||||
public class SysDictDetailEntity extends BasePageEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ import java.util.Date;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("sys_dict")
|
||||
@AutoTable("sys_dict")
|
||||
@AutoTable(value = "sys_dict",comment = "字典管理")
|
||||
public class SysDictEntity extends BasePageEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ import java.util.Date;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("sys_files")
|
||||
@AutoTable("sys_files")
|
||||
@AutoTable(value = "sys_files",comment = "文件上传")
|
||||
public class SysFilesEntity extends BasePageEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ import java.util.Date;
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("sys_generator")
|
||||
@AutoTable("sys_generator")
|
||||
@AutoTable(value = "sys_generator",comment = "代码生成")
|
||||
public class SysGenerator extends BasePageEntity implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ -20,7 +20,7 @@ import java.util.Date;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("sys_log")
|
||||
@AutoTable("sys_log")
|
||||
@AutoTable(value = "sys_log",comment = "操作日志")
|
||||
public class SysLog extends BasePageEntity implements Serializable {
|
||||
@TableId(type = IdType.AUTO)
|
||||
@PrimaryKey(autoIncrement = true)
|
||||
|
||||
@ -21,7 +21,7 @@ import java.util.Date;
|
||||
*/
|
||||
@Data
|
||||
@TableName("sys_permission")
|
||||
@AutoTable("sys_permission")
|
||||
@AutoTable(value = "sys_permission",comment = "权限菜单")
|
||||
public class SysPermission implements Serializable {
|
||||
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
package vip.fuck.sm.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.dromara.autotable.annotation.AutoTable;
|
||||
import org.dromara.autotable.annotation.PrimaryKey;
|
||||
import vip.fuck.sm.entity.BasePageEntity;
|
||||
@ -17,9 +18,10 @@ import lombok.Data;
|
||||
* @email xian.zi.ming@qq.com
|
||||
* @date 2025-03-22 20:59:06
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("sys_plugs")
|
||||
@AutoTable("sys_plugs")
|
||||
@AutoTable(value = "sys_plugs",comment = "系统插件")
|
||||
public class SysPlugsEntity extends BasePageEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ import java.util.List;
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TableName("sys_role")
|
||||
@AutoTable("sys_role")
|
||||
@AutoTable(value = "sys_role",comment = "角色")
|
||||
public class SysRole extends BasePageEntity implements Serializable {
|
||||
@TableId(type = IdType.AUTO)
|
||||
@PrimaryKey(autoIncrement = true)
|
||||
|
||||
@ -19,7 +19,7 @@ import java.util.Date;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("sys_role_dept")
|
||||
@AutoTable("sys_role_dept")
|
||||
@AutoTable(value = "sys_role_dept",comment = "角色部门")
|
||||
public class SysRoleDeptEntity extends BasePageEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ import java.util.Date;
|
||||
*/
|
||||
@Data
|
||||
@TableName("sys_role_permission")
|
||||
@AutoTable("sys_role_permission")
|
||||
@AutoTable(value = "sys_role_permission",comment = "角色权限")
|
||||
public class SysRolePermission implements Serializable {
|
||||
@TableId(type = IdType.AUTO)
|
||||
@PrimaryKey(autoIncrement = true)
|
||||
|
||||
@ -23,7 +23,7 @@ import java.util.List;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("sys_user")
|
||||
@AutoTable("sys_user")
|
||||
@AutoTable(value = "sys_user",comment = "系统用户")
|
||||
public class SysUser extends BasePageEntity implements Serializable {
|
||||
@TableId(type = IdType.AUTO)
|
||||
@PrimaryKey(autoIncrement = true)
|
||||
|
||||
@ -17,7 +17,7 @@ import java.util.Date;
|
||||
*/
|
||||
@Data
|
||||
@TableName("sys_user_role")
|
||||
@AutoTable("sys_user_role")
|
||||
@AutoTable(value = "sys_user_role",comment = "用户角色")
|
||||
public class SysUserRole implements Serializable {
|
||||
@TableId(type = IdType.AUTO)
|
||||
@PrimaryKey(autoIncrement = true)
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
package vip.fuck.sm.entity;
|
||||
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -9,6 +14,8 @@ import java.util.List;
|
||||
* @version V1.0
|
||||
* @date 2020年3月18日
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class TableEntity {
|
||||
//表的名称
|
||||
private String tableName;
|
||||
@ -27,67 +34,4 @@ public class TableEntity {
|
||||
//类名(都小写),如:sys_user => sysuser
|
||||
private String classNameLower;
|
||||
|
||||
public List<ColumnEntity> getHtmlColumns() {
|
||||
return htmlColumns;
|
||||
}
|
||||
|
||||
public void setHtmlColumns(List<ColumnEntity> htmlColumns) {
|
||||
this.htmlColumns = htmlColumns;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
public String getComments() {
|
||||
return comments;
|
||||
}
|
||||
|
||||
public void setComments(String comments) {
|
||||
this.comments = comments;
|
||||
}
|
||||
|
||||
public ColumnEntity getPk() {
|
||||
return pk;
|
||||
}
|
||||
|
||||
public void setPk(ColumnEntity pk) {
|
||||
this.pk = pk;
|
||||
}
|
||||
|
||||
public List<ColumnEntity> getColumns() {
|
||||
return columns;
|
||||
}
|
||||
|
||||
public void setColumns(List<ColumnEntity> columns) {
|
||||
this.columns = columns;
|
||||
}
|
||||
|
||||
public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
|
||||
public void setClassName(String className) {
|
||||
this.className = className;
|
||||
}
|
||||
|
||||
public String getClassname() {
|
||||
return classname;
|
||||
}
|
||||
|
||||
public void setClassname(String classname) {
|
||||
this.classname = classname;
|
||||
}
|
||||
|
||||
public String getClassNameLower() {
|
||||
return classNameLower;
|
||||
}
|
||||
|
||||
public void setClassNameLower(String classNameLower) {
|
||||
this.classNameLower = classNameLower;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user