Commit ed372cffc789a3fa5961f4deaa1bc2fee703f599
1 parent
1d538239
【解决todo】修改 ai image status
Showing
1 changed file
with
5 additions
and
8 deletions
yudao-module-ai/yudao-module-ai-api/src/main/java/cn/iocoder/yudao/module/ai/enums/AiImageStatusEnum.java
| ... | ... | @@ -14,19 +14,16 @@ import lombok.Getter; |
| 14 | 14 | @Getter |
| 15 | 15 | public enum AiImageStatusEnum { |
| 16 | 16 | |
| 17 | - // TODO @fan:改成 10 生成中;20 成功;30 失败;其它可以去掉噢 | |
| 18 | - SUBMIT("submit", "提交任务"), | |
| 19 | - WAITING("waiting", "等待"), | |
| 20 | - IN_PROGRESS("in_progress", "进行中"), | |
| 21 | - COMPLETE("complete", "完成"), | |
| 22 | - FAIL("fail", "失败"), | |
| 17 | + IN_PROGRESS("10", "进行中"), | |
| 18 | + COMPLETE("20", "完成"), | |
| 19 | + FAIL("30", "失败"), | |
| 23 | 20 | |
| 24 | 21 | ; |
| 25 | 22 | |
| 26 | 23 | // TODO @fan:final 一下 |
| 27 | - private String status; | |
| 24 | + private final String status; | |
| 28 | 25 | |
| 29 | - private String name; | |
| 26 | + private final String name; | |
| 30 | 27 | |
| 31 | 28 | |
| 32 | 29 | public static AiImageStatusEnum valueOfStatus(String status) { | ... | ... |