goupan
2024-04-03 5506e9a45e717ffcb67ec313b5a4e8206d9b3a39
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package cn.stylefeng.roses.kernel.expand.modular.modular.pojo.request;
 
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.validator.api.validators.status.StatusValue;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
 
/**
 * 业务拓展封装类
 *
 * @author fengshuonan
 * @date 2022/03/29 23:47
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SysExpandRequest extends BaseRequest {
 
    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = {edit.class, delete.class, updateStatus.class})
    @ChineseDescription("主键id")
    private Long expandId;
 
    /**
     * 拓展业务名称
     */
    @ChineseDescription("拓展业务名称")
    private String expandName;
 
    /**
     * 拓展业务唯一编码
     */
    @ChineseDescription("拓展业务唯一编码")
    @NotBlank(message = "拓展编码不能为空", groups = getByExpandCode.class)
    private String expandCode;
 
    /**
     * 状态:1-启用,2-禁用
     */
    @ChineseDescription("状态:1-启用,2-禁用")
    @NotNull(message = "状态不能为空", groups = {updateStatus.class})
    @StatusValue(groups = updateStatus.class)
    private Integer expandStatus;
 
    /**
     * 主业务表,例如:sys_user
     */
    @ChineseDescription("主业务表,例如:sys_user")
    private String primaryTableName;
 
    /**
     * 业务主键id字段名,例如:user_id
     */
    @ChineseDescription("业务主键id字段名,例如:user_id")
    private String primaryFieldName;
 
    /**
     * 业务主键id字段名驼峰法,例如:userId
     */
    @ChineseDescription("业务主键id字段名驼峰法,例如:userId")
    private String primaryFieldCamel;
 
    /**
     * 业务主键id的值
     */
    @ChineseDescription("业务主键id的值")
    private Long primaryFieldValue;
 
    /**
     * 获取业务元数据信息
     *
     * @author fengshuonan
     * @date 2022/3/31 15:25
     */
    public @interface getByExpandCode {
    }
 
 
}