
24 changed files with 652 additions and 321 deletions
@ -0,0 +1,22 @@ |
|||||
|
package com.yxt.wms.feign.portal.privilege; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: 权限角色层级 |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2023/5/23 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class PrivilegeQuery { |
||||
|
|
||||
|
@ApiModelProperty("菜单路由") |
||||
|
private String menuUrl; |
||||
|
@ApiModelProperty("组织全路径sid") |
||||
|
private String orgPath; |
||||
|
@ApiModelProperty("菜单sid") |
||||
|
private String menuSid; |
||||
|
@ApiModelProperty("用户sid") |
||||
|
private String userSid; |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.yxt.wms.feign.portal.sysorganization; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PathVariable; |
||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui_portal(门户建设) <br/> |
||||
|
* File: SysOrganizationFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign <br/> |
||||
|
* Description: 组织机构表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2021-08-03 00:24:28 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "组织机构表") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-portal-SysOrganization", |
||||
|
name = "anrui-portal", |
||||
|
path = "v1/sysorganization") |
||||
|
public interface SysOrganizationFeign { |
||||
|
|
||||
|
@ApiOperation("获取一条记录 根据sid") |
||||
|
@ResponseBody |
||||
|
@GetMapping("/fetchBySid/{sid}") |
||||
|
public ResultBean<SysOrganizationVo> fetchBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
package com.yxt.wms.feign.portal.sysorganization; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui_portal(门户建设) <br/> |
||||
|
* File: SysOrganizationVo.java <br/> |
||||
|
* Class: com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo <br/> |
||||
|
* Description: 组织机构表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2021-08-03 00:24:28 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@ApiModel(value = "组织机构表 视图数据对象", description = "组织机构表 视图数据对象") |
||||
|
@Data |
||||
|
public class SysOrganizationVo implements Vo { |
||||
|
@ApiModelProperty("部门/组织名称") |
||||
|
private String name; |
||||
|
|
||||
|
@ApiModelProperty("父(部门/组织) sid") |
||||
|
private String psid; |
||||
|
|
||||
|
@ApiModelProperty("联系电话") |
||||
|
private String linkPhone; |
||||
|
|
||||
|
@ApiModelProperty("联系人") |
||||
|
private String linkPerson; |
||||
|
|
||||
|
@ApiModelProperty("部门sid全路径") |
||||
|
private String orgSidPath; |
||||
|
|
||||
|
@ApiModelProperty("排序") |
||||
|
private Integer sort; |
||||
|
|
||||
|
@ApiModelProperty("地址") |
||||
|
private String addrs; |
||||
|
|
||||
|
@ApiModelProperty("地理位置经纬度") |
||||
|
private String jwd; |
||||
|
|
||||
|
@ApiModelProperty("二维码") |
||||
|
private String qrText; |
||||
|
|
||||
|
@ApiModelProperty("限制本部门成员查看通讯录:限制开启后,本部门成员只能看到限定范围内的通讯录不能看到所有通讯录,仅可见自己") |
||||
|
private Integer limitOrgMember; |
||||
|
|
||||
|
@ApiModelProperty("部门编码") |
||||
|
private String orgCode; |
||||
|
@ApiModelProperty("sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("子集") |
||||
|
private List<SysOrganizationVo> children = new ArrayList<>(); |
||||
|
@ApiModelProperty("主管人员名称") |
||||
|
private String zgNames; |
||||
|
@ApiModelProperty("分管人员名称") |
||||
|
private String fgNames; |
||||
|
@ApiModelProperty("主管人员sid") |
||||
|
private String zgStaffSid; |
||||
|
@ApiModelProperty("分管人员sid") |
||||
|
private String fgStaffSid; |
||||
|
@ApiModelProperty("组织简称") |
||||
|
private String orgAbbre; |
||||
|
@ApiModelProperty("是否是部门(0否,1是)") |
||||
|
private Integer isDept; |
||||
|
@ApiModelProperty("组织属性key") |
||||
|
private String orgAttributeKey; |
||||
|
@ApiModelProperty("组织属性value") |
||||
|
private String orgAttributeValue; |
||||
|
@ApiModelProperty("管理层级key") |
||||
|
private String orgLevelKey; |
||||
|
@ApiModelProperty("管理层级value") |
||||
|
private String orgLevelValue; |
||||
|
@ApiModelProperty("其他编码") |
||||
|
private String otherCode; |
||||
|
@ApiModelProperty("主管用户sid") |
||||
|
private String managerSid; |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.wms.feign.portal.sysstafforg; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||
|
|
||||
|
/** |
||||
|
* @description: 人员与机构 |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/3/6 |
||||
|
**/ |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-portal-SysStaffOrg", |
||||
|
name = "anrui-portal", |
||||
|
path = "v1/sysstafforg") |
||||
|
public interface SysStaffOrgFeign { |
||||
|
|
||||
|
@GetMapping("/getOrgSidByPath") |
||||
|
@ResponseBody |
||||
|
@ApiOperation("根据用户组织全路径获取用户的分公司sid") |
||||
|
ResultBean<String> getOrgSidByPath(@RequestParam("orgPath") String orgPath); |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.yxt.wms.feign.portal.sysuser; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/9/21 9:26 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OrgList implements Vo { |
||||
|
private static final long serialVersionUID = -2867882982421321776L; |
||||
|
|
||||
|
private String orgName; |
||||
|
private String orgPath; |
||||
|
|
||||
|
private String deptName; |
||||
|
|
||||
|
private String deptSid; |
||||
|
} |
@ -0,0 +1,28 @@ |
|||||
|
package com.yxt.wms.feign.portal.sysuser; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.wms.feign.portal.privilege.PrivilegeQuery; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PathVariable; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
|
||||
|
@Api(tags = "用户表") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-portal-SysUser", |
||||
|
name = "anrui-portal", |
||||
|
path = "v1/sysuser") |
||||
|
public interface SysUserFeign { |
||||
|
|
||||
|
@ApiOperation(value = "查询角色权限的层级获取权限id") |
||||
|
@PostMapping(value = "/selectPrivilegeLevel") |
||||
|
ResultBean<String> selectPrivilegeLevel(@RequestBody PrivilegeQuery query); |
||||
|
|
||||
|
@ApiOperation("根据sid获取一条记录") |
||||
|
@GetMapping("/fetchBySid/{sid}") |
||||
|
public ResultBean<SysUserVo> fetchBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,97 @@ |
|||||
|
package com.yxt.wms.feign.portal.sysuser; |
||||
|
|
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui_portal(门户建设) <br/> |
||||
|
* File: SysUserVo.java <br/> |
||||
|
* Class: com.yxt.anrui.portal.api.sysuser.SysUserVo <br/> |
||||
|
* Description: 用户表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2021-08-03 00:24:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@ApiModel(value = "用户表 视图数据对象", description = "用户表 视图数据对象") |
||||
|
@Data |
||||
|
@NoArgsConstructor |
||||
|
public class SysUserVo implements Vo { |
||||
|
private static final long serialVersionUID = 2415131854581950721L; |
||||
|
@ApiModelProperty("部门sid") |
||||
|
private String departmentSid; |
||||
|
@ApiModelProperty("部门名称") |
||||
|
private String departmentName; |
||||
|
@ApiModelProperty("上级部门名称-本级部门名称 岗位名称") |
||||
|
@JsonProperty("pNameAndDepartmentNameAndPostName") |
||||
|
private String pNameAndDepartmentNameAndPostName; |
||||
|
@ApiModelProperty("岗位名称") |
||||
|
private String postName; |
||||
|
@ApiModelProperty("岗位Sid") |
||||
|
private String postSid; |
||||
|
@ApiModelProperty("单位sid") |
||||
|
private String organizationSid; |
||||
|
@ApiModelProperty("单位名称") |
||||
|
private String organizationName; |
||||
|
@ApiModelProperty("用户姓名") |
||||
|
private String name; |
||||
|
@ApiModelProperty("登录名,登录名不能相同") |
||||
|
private String userName; |
||||
|
|
||||
|
@ApiModelProperty("id") |
||||
|
private Integer id; |
||||
|
@ApiModelProperty("用户sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("是否是管理员:1管理员,2一般用户,0是超级管理员,3尚无单位人员") |
||||
|
private String isAdmin; |
||||
|
@ApiModelProperty("角色名称") |
||||
|
private String roleName; |
||||
|
|
||||
|
@ApiModelProperty("关联的人员sid") |
||||
|
private String staffSid; |
||||
|
|
||||
|
@ApiModelProperty("手机号") |
||||
|
private String mobile; |
||||
|
@ApiModelProperty(value = "禁用状态") |
||||
|
private String isEnable; |
||||
|
|
||||
|
@ApiModelProperty("用户类型:1员工、2客户、3供应商") |
||||
|
private String userType; |
||||
|
@ApiModelProperty("用户类型:1、2、3") |
||||
|
private String userTypeKey; |
||||
|
@ApiModelProperty("用户头像") |
||||
|
private String headImage; |
||||
|
@ApiModelProperty("组织名称") |
||||
|
private String orgNamePath; |
||||
|
@ApiModelProperty("组织sid") |
||||
|
private String orgSidPath; |
||||
|
@ApiModelProperty(value = "token") |
||||
|
private String token; |
||||
|
@ApiModelProperty(value = "角色sids") |
||||
|
private List<String> roleSids = new ArrayList<>(); |
||||
|
|
||||
|
private List<OrgList> orgList = new ArrayList<>(); |
||||
|
@ApiModelProperty("默认的组织机构sid全路径") |
||||
|
private String defaultOrgPath; |
||||
|
@ApiModelProperty("默认的组织机构名称全路径") |
||||
|
private String defaultOrgPathName; |
||||
|
|
||||
|
private String defaultDeptName; |
||||
|
private String defaultDeptSid; |
||||
|
|
||||
|
@ApiModelProperty("是否需要更换密码") |
||||
|
private Boolean needResetPsd; |
||||
|
@ApiModelProperty("工号") |
||||
|
private String jobNumber; |
||||
|
} |
Loading…
Reference in new issue