Compare commits
No commits in common. "dd39909195994b504175829433a65afd8454788a" and "f6a4aa0175b3ac16b0af6e8f1a40deb9e5d451ea" have entirely different histories.
dd39909195
...
f6a4aa0175
@ -17,8 +17,6 @@ import com.czlis.system.service.ISysRoleService;
|
|||||||
import com.czlis.system.service.ISysUserService;
|
import com.czlis.system.service.ISysUserService;
|
||||||
import com.czlis.system.web.service.SysPermissionService;
|
import com.czlis.system.web.service.SysPermissionService;
|
||||||
import com.czlis.interfaceCommon.service.TokenService;
|
import com.czlis.interfaceCommon.service.TokenService;
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
@ -32,7 +30,6 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author admin
|
* @author admin
|
||||||
*/
|
*/
|
||||||
@Api(tags = "角色信息")
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/system/role")
|
@RequestMapping("/system/role")
|
||||||
public class SysRoleController extends BaseController {
|
public class SysRoleController extends BaseController {
|
||||||
@ -232,11 +229,4 @@ public class SysRoleController extends BaseController {
|
|||||||
ajax.put("depts", deptService.selectDeptTreeList(new SysDept()));
|
ajax.put("depts", deptService.selectDeptTreeList(new SysDept()));
|
||||||
return ajax;
|
return ajax;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("获取登录用户姓名")
|
|
||||||
@GetMapping("/getUserName")
|
|
||||||
public AjaxResult selectUserByUserName(String username) {
|
|
||||||
SysUser sysUser = userService.selectUserByUserName(username);
|
|
||||||
return AjaxResult.success(sysUser.getNickName());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user