2026-04-23 0005d49a697ce934c6fc2a61ecb75d881b9a76f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.ruoyi.basic.constant;
 
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
 
public interface ApplicationType {
    String getType();
    /**
     * 验证文件用途是否有效
     *
     * @return true:有效, false:无效
     */
    default Boolean isValid() {
        return !StringUtils.isEmpty(getType());
    }
}