REQ-3540: 添加entity
This commit is contained in:
parent
c2451c7625
commit
b37755d923
@ -0,0 +1,15 @@
|
||||
package cn.axzo.nanopart.doc.api.domain;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class FileAttributes {
|
||||
|
||||
private String ossFileKey;
|
||||
|
||||
}
|
||||
@ -13,10 +13,18 @@ public class IndexNodeAttributes {
|
||||
|
||||
private DatabaseAttributes databaseAttributes;
|
||||
|
||||
private FileAttributes fileAttributes;
|
||||
|
||||
public DatabaseAttributes getOrCreateDatabaseAttributes() {
|
||||
if (databaseAttributes == null)
|
||||
databaseAttributes = new DatabaseAttributes();
|
||||
return databaseAttributes;
|
||||
}
|
||||
|
||||
public FileAttributes getOrCreateFileAttributes() {
|
||||
if (fileAttributes == null)
|
||||
fileAttributes = new FileAttributes();
|
||||
return fileAttributes;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,82 @@
|
||||
package cn.axzo.nanopart.doc.api.domain;
|
||||
|
||||
import cn.axzo.nanopart.doc.api.enums.CooperationAccessOption;
|
||||
import cn.axzo.nanopart.doc.api.enums.FileScope;
|
||||
import cn.axzo.nanopart.doc.api.enums.IndexNodeState;
|
||||
import cn.axzo.nanopart.doc.api.enums.IndexNodeType;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class IndexNodeInfo {
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 父节点id
|
||||
*/
|
||||
private Long parentId;
|
||||
|
||||
/**
|
||||
* 系统编码, 文件编码
|
||||
*/
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 业务编码, 空间或文件夹在页面上填的编码
|
||||
*/
|
||||
private String bizCode;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 节点类型. DATABASE: 空间(数据库), DIRECTORY: 目录, FILE: 文件
|
||||
*/
|
||||
private IndexNodeType nodeType;
|
||||
|
||||
/**
|
||||
* 作用范围. NONE: 无, ENT_DATABASE: 企业数据库, PROJECT_DATABASE: 项目数据库, PERSONAL_DATABASE: 个人数据库
|
||||
*/
|
||||
private FileScope scope;
|
||||
|
||||
/**
|
||||
* 作用范围id. 单位数据库存ouId, 项目数据库存workspaceId, 个人数据库存personId
|
||||
*/
|
||||
private Long scopeId;
|
||||
|
||||
/**
|
||||
* 路径, id拼起来, 以斜杠开头和结束. /1/2/3/
|
||||
*/
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 图标
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* 状态. VALID: 有效的, DELETED: 已删除
|
||||
*/
|
||||
private IndexNodeState state;
|
||||
|
||||
/**
|
||||
* 协作企业可见范围. ALL_ORGS_IN_PROJECT: 项目内所有企业可见, ORGS_BY_COOPERATE_TYPES: 指定参建单位可见
|
||||
*/
|
||||
private CooperationAccessOption cooperationAccessOption;
|
||||
|
||||
}
|
||||
@ -1,15 +1,16 @@
|
||||
|
||||
package cn.axzo.nanopart.doc.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
|
||||
|
||||
import cn.axzo.nanopart.doc.api.domain.IndexNodeAttributes;
|
||||
import cn.axzo.nanopart.doc.api.enums.FileScope;
|
||||
import cn.axzo.nanopart.doc.api.enums.IndexNodeContext;
|
||||
import cn.axzo.nanopart.doc.api.enums.IndexNodeState;
|
||||
import cn.axzo.nanopart.doc.api.enums.IndexNodeType;
|
||||
import cn.axzo.nanopart.doc.api.domain.IndexNodeAttributes;
|
||||
import cn.axzo.pokonyan.config.mybatisplus.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user