Browse Source
- 实现基于EasyPOI的Excel导入解析逻辑 - 添加文件上传接口支持批量导入应用参数 - 集成数据校验和默认值设置机制- 添加权限控制和事务管理确保数据一致性- 提供导入成功/失败的结果反馈机制dev3
2 changed files with 99 additions and 0 deletions
@ -0,0 +1,56 @@ |
|||||
|
package com.gxwebsoft.cms.param; |
||||
|
|
||||
|
import cn.afterturn.easypoi.excel.annotation.Excel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 应用参数导入参数 |
||||
|
* |
||||
|
* @author 科技小王子 |
||||
|
* @since 2024-09-10 20:36:14 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CmsWebsiteFieldImportParam implements Serializable { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@Excel(name = "自增ID") |
||||
|
private Integer id; |
||||
|
|
||||
|
@Excel(name = "类型,0文本 1图片 2其他") |
||||
|
private Integer type; |
||||
|
|
||||
|
@Excel(name = "名称") |
||||
|
private String name; |
||||
|
|
||||
|
@Excel(name = "默认值") |
||||
|
private String defaultValue; |
||||
|
|
||||
|
@Excel(name = "可修改的值 [on|off]") |
||||
|
private String modifyRange; |
||||
|
|
||||
|
@Excel(name = "备注") |
||||
|
private String comments; |
||||
|
|
||||
|
@Excel(name = "css样式") |
||||
|
private String style; |
||||
|
|
||||
|
@Excel(name = "值") |
||||
|
private String value; |
||||
|
|
||||
|
@Excel(name = "国际化语言") |
||||
|
private String lang; |
||||
|
|
||||
|
@Excel(name = "是否加密") |
||||
|
private Boolean encrypted; |
||||
|
|
||||
|
@Excel(name = "商户ID") |
||||
|
private Long merchantId; |
||||
|
|
||||
|
@Excel(name = "排序") |
||||
|
private Integer sortNumber; |
||||
|
|
||||
|
@Excel(name = "租户ID") |
||||
|
private Integer tenantId; |
||||
|
} |
Loading…
Reference in new issue