文件记录-状态修改
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,99 @@
|
||||
package com.zt.plat.module.qms.resource.record.controller.admin.onlyOffice.controller.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Schema(description = "管理后台 - OnlyOffice 编辑器配置 Response VO")
|
||||
@Data
|
||||
public class OnlyOfficeEditorConfigRespVO {
|
||||
|
||||
@Schema(description = "文档类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "text")
|
||||
private String documentType;
|
||||
|
||||
@Schema(description = "文档配置", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private DocumentConfig document;
|
||||
|
||||
@Schema(description = "编辑器配置", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private EditorConfig editorConfig;
|
||||
|
||||
@Schema(description = "文档高度", requiredMode = Schema.RequiredMode.REQUIRED, example = "100%")
|
||||
private String height;
|
||||
|
||||
@Schema(description = "令牌", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String token;
|
||||
|
||||
@Schema(description = "OnlyOffice服务器地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "http://localhost:8085")
|
||||
private String documentServerUrl;
|
||||
|
||||
@Schema(description = "文档配置")
|
||||
@Data
|
||||
public static class DocumentConfig {
|
||||
@Schema(description = "文件类型", example = "docx")
|
||||
private String fileType;
|
||||
|
||||
@Schema(description = "文档key", example = "doc123")
|
||||
private String key;
|
||||
|
||||
@Schema(description = "文档标题", example = "技术文档")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "文档地址")
|
||||
private String url;
|
||||
|
||||
@Schema(description = "权限配置")
|
||||
private Permissions permissions;
|
||||
}
|
||||
|
||||
@Schema(description = "权限配置")
|
||||
@Data
|
||||
public static class Permissions {
|
||||
@Schema(description = "是否可编辑", example = "true")
|
||||
private Boolean edit;
|
||||
|
||||
@Schema(description = "是否可下载", example = "true")
|
||||
private Boolean download;
|
||||
|
||||
@Schema(description = "是否可打印", example = "true")
|
||||
private Boolean print;
|
||||
}
|
||||
|
||||
@Schema(description = "编辑器配置")
|
||||
@Data
|
||||
public static class EditorConfig {
|
||||
@Schema(description = "回调地址")
|
||||
private String callbackUrl;
|
||||
|
||||
@Schema(description = "语言", example = "zh-CN")
|
||||
private String lang;
|
||||
|
||||
@Schema(description = "模式", example = "edit")
|
||||
private String mode;
|
||||
|
||||
@Schema(description = "用户配置")
|
||||
private User user;
|
||||
|
||||
@Schema(description = "协作配置")
|
||||
private CoEditing coEditing;
|
||||
}
|
||||
|
||||
@Schema(description = "用户配置")
|
||||
@Data
|
||||
public static class User {
|
||||
@Schema(description = "用户ID", example = "1")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "用户名", example = "admin")
|
||||
private String name;
|
||||
}
|
||||
|
||||
@Schema(description = "协作配置")
|
||||
@Data
|
||||
public static class CoEditing {
|
||||
@Schema(description = "协作模式", example = "fast")
|
||||
private String mode;
|
||||
|
||||
@Schema(description = "是否允许更改", example = "true")
|
||||
private Boolean change;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.zt.plat.module.qms.resource.record.controller.admin.onlyOffice.controller.vo;
|
||||
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
|
||||
import lombok.*;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class OnlyOfficeFileDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* 文档编号
|
||||
*/
|
||||
private Long id;
|
||||
/**
|
||||
* 文档标题
|
||||
*/
|
||||
private String title;
|
||||
/**
|
||||
* 文件编号
|
||||
*/
|
||||
private Long fileId;
|
||||
/**
|
||||
* 文件类型
|
||||
*
|
||||
* 枚举 {@link com.zt.plat.module.infra.enums.doc.DocFileTypeEnum}
|
||||
*/
|
||||
private String fileType;
|
||||
/**
|
||||
* 空间类型
|
||||
*
|
||||
* 枚举 {@link com.zt.plat.module.infra.enums.doc.DocSpaceTypeEnum}
|
||||
*/
|
||||
private Integer spaceType;
|
||||
/**
|
||||
* 文档描述
|
||||
*/
|
||||
private String description;
|
||||
/**
|
||||
* 最新版本编号
|
||||
*/
|
||||
private Long latestVersionId;
|
||||
/**
|
||||
* 所有者用户编号
|
||||
*/
|
||||
private Long ownerUserId;
|
||||
/**
|
||||
* 状态
|
||||
*
|
||||
* 枚举 {@link com.zt.plat.framework.common.enums.CommonStatusEnum}
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.zt.plat.module.qms.resource.record.controller.admin.onlyOffice.service;
|
||||
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.onlyOffice.controller.vo.OnlyOfficeEditorConfigRespVO;
|
||||
|
||||
public interface OnlyOfficeService {
|
||||
|
||||
OnlyOfficeEditorConfigRespVO getEditorConfig(Long id);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -132,6 +132,8 @@ public class RecordApplyRespVO {
|
||||
@Schema(description = "明细列表")
|
||||
private List<RecordApplyDetailRespVO> detailList;
|
||||
|
||||
private List<RecordApplyRespVO> assignList;
|
||||
|
||||
|
||||
// ===============临时字段=================》
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.zt.plat.module.qms.resource.record.controller.admin.recordapplydetail.vo;
|
||||
|
||||
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@@ -19,6 +21,12 @@ public class RecordApplyDetailJoinVO {
|
||||
private String businessStatus;
|
||||
private String businessType;
|
||||
private String flowInstanceId;
|
||||
private String formData;
|
||||
private String applyContent;
|
||||
private String changeBefore;
|
||||
private String changeAfter;
|
||||
|
||||
// private String permanently;
|
||||
|
||||
// RecordApplyDetailDO 字段
|
||||
private Long detailId;
|
||||
@@ -29,4 +37,9 @@ public class RecordApplyDetailJoinVO {
|
||||
private String sortNo;
|
||||
private String systemDepartmentCode;
|
||||
private String remark;
|
||||
private Long id;
|
||||
private String targetType;
|
||||
private String targetName;
|
||||
private Long targetId;
|
||||
private String detailFormData;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,9 @@ public class RecordApplyDetailPageReqVO extends PageParam {
|
||||
@Schema(description = "授权Id")
|
||||
private Long targetId;
|
||||
|
||||
@Schema(description = "授权名称")
|
||||
private String targetName;
|
||||
|
||||
@Schema(description = "是否需要更改")
|
||||
@Dict(dicCode = "yes_or_no")
|
||||
private Integer isModify;
|
||||
|
||||
@@ -30,6 +30,9 @@ public class RecordApplyDetailRespVO {
|
||||
@ExcelProperty("授权类型")
|
||||
private String TargetType;
|
||||
|
||||
@Schema(description = "授权名称")
|
||||
private String targetName;
|
||||
|
||||
@Schema(description = "文件id", example = "3188")
|
||||
@ExcelProperty("文件id")
|
||||
private Long documentId;
|
||||
|
||||
@@ -19,7 +19,10 @@ public class RecordApplyDetailSaveReqVO {
|
||||
private Long applyId;
|
||||
|
||||
@Schema(description = "授权类型")
|
||||
private String TargetType;
|
||||
private String targetType;
|
||||
|
||||
@Schema(description = "授权名称")
|
||||
private String targetName;
|
||||
|
||||
@Schema(description = "文件id", example = "3188")
|
||||
private Long documentId;
|
||||
@@ -54,4 +57,8 @@ public class RecordApplyDetailSaveReqVO {
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
//================================
|
||||
@Schema(description = "分发号")
|
||||
private String assignCode;
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user