refactor(接口测试): 添加接口执行触发方式常量

This commit is contained in:
AgAngle 2024-02-06 12:48:29 +08:00 committed by Craftsman
parent 01bdeaf03b
commit a47d299de5
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package io.metersphere.sdk.constants;
/**
* 执行任务的触发方式
* @Author: jianxing
* @CreateTime: 2024-02-06 11:54
*/
public enum TaskTriggerMode {
/**
* 定时任务
*/
SCHEDULE,
/**
* 手动执行
*/
MANUAL,
/**
* 接口调用
*/
API,
/**
* 批量执行
*/
BATCH
}

View File

@ -36,6 +36,7 @@ public class TaskRequestDTO implements Serializable {
/**
* 触发方式
* 手动执行批量执行API执行定时任务
* {@link io.metersphere.sdk.constants.TaskTriggerMode}
*/
private String triggerMode;