refactor(接口测试): 添加接口执行触发方式常量
This commit is contained in:
parent
01bdeaf03b
commit
a47d299de5
|
@ -0,0 +1,25 @@
|
|||
package io.metersphere.sdk.constants;
|
||||
|
||||
/**
|
||||
* 执行任务的触发方式
|
||||
* @Author: jianxing
|
||||
* @CreateTime: 2024-02-06 11:54
|
||||
*/
|
||||
public enum TaskTriggerMode {
|
||||
/**
|
||||
* 定时任务
|
||||
*/
|
||||
SCHEDULE,
|
||||
/**
|
||||
* 手动执行
|
||||
*/
|
||||
MANUAL,
|
||||
/**
|
||||
* 接口调用
|
||||
*/
|
||||
API,
|
||||
/**
|
||||
* 批量执行
|
||||
*/
|
||||
BATCH
|
||||
}
|
|
@ -36,6 +36,7 @@ public class TaskRequestDTO implements Serializable {
|
|||
/**
|
||||
* 触发方式
|
||||
* 手动执行,批量执行,API执行,定时任务
|
||||
* {@link io.metersphere.sdk.constants.TaskTriggerMode}
|
||||
*/
|
||||
private String triggerMode;
|
||||
|
||||
|
|
Loading…
Reference in New Issue