提交 | 用户 | 时间
|
722af2
|
1 |
package com.dl.demo.domain.bo; |
X |
2 |
|
|
3 |
import com.dl.common.core.domain.BaseEntity; |
|
4 |
import com.dl.common.core.validate.AddGroup; |
|
5 |
import com.dl.common.core.validate.EditGroup; |
|
6 |
import lombok.Data; |
|
7 |
import lombok.EqualsAndHashCode; |
|
8 |
|
|
9 |
import javax.validation.constraints.NotBlank; |
|
10 |
import javax.validation.constraints.NotNull; |
|
11 |
|
|
12 |
/** |
|
13 |
* 测试单表业务对象 test_demo |
|
14 |
* |
|
15 |
* @author Lion Li |
|
16 |
* @date 2021-07-26 |
|
17 |
*/ |
|
18 |
|
|
19 |
@Data |
|
20 |
@EqualsAndHashCode(callSuper = true) |
|
21 |
public class TestDemoBo extends BaseEntity { |
|
22 |
|
|
23 |
/** |
|
24 |
* 主键 |
|
25 |
*/ |
|
26 |
@NotNull(message = "主键不能为空", groups = {EditGroup.class}) |
|
27 |
private Long id; |
|
28 |
|
|
29 |
/** |
|
30 |
* 部门id |
|
31 |
*/ |
|
32 |
@NotNull(message = "部门id不能为空", groups = {AddGroup.class, EditGroup.class}) |
|
33 |
private Long deptId; |
|
34 |
|
|
35 |
/** |
|
36 |
* 用户id |
|
37 |
*/ |
|
38 |
@NotNull(message = "用户id不能为空", groups = {AddGroup.class, EditGroup.class}) |
|
39 |
private Long userId; |
|
40 |
|
|
41 |
/** |
|
42 |
* 排序号 |
|
43 |
*/ |
|
44 |
@NotNull(message = "排序号不能为空", groups = {AddGroup.class, EditGroup.class}) |
|
45 |
private Integer orderNum; |
|
46 |
|
|
47 |
/** |
|
48 |
* key键 |
|
49 |
*/ |
|
50 |
@NotBlank(message = "key键不能为空", groups = {AddGroup.class, EditGroup.class}) |
|
51 |
private String testKey; |
|
52 |
|
|
53 |
/** |
|
54 |
* 值 |
|
55 |
*/ |
|
56 |
@NotBlank(message = "值不能为空", groups = {AddGroup.class, EditGroup.class}) |
|
57 |
private String value; |
|
58 |
|
|
59 |
} |