最新onlyoffice后端
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
package com.oo.onlyoffice.dto;
|
||||
|
||||
import com.oo.onlyoffice.dto.document.DocumentInfo;
|
||||
import com.oo.onlyoffice.dto.document.DocumentPermission;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* file文档部分
|
||||
*/
|
||||
@Data
|
||||
@Builder(toBuilder = true)
|
||||
public class DocumentConfig implements Serializable {
|
||||
/**
|
||||
* 文件类型 如 docx
|
||||
* 只需要文件的扩展名
|
||||
*/
|
||||
private String fileType;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 文件访问的url
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 定义用于服务的文档识别的唯一文档标识符。在发送已知密钥的情况下,文档将从高速缓存中取出。
|
||||
* 每次编辑和保存文档时,必须重新生成密钥。
|
||||
* 文档url可以用作键,但是没有特殊字符,长度限制为20个符号。
|
||||
*/
|
||||
private String key;
|
||||
|
||||
/**
|
||||
* 文件作者信息
|
||||
*/
|
||||
private DocumentInfo info;
|
||||
|
||||
/**
|
||||
* 权限
|
||||
*/
|
||||
private DocumentPermission permissions;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user