| | |
| | | import com.qianwen.smartman.modules.visual.dto.DynamicCountDateAggregateDTO; |
| | | import com.qianwen.smartman.modules.visual.wrapper.VisualCountPulseWrapper; |
| | | |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/visual/vo/VisualUsagePolicyEnum.class */ |
| | | public enum VisualUsagePolicyEnum { |
| | | HOUR("近n小时统计", VisualCountPulseWrapper::visualCountDataByHour), |
| | | DAY("近n天统计", VisualCountPulseWrapper::visualCountDataByDay), |
| | |
| | | private String label; |
| | | private final Function<DynamicCountDateAggregateDTO, ChartSeriesDataVO> policy; |
| | | |
| | | VisualUsagePolicyEnum(String label, Function<DynamicCountDateAggregateDTO, ChartSeriesDataVO> policy) { |
| | | this.label = label; |
| | | this.policy = policy; |
| | | } |
| | | /* |
| | | VisualUsagePolicyEnum(String label, Function policy) { |
| | | this.label = label; |
| | | this.policy = policy; |
| | | } |
| | | }*/ |
| | | |
| | | public ChartSeriesDataVO wrapper(DynamicCountDateAggregateDTO aggregateDataDTO) { |
| | | return this.policy.apply(aggregateDataDTO); |