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());
| }
| }
|
|