|
@@ -0,0 +1,39 @@
|
|
|
+package cn.com.qmth.examcloud.core.basic.api.provider;
|
|
|
+
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import cn.com.qmth.examcloud.commons.web.security.bean.User;
|
|
|
+import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
|
|
|
+import cn.com.qmth.examcloud.core.basic.api.RolePrivilegeCloudService;
|
|
|
+import cn.com.qmth.examcloud.core.basic.api.request.GetPrivilegesReq;
|
|
|
+import cn.com.qmth.examcloud.core.basic.api.response.GetPrivilegesResp;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 角色权限服务
|
|
|
+ *
|
|
|
+ * @author WANGWEI
|
|
|
+ * @date 2018年6月8日
|
|
|
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("${$rmp}" + "demo")
|
|
|
+public class RolePrivilegeCloudServiceProvider extends ControllerSupport
|
|
|
+ implements
|
|
|
+ RolePrivilegeCloudService {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = -4360164791713797878L;
|
|
|
+
|
|
|
+ @ApiOperation(value = "查询用户权限", notes = "")
|
|
|
+ @PostMapping("getPrivileges")
|
|
|
+ @Override
|
|
|
+ public GetPrivilegesResp getPrivileges(GetPrivilegesReq req) {
|
|
|
+
|
|
|
+ User accessUser = getAccessUser();
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|