提交 | 用户 | 时间
|
516ef4
|
1 |
/** |
L |
2 |
* Copyright (c) 2018 人人开源 All rights reserved. |
|
3 |
* |
|
4 |
* https://www.renren.io |
|
5 |
* |
|
6 |
* 版权所有,侵权必究! |
|
7 |
*/ |
|
8 |
|
|
9 |
package com.iailab.module.shasteel.job.dto; |
|
10 |
|
|
11 |
import com.fasterxml.jackson.annotation.JsonProperty; |
|
12 |
import com.iailab.framework.common.validation.group.AddGroup; |
|
13 |
import com.iailab.framework.common.validation.group.DefaultGroup; |
|
14 |
import com.iailab.framework.common.validation.group.UpdateGroup; |
|
15 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
16 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
17 |
import lombok.Data; |
|
18 |
|
|
19 |
import javax.validation.constraints.NotBlank; |
|
20 |
import javax.validation.constraints.NotNull; |
|
21 |
import javax.validation.constraints.Null; |
|
22 |
import java.io.Serializable; |
|
23 |
import java.util.Date; |
|
24 |
|
|
25 |
/** |
|
26 |
* 定时任务 |
|
27 |
* |
|
28 |
* @author Mark sunlightcs@gmail.com |
|
29 |
* @since 1.0.0 |
|
30 |
*/ |
|
31 |
@Data |
|
32 |
@Tag(name = "定时任务") |
|
33 |
public class ScheduleJobDTO implements Serializable { |
|
34 |
private static final long serialVersionUID = 1L; |
|
35 |
|
|
36 |
@Schema(description = "id") |
|
37 |
@Null(message="{id.null}", groups = AddGroup.class) |
|
38 |
@NotNull(message="{id.require}", groups = UpdateGroup.class) |
|
39 |
private Long id; |
|
40 |
|
|
41 |
@Schema(description = "spring bean名称") |
|
42 |
@NotBlank(message = "{schedule.bean.require}", groups = DefaultGroup.class) |
|
43 |
private String beanName; |
|
44 |
|
|
45 |
@Schema(description = "参数") |
|
46 |
private String params; |
|
47 |
|
|
48 |
@Schema(description = "cron表达式") |
|
49 |
@NotBlank(message = "{schedule.cron.require}", groups = DefaultGroup.class) |
|
50 |
private String cronExpression; |
|
51 |
|
|
52 |
@Schema(description = "任务状态 0:暂停 1:正常") |
|
53 |
private Integer status; |
|
54 |
|
|
55 |
@Schema(description = "备注") |
|
56 |
private String remark; |
|
57 |
|
|
58 |
@Schema(description = "创建时间") |
|
59 |
@JsonProperty(access = JsonProperty.Access.READ_ONLY) |
|
60 |
private Date createDate; |
|
61 |
|
|
62 |
} |