6 changed files with 84 additions and 5 deletions
@ -1,12 +1,30 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class GovStaffRoleFormDTO { |
|||
|
|||
public interface SaveRoleOrderGroup extends CustomerClientShowGroup {} |
|||
public interface UpdateRoleGroup extends CustomerClientShowGroup {} |
|||
|
|||
/** |
|||
* 角色id列表 |
|||
*/ |
|||
@NotEmpty(message = "角色ID列表为空", groups = { SaveRoleOrderGroup.class }) |
|||
private List<String> roleIdList; |
|||
|
|||
/** |
|||
* 角色id |
|||
*/ |
|||
@NotNull(message = "缺少角色ID", groups = { UpdateRoleGroup.class }) |
|||
private String roleId; |
|||
|
|||
@NotNull(message = "缺少角色名称", groups = { UpdateRoleGroup.class }) |
|||
private String roleName; |
|||
} |
|||
|
Loading…
Reference in new issue