mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-04-23 10:58:34 +08:00
add 增加ruoyi-resource资源模块 移除ruoyi-file模块 调整项目结构
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.ruoyi.resource.api;
|
||||
|
||||
import com.ruoyi.resource.api.domain.SysFile;
|
||||
|
||||
/**
|
||||
* 文件服务
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
public interface RemoteFileService {
|
||||
|
||||
/**
|
||||
* 上传文件
|
||||
*
|
||||
* @param file 文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
SysFile upload(String name, String originalFilename, String contentType, byte[] file);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.ruoyi.resource.api.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 文件信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Data
|
||||
public class SysFile implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 文件地址
|
||||
*/
|
||||
private String url;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user