parent
b512a23465
commit
2a52f61e01
@ -1,25 +0,0 @@
|
|||||||
package cn.iocoder.yudao.module.infra.controller.admin.file.vo.config;
|
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.ToString;
|
|
||||||
|
|
||||||
import javax.validation.constraints.NotNull;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 文件配置更新 Request VO")
|
|
||||||
@Data
|
|
||||||
@EqualsAndHashCode(callSuper = true)
|
|
||||||
@ToString(callSuper = true)
|
|
||||||
public class FileConfigUpdateReqVO extends FileConfigBaseVO {
|
|
||||||
|
|
||||||
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
|
||||||
@NotNull(message = "编号不能为空")
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
@Schema(description = "存储配置,配置是动态参数,所以使用 Map 接收", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
||||||
@NotNull(message = "存储配置不能为空")
|
|
||||||
private Map<String, Object> config;
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
package cn.iocoder.yudao.module.infra.convert.file;
|
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
||||||
import cn.iocoder.yudao.module.infra.controller.admin.file.vo.file.FileRespVO;
|
|
||||||
import cn.iocoder.yudao.module.infra.dal.dataobject.file.FileDO;
|
|
||||||
import org.mapstruct.Mapper;
|
|
||||||
import org.mapstruct.factory.Mappers;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface FileConvert {
|
|
||||||
|
|
||||||
FileConvert INSTANCE = Mappers.getMapper(FileConvert.class);
|
|
||||||
|
|
||||||
FileRespVO convert(FileDO bean);
|
|
||||||
|
|
||||||
PageResult<FileRespVO> convertPage(PageResult<FileDO> page);
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in new issue