15 changed files with 308 additions and 2 deletions
@ -0,0 +1,34 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* 008、当前用户的数据权限(多客户版本) 入参DTO |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/2/3 21:08 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class StaffPermissionFormDTO { |
||||
|
|
||||
|
/** |
||||
|
* 当前登录用户 |
||||
|
*/ |
||||
|
@NotBlank(message = "staffId不能为空;") |
||||
|
private String staffId; |
||||
|
|
||||
|
/** |
||||
|
* 当前工作人员所属customerId,接口入参传入 |
||||
|
*/ |
||||
|
@NotBlank(message = "当前工作人员所属customerId不能为空;") |
||||
|
private String customerId; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 当前工作人员所属agencyId,接口入参传入 |
||||
|
*/ |
||||
|
@NotBlank(message = "当前工作人员所属agencyId不能为空") |
||||
|
private String agencyId; |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 008、当前用户的数据权限(多客户版本) 返参DTO |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/2/3 20:33 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AgencyNodeDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3745920378557792529L; |
||||
|
/** |
||||
|
* 直属机关Id |
||||
|
* */ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 直属机关名称 |
||||
|
* */ |
||||
|
private String agencyName; |
||||
|
|
||||
|
/** |
||||
|
* 机关级别(社区级:community, 乡(镇、街道)级:street, 区县级: district, 市级: city 省级:province) |
||||
|
* */ |
||||
|
private String level; |
||||
|
|
||||
|
/** |
||||
|
* 直属机关直属网格列表 |
||||
|
* */ |
||||
|
private List<GridNodeDTO> gridList = new ArrayList<>(); |
||||
|
|
||||
|
/** |
||||
|
* 直属机关直属部门列表 |
||||
|
* */ |
||||
|
private List<DeptNodeDTO> departmentList = new ArrayList<>(); |
||||
|
|
||||
|
/** |
||||
|
* 子集机关列表 |
||||
|
* */ |
||||
|
private List<AgencyNodeDTO> subAgencyList = new ArrayList<>(); |
||||
|
|
||||
|
/** |
||||
|
* 当前agencyId所属的客户id add02.03 |
||||
|
* */ |
||||
|
private String customerId; |
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 部门信息 |
||||
|
* @ClassName ExtDeptResultDTO |
||||
|
* @Auth wangc |
||||
|
* @Date 2020-08-17 17:16 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class DeptNodeDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 1792371558965832432L; |
||||
|
|
||||
|
/** |
||||
|
* 部门Id |
||||
|
* */ |
||||
|
private String deptId; |
||||
|
|
||||
|
/** |
||||
|
* 部门名称 |
||||
|
* */ |
||||
|
private String deptName; |
||||
|
|
||||
|
/** |
||||
|
* 当前deptId所属的customerId add02.03 |
||||
|
* */ |
||||
|
private String customerId; |
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 008、当前用户的数据权限(多客户版本) 返参DTO |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/2/3 20:33 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GridNodeDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -4531574240525562587L; |
||||
|
|
||||
|
/** |
||||
|
* 网格Id |
||||
|
* */ |
||||
|
private String gridId; |
||||
|
|
||||
|
/** |
||||
|
* 网格名称 |
||||
|
* */ |
||||
|
private String gridName; |
||||
|
|
||||
|
/** |
||||
|
* 当前gridId所属的客户id add02.03 |
||||
|
* */ |
||||
|
private String customerId; |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 008、当前用户的数据权限(多客户版本) 返参DTO |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/2/3 20:33 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class StaffPermissionResultDTO { |
||||
|
/** |
||||
|
* 当前用户拥有客户权限集合 |
||||
|
*/ |
||||
|
private List<String> customerIds; |
||||
|
/** |
||||
|
* 当前工作人员所属组织及下级 |
||||
|
*/ |
||||
|
private AgencyNodeDTO agencyTree; |
||||
|
} |
Loading…
Reference in new issue