1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| package com.iailab.module.ai.enums.music;
|
| import com.iailab.framework.common.core.ArrayValuable;
| import lombok.AllArgsConstructor;
| import lombok.Getter;
|
| import java.util.Arrays;
|
| /**
| * AI 音乐状态的枚举
| *
| * @author xiaoxin
| */
| @AllArgsConstructor
| @Getter
| public enum AiMusicStatusEnum implements ArrayValuable<Integer> {
|
| IN_PROGRESS(10, "进行中"),
| SUCCESS(20, "已完成"),
| FAIL(30, "已失败");
|
| /**
| * 状态
| */
| private final Integer status;
|
| /**
| * 状态名
| */
| private final String name;
|
| public static final Integer[] ARRAYS = Arrays.stream(values()).map(AiMusicStatusEnum::getStatus).toArray(Integer[]::new);
|
| @Override
| public Integer[] array() {
| return ARRAYS;
| }
|
| }
|
|