guohongjin
2024-05-15 5b7639f0bd9e056738ec15100ed0532e965c6cd5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package cn.stylefeng.roses.kernel.migration.api.pojo;
 
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;
 
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;
 
/**
 * 数据迁移聚合类
 *
 * @author majianguo
 * @date 2021/7/6 16:10
 */
@Data
public class MigrationAggregationPOJO extends BaseRequest {
 
    /**
     * 应用和模块名称列表
     */
    @NotNull(message = "模块名称不能为空", groups = {export.class, restore.class})
    @ChineseDescription("应用和模块名称列表")
    private List<String> appAndModuleNameList;
 
    /**
     * 数据集
     */
    @NotNull(message = "数据集不能为空", groups = {restore.class})
    @ChineseDescription("数据集")
    private Map<String, MigrationInfo> data;
 
    /**
     * 导出
     */
    public @interface export {
 
    }
 
    /**
     * 恢复
     */
    public @interface restore {
 
    }
}