Compare commits

..

No commits in common. "3a9b077abeb345fa7bec113f80865b44337f7804" and "e72415754a316769cdf033fd629bbff6ddd99176" have entirely different histories.

4 changed files with 0 additions and 128 deletions

View File

@ -1,32 +0,0 @@
package com.ruoyi.task.api.enums;
public enum CycleTypeEnum {
DAILY("daily", "日周期"),
WEEKLY("weekly", "周周期"),
MONTHLY("monthly", "月周期");
private final String code;
private final String name;
CycleTypeEnum(String code, String name) {
this.code = code;
this.name = name;
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
public static CycleTypeEnum getByCode(String code) {
for (CycleTypeEnum type : values()) {
if (type.code.equals(code)) {
return type;
}
}
return null;
}
}

View File

@ -1,31 +0,0 @@
package com.ruoyi.task.api.enums;
public enum ExecuteTypeEnum {
ONCE("once", "单次执行"),
CONTINUOUS("continuous", "连续执行");
private final String code;
private final String name;
ExecuteTypeEnum(String code, String name) {
this.code = code;
this.name = name;
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
public static ExecuteTypeEnum getByCode(String code) {
for (ExecuteTypeEnum type : values()) {
if (type.code.equals(code)) {
return type;
}
}
return null;
}
}

View File

@ -1,31 +0,0 @@
package com.ruoyi.task.api.enums;
public enum PlanTypeEnum {
TIMED("timed", "定时任务"),
CYCLE("cycle", "周期任务");
private final String code;
private final String name;
PlanTypeEnum(String code, String name) {
this.code = code;
this.name = name;
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
public static PlanTypeEnum getByCode(String code) {
for (PlanTypeEnum type : values()) {
if (type.code.equals(code)) {
return type;
}
}
return null;
}
}

View File

@ -1,34 +0,0 @@
package com.ruoyi.task.api.enums;
public enum StatusEnum {
PENDING("pending", "待执行"),
RUNNING("running", "执行中"),
COMPLETED("completed", "已完成"),
FAILED("failed", "失败"),
CANCELED("canceled", "已取消");
private final String code;
private final String name;
StatusEnum(String code, String name) {
this.code = code;
this.name = name;
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
public static StatusEnum getByCode(String code) {
for (StatusEnum status : values()) {
if (status.code.equals(code)) {
return status;
}
}
return null;
}
}