5 changed files with 84 additions and 66 deletions
@ -1,61 +1,61 @@ |
|||||
package com.ccsens.common.bean.dto; |
package com.ccsens.common.bean.dto; |
||||
|
|
||||
import io.swagger.annotations.ApiModel; |
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
import lombok.Data; |
||||
|
|
||||
import javax.validation.constraints.NotNull; |
import javax.validation.constraints.NotNull; |
||||
|
|
||||
/** |
/** |
||||
* @author 逗 |
* @author 逗 |
||||
*/ |
*/ |
||||
@Data |
@Data |
||||
public class TaskDto { |
public class TaskDto { |
||||
|
|
||||
@Data |
@Data |
||||
@ApiModel("查看永久日常任务") |
@ApiModel("查看永久日常任务") |
||||
public static class QueryPermanentGlobalTask{ |
public static class QueryPermanentGlobalTask{ |
||||
@NotNull(message = "角色id不能为空") |
@NotNull(message = "角色id不能为空") |
||||
@ApiModelProperty("角色id") |
@ApiModelProperty("角色id") |
||||
private Long roleId; |
private Long roleId; |
||||
} |
} |
||||
|
|
||||
@Data |
@Data |
||||
@ApiModel("查看带时间的日常任务") |
@ApiModel("查看带时间的日常任务") |
||||
public static class QueryGlobalTask{ |
public static class QueryGlobalTask{ |
||||
@NotNull(message = "角色id不能为空") |
@NotNull(message = "角色id不能为空") |
||||
@ApiModelProperty("角色id") |
@ApiModelProperty("角色id") |
||||
private Long roleId; |
private Long roleId; |
||||
@ApiModelProperty("时间基准点 默认当前") |
@ApiModelProperty("时间基准点 默认当前") |
||||
private Long timeNode = System.currentTimeMillis(); |
private Long timeNode = System.currentTimeMillis(); |
||||
@ApiModelProperty("时间基准点 默认天") |
@ApiModelProperty("时间基准点 默认天") |
||||
private int timeUnit; |
private int timeUnit = 4; |
||||
} |
} |
||||
|
|
||||
@Data |
@Data |
||||
@ApiModel("查看定期任务") |
@ApiModel("查看定期任务") |
||||
public static class QueryRegularTask{ |
public static class QueryRegularTask{ |
||||
@NotNull(message = "角色id不能为空") |
@NotNull(message = "角色id不能为空") |
||||
@ApiModelProperty("角色id") |
@ApiModelProperty("角色id") |
||||
private Long roleId; |
private Long roleId; |
||||
@ApiModelProperty("时间基准点 默认当前") |
@ApiModelProperty("时间基准点 默认当前") |
||||
private Long timeNode = System.currentTimeMillis(); |
private Long timeNode = System.currentTimeMillis(); |
||||
@ApiModelProperty("时间基准点 默认天") |
@ApiModelProperty("时间基准点 默认天") |
||||
private int timeUnit; |
private int timeUnit = 4; |
||||
@ApiModelProperty("0向上查找 1向下查找(默认) 下查包含自己,上查不包含") |
@ApiModelProperty("0向上查找 1向下查找(默认) 下查包含自己,上查不包含") |
||||
private int queryType = 1; |
private int queryType = 1; |
||||
@ApiModelProperty("查找颗粒度数量 默认3个") |
@ApiModelProperty("查找颗粒度数量 默认3个") |
||||
private int queryNum = 3; |
private int queryNum = 3; |
||||
} |
} |
||||
|
|
||||
@Data |
@Data |
||||
@ApiModel("修改任务状态") |
@ApiModel("修改任务状态") |
||||
public static class UpdateTaskType{ |
public static class UpdateTaskType{ |
||||
@NotNull(message = "任务id不能为空") |
@NotNull(message = "任务id不能为空") |
||||
@ApiModelProperty("任务分解id") |
@ApiModelProperty("任务分解id") |
||||
private Long id; |
private Long id; |
||||
@ApiModelProperty("0开始 1暂停 2继续 3完成 默认0") |
@ApiModelProperty("0开始 1暂停 2继续 3完成 默认0") |
||||
private int type; |
private int type; |
||||
} |
} |
||||
|
|
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue