yangys
2024-03-07 2f4053acadaea4eb13d74e516af5c4ed914879c1
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
package com.qianwen.mdc.dto.usedepartment;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
 
import com.qianwen.mdc.vallidate.AddGroup;
import com.qianwen.mdc.vallidate.UpdateGroup;
 
/**
 * "使用部门"数据
 */
 
public class UseDepartmentDTO{
    @NotNull(message = "id不能为空", groups = {UpdateGroup.class})
    private Long id;
 
    /*
     * 部门名称
     */
    @NotBlank(message = "名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String name;
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    
}