【解决todo】修改 ai image status

This commit is contained in:
cherishsince 2024-05-29 10:30:40 +08:00
parent 1d53823982
commit ed372cffc7

View File

@ -14,19 +14,16 @@ import lombok.Getter;
@Getter @Getter
public enum AiImageStatusEnum { public enum AiImageStatusEnum {
// TODO @fan改成 10 生成中20 成功30 失败其它可以去掉噢 IN_PROGRESS("10", "进行中"),
SUBMIT("submit", "提交任务"), COMPLETE("20", "完成"),
WAITING("waiting", "等待"), FAIL("30", "失败"),
IN_PROGRESS("in_progress", "进行中"),
COMPLETE("complete", "完成"),
FAIL("fail", "失败"),
; ;
// TODO @fanfinal 一下 // TODO @fanfinal 一下
private String status; private final String status;
private String name; private final String name;
public static AiImageStatusEnum valueOfStatus(String status) { public static AiImageStatusEnum valueOfStatus(String status) {