/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.base.enums;

/**
 * 文件存储常量类
 *
 * @author lingee
 * @date 2023/8/14
 */
public class StorageConstants {

    /**
     * 上传基础目录
     */
    public static final String UPLOAD_PATH = "/data/files/";

    /**
     * 上传文件目录前缀
     */
    public static final String UPLOAD_FILE_PREFIX = "/files/";

    /**
     * 图片类型文件
     */
    public static final String FILE_IMAGE_TYPE = "image";

    /**
     * 文件下载路径
     */
    public static final String FILE_DOWNLOAD_PATH = "/v1/manager/sysFile/download/%s/%s";

    /**
     * 文件预览路径
     */
    public static final String FILE_PREVIEW_PATH = "/v1/manager/sysFile/preview/%s/%s";

    /**
     * 文件下载路径前缀
     */
    public static final String FILE_DOWNLOAD_PATH_PREFIX = "/v1/manager/sysFile/download/";

}
