user
This commit is contained in:
@@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
*/
|
||||
@Api(tags = "短信")
|
||||
@RestController
|
||||
@RequestMapping("v1/sms")
|
||||
@RequestMapping("apiadmin/sms")
|
||||
public class SmsRest {
|
||||
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import java.util.Map;
|
||||
*/
|
||||
@Api(tags = "功能")
|
||||
@RestController
|
||||
@RequestMapping("v1/sysfunction")
|
||||
@RequestMapping("apiadmin/sysfunction")
|
||||
public class SysFunctionRest {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -47,7 +47,7 @@ import java.util.stream.Collectors;
|
||||
*/
|
||||
@Api(tags = "菜单表")
|
||||
@RestController
|
||||
@RequestMapping("v1/sysmenu")
|
||||
@RequestMapping("apiadmin/sysmenu")
|
||||
public class SysMenuRest {
|
||||
// @Autowired
|
||||
// private SysSourceMenuService sysSourceMenuService;
|
||||
|
||||
@@ -41,7 +41,7 @@ import static java.util.stream.Collectors.toList;
|
||||
*/
|
||||
@Api(tags = "组织机构表")
|
||||
@RestController
|
||||
@RequestMapping("v1/sysorganization")
|
||||
@RequestMapping("apiadmin/sysorganization")
|
||||
public class SysOrganizationRest{
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.List;
|
||||
*/
|
||||
@Api(tags = "岗位")
|
||||
@RestController
|
||||
@RequestMapping("v1/syspost")
|
||||
@RequestMapping("apiadmin/syspost")
|
||||
public class SysPostRest {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.util.List;
|
||||
*/
|
||||
@Api(tags = "角色")
|
||||
@RestController
|
||||
@RequestMapping("v1/sysrole")
|
||||
@RequestMapping("apiadmin/sysrole")
|
||||
public class SysRoleRest {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -34,7 +34,7 @@ import java.util.List;
|
||||
*/
|
||||
@Api(tags = "资源表")
|
||||
@RestController
|
||||
@RequestMapping("v1/syssource")
|
||||
@RequestMapping("apiadmin/syssource")
|
||||
public class SysSourceRest {
|
||||
// @Autowired
|
||||
// private SystemLogService systemLogService;
|
||||
@@ -56,7 +56,7 @@ public class SysSourceRest {
|
||||
// systemLog.setCreateTime(new Date());
|
||||
// systemLog.setEventName("人员岗位保存");
|
||||
// systemLog.setEventContent("");
|
||||
// systemLog.setEventUrl("/portal/v1/sysstaffpost/save");
|
||||
// systemLog.setEventUrl("/portal/apiadmin/sysstaffpost/save");
|
||||
// systemLog.setUserIp("0.0.0.0");
|
||||
// systemLog.setUserName(sysUser.getUserName());
|
||||
// systemLogService.save(systemLog);
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.util.List;
|
||||
*/
|
||||
@Api(tags = "员工部门关联表")
|
||||
@RestController
|
||||
@RequestMapping("v1/sysstafforg")
|
||||
@RequestMapping("apiadmin/sysstafforg")
|
||||
public class SysStaffOrgRest {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -38,7 +38,7 @@ import java.util.List;
|
||||
*/
|
||||
@Api(tags = "员工岗位关联表")
|
||||
@RestController
|
||||
@RequestMapping("v1/sysstaffpost")
|
||||
@RequestMapping("apiadmin/sysstaffpost")
|
||||
public class SysStaffPostRest {
|
||||
@Autowired
|
||||
private RedisUtil redisUtil;
|
||||
@@ -84,7 +84,7 @@ public class SysStaffPostRest {
|
||||
// systemLog.setCreateTime(new Date());
|
||||
// systemLog.setEventName("人员岗位保存");
|
||||
// systemLog.setEventContent("");
|
||||
// systemLog.setEventUrl("/portal/v1/sysstaffpost/save");
|
||||
// systemLog.setEventUrl("/portal/apiadmin/sysstaffpost/save");
|
||||
// systemLog.setUserIp("0.0.0.0");
|
||||
// systemLog.setUserName(sysUser.getUserName());
|
||||
// systemLogService.save(systemLog);
|
||||
|
||||
@@ -38,7 +38,7 @@ import java.util.Map;
|
||||
*/
|
||||
@Api(tags = "人员基础信息表")
|
||||
@RestController
|
||||
@RequestMapping("v1/sysstaffinfo")
|
||||
@RequestMapping("apiadmin/sysstaffinfo")
|
||||
public class SysStaffinfoRest{
|
||||
|
||||
private final Long PAGECURRENT = 2L;
|
||||
@@ -64,8 +64,8 @@ public class SysStaffinfoRest{
|
||||
ResultBean<PagerVo<SysStaffinfoVo>> rb = ResultBean.fireFail();
|
||||
IPage<SysStaffinfoVo> page = sysStaffinfoService.pagerList(pq);
|
||||
PagerVo<SysStaffinfoVo> pv = new PagerVo<>();
|
||||
PagerVo<SysStaffinfoVo> pv1 = PagerUtil.pageToVo(page, pv);
|
||||
return rb.success().setData(pv1);
|
||||
PagerVo<SysStaffinfoVo> papiadmin = PagerUtil.pageToVo(page, pv);
|
||||
return rb.success().setData(papiadmin);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
*/
|
||||
@Api(tags = "用户默认的组织机构")
|
||||
@RestController
|
||||
@RequestMapping("v1/sysuserdefaultorg")
|
||||
@RequestMapping("apiadmin/sysuserdefaultorg")
|
||||
public class SysUserDefaultOrgRest {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -44,7 +44,7 @@ import java.util.*;
|
||||
*/
|
||||
@Api(tags = "用户表")
|
||||
@RestController
|
||||
@RequestMapping("v1/sysuser")
|
||||
@RequestMapping("apiadmin/sysuser")
|
||||
public class SysUserRest {
|
||||
@Autowired
|
||||
private RedisUtil redisUtil;
|
||||
@@ -398,9 +398,9 @@ public class SysUserRest {
|
||||
if (StringUtils.isBlank(mobile)) {
|
||||
return new ResultBean<SysUserVo>().fail().setMsg("手机号不能为空");
|
||||
}
|
||||
if (userType == 0) {
|
||||
return new ResultBean<SysUserVo>().fail().setMsg("用户类型不能为空");
|
||||
}
|
||||
// if (userType == 0) {
|
||||
// return new ResultBean<SysUserVo>().fail().setMsg("用户类型不能为空");
|
||||
// }
|
||||
if (StringUtils.isBlank(verificationCode)) {
|
||||
return new ResultBean<SysUserVo>().fail().setMsg("验证码不能为空");
|
||||
} else {
|
||||
@@ -514,7 +514,7 @@ public class SysUserRest {
|
||||
// systemLog.setUserName(user.getUserName());
|
||||
// String ip = WebUtil.getIpAddr(httpServletRequest);
|
||||
// systemLog.setUserIp(ip);
|
||||
// systemLog.setEventUrl("portal/v1/sysuser/login");
|
||||
// systemLog.setEventUrl("portal/apiadmin/sysuser/login");
|
||||
// systemLog.setEventContent("用户登录");
|
||||
// systemLog.setEventName("用户登录");
|
||||
// systemLogService.save(systemLog);
|
||||
@@ -589,7 +589,10 @@ public class SysUserRest {
|
||||
return rb.success().setData(vo);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/loginDetails")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "获取登录人")
|
||||
@ApiOperationSupport(order = 30)
|
||||
public ResultBean<SysUserVo> loginDetails(HttpServletRequest httpServletRequest) {
|
||||
String token = httpServletRequest.getHeader("token");
|
||||
if (StringUtils.isBlank(token)) {
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.util.List;
|
||||
*/
|
||||
@Api(tags = "用户与角色关联表")
|
||||
@RestController
|
||||
@RequestMapping("v1/sysuserrole")
|
||||
@RequestMapping("apiadmin/sysuserrole")
|
||||
public class SysUserRoleRest {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
||||
@FeignClient(
|
||||
contextId = "anrui-portal-SmsApi",
|
||||
name = "anrui-portal",
|
||||
path = "v1/sms",
|
||||
path = "apiadmin/sms",
|
||||
fallback = SmsFeignFallback.class)
|
||||
public interface SmsFeign {
|
||||
static String msgSign="【安瑞集团】";
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.List;
|
||||
@FeignClient(
|
||||
contextId = "anrui-portal-SysSource",
|
||||
name = "anrui-portal",
|
||||
path = "v1/syssource",
|
||||
path = "apiadmin/syssource",
|
||||
fallback = SysSourceFeignFallback.class)
|
||||
public interface SysSourceFeign {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user