更新sql和代码规范修改

This commit is contained in:
moxiangrong
2024-02-18 15:26:45 +08:00
parent 6f5e6e4662
commit c132b68745
1293 changed files with 43935 additions and 18456 deletions

View File

@ -59,7 +59,7 @@ public abstract class AbstractFileClient<Config extends FileClientConfig> implem
* 使用场景local、ftp、db通过 FileController 的 getFile 来获取文件内容
*
* @param domain 自定义域名
* @param path 文件路径
* @param path 文件路径
* @return URL 访问地址
*/
protected String formatFileUrl(String domain, String path) {

View File

@ -18,11 +18,11 @@ public interface FileClient {
* 上传文件
*
* @param content 文件流
* @param path 相对路径
* @param path 相对路径
* @return 完整路径,即 HTTP 访问地址
* @throws Exception 上传文件时,抛出 Exception 异常
*/
String upload(byte[] content, String path, String type) throws Exception;
String upload(byte[] content, String path, String type) throws Exception;
/**
* 删除文件

View File

@ -14,8 +14,8 @@ public interface FileClientFactory {
* 创建文件客户端
*
* @param configId 配置编号
* @param storage 存储器的枚举 {@link co.yixiang.yshop.framework.file.core.enums.FileStorageEnum}
* @param config 文件配置
* @param storage 存储器的枚举 {@link co.yixiang.yshop.framework.file.core.enums.FileStorageEnum}
* @param config 文件配置
*/
<Config extends FileClientConfig> void createOrUpdateFileClient(Long configId, Integer storage, Config config);

View File

@ -11,8 +11,8 @@ public interface DBFileContentFrameworkDAO {
* 插入文件内容
*
* @param configId 配置编号
* @param path 路径
* @param content 内容
* @param path 路径
* @param content 内容
*/
void insert(Long configId, String path, byte[] content);
@ -20,7 +20,7 @@ public interface DBFileContentFrameworkDAO {
* 删除文件内容
*
* @param configId 配置编号
* @param path 路径
* @param path 路径
*/
void delete(Long configId, String path);
@ -28,7 +28,7 @@ public interface DBFileContentFrameworkDAO {
* 获得文件内容
*
* @param configId 配置编号
* @param path 路径
* @param path 路径
* @return 内容
*/
byte[] selectContent(Long configId, String path);

View File

@ -50,7 +50,7 @@ public class FtpFileClientConfig implements FileClientConfig {
private String password;
/**
* 连接模式
*
* <p>
* 使用 {@link cn.hutool.extra.ftp.FtpMode} 对应的字符串
*/
@NotEmpty(message = "连接模式不能为空")