商城:增加商城首页

This commit is contained in:
owen
2023-10-16 09:51:20 +08:00
parent 1ac2f2b5c2
commit f5dac38ca5
37 changed files with 591 additions and 40 deletions

View File

@ -0,0 +1,49 @@
package cn.iocoder.yudao.module.statistics.enums;
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
/**
* 时间范围类型的枚举
*
* @author owen
*/
@AllArgsConstructor
@Getter
public enum TimeRangeTypeEnum implements IntArrayValuable {
/**
* 天
*/
DAY(1),
/**
* 周
*/
WEEK(7),
/**
* 月
*/
MONTH(30),
/**
* 年
*/
YEAR(365),
;
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(TimeRangeTypeEnum::getType).toArray();
/**
* 状态
*/
private final Integer type;
@Override
public int[] array() {
return ARRAYS;
}
}