Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
424b955b
提交
424b955b
编写于
8月 30, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong@lab.ibiz5.com 部署微服务接口
上级
6f6be442
变更
31
显示空白字符变更
内嵌
并排
正在显示
31 个修改的文件
包含
40 行增加
和
46 行删除
+40
-46
config.xml
config.xml
+5
-0
ISysAppService.java
...main/java/cn/ibizlab/core/uaa/service/ISysAppService.java
+1
-0
ISysAuthLogService.java
.../java/cn/ibizlab/core/uaa/service/ISysAuthLogService.java
+1
-0
ISysOpenAccessService.java
...va/cn/ibizlab/core/uaa/service/ISysOpenAccessService.java
+1
-0
ISysPSSystemService.java
...java/cn/ibizlab/core/uaa/service/ISysPSSystemService.java
+1
-0
ISysPermissionService.java
...va/cn/ibizlab/core/uaa/service/ISysPermissionService.java
+1
-0
ISysRolePermissionService.java
...n/ibizlab/core/uaa/service/ISysRolePermissionService.java
+1
-0
ISysRoleService.java
...ain/java/cn/ibizlab/core/uaa/service/ISysRoleService.java
+1
-0
ISysUserAuthService.java
...java/cn/ibizlab/core/uaa/service/ISysUserAuthService.java
+1
-0
ISysUserRoleService.java
...java/cn/ibizlab/core/uaa/service/ISysUserRoleService.java
+1
-0
ISysUserService.java
...ain/java/cn/ibizlab/core/uaa/service/ISysUserService.java
+1
-0
SysAppServiceImpl.java
...a/cn/ibizlab/core/uaa/service/impl/SysAppServiceImpl.java
+1
-0
SysAuthLogServiceImpl.java
.../ibizlab/core/uaa/service/impl/SysAuthLogServiceImpl.java
+1
-0
SysOpenAccessServiceImpl.java
...izlab/core/uaa/service/impl/SysOpenAccessServiceImpl.java
+1
-0
SysPSSystemServiceImpl.java
...ibizlab/core/uaa/service/impl/SysPSSystemServiceImpl.java
+1
-0
SysPermissionServiceImpl.java
...izlab/core/uaa/service/impl/SysPermissionServiceImpl.java
+1
-0
SysRolePermissionServiceImpl.java
...b/core/uaa/service/impl/SysRolePermissionServiceImpl.java
+1
-0
SysRoleServiceImpl.java
.../cn/ibizlab/core/uaa/service/impl/SysRoleServiceImpl.java
+1
-0
SysUserAuthServiceImpl.java
...ibizlab/core/uaa/service/impl/SysUserAuthServiceImpl.java
+1
-0
SysUserRoleServiceImpl.java
...ibizlab/core/uaa/service/impl/SysUserRoleServiceImpl.java
+1
-0
SysUserServiceImpl.java
.../cn/ibizlab/core/uaa/service/impl/SysUserServiceImpl.java
+1
-0
Dockerfile
...a-provider/ibzuaa-provider-api/src/main/docker/Dockerfile
+1
-1
ibzuaa-provider-api.yaml
...uaa-provider-api/src/main/docker/ibzuaa-provider-api.yaml
+14
-1
SysAppResource.java
...api/src/main/java/cn/ibizlab/api/rest/SysAppResource.java
+0
-4
SysAuthLogResource.java
...src/main/java/cn/ibizlab/api/rest/SysAuthLogResource.java
+0
-4
SysOpenAccessResource.java
.../main/java/cn/ibizlab/api/rest/SysOpenAccessResource.java
+0
-4
SysPermissionResource.java
.../main/java/cn/ibizlab/api/rest/SysPermissionResource.java
+0
-4
SysRolePermissionResource.java
...n/java/cn/ibizlab/api/rest/SysRolePermissionResource.java
+0
-10
SysRoleResource.java
...pi/src/main/java/cn/ibizlab/api/rest/SysRoleResource.java
+0
-4
SysUserResource.java
...pi/src/main/java/cn/ibizlab/api/rest/SysUserResource.java
+0
-4
SysUserRoleResource.java
...rc/main/java/cn/ibizlab/api/rest/SysUserRoleResource.java
+0
-10
未找到文件。
config.xml
浏览文件 @
424b955b
...
@@ -37,6 +37,11 @@
...
@@ -37,6 +37,11 @@
git clone -b master $para2 ibzuaa/
git clone -b master $para2 ibzuaa/
export NODE_OPTIONS=--max-old-space-size=4096
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzuaa/
cd ibzuaa/
mvn clean package -Papi
cd ibzuaa-provider/ibzuaa-provider-api
mvn -Papi docker:build
mvn -Papi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzuaa-provider-api.yaml ibzlab-rt --with-registry-auth
</command>
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/ISysAppService.java
浏览文件 @
424b955b
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.scheduling.annotation.Async
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/ISysAuthLogService.java
浏览文件 @
424b955b
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.scheduling.annotation.Async
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/ISysOpenAccessService.java
浏览文件 @
424b955b
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.scheduling.annotation.Async
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/ISysPSSystemService.java
浏览文件 @
424b955b
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.scheduling.annotation.Async
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/ISysPermissionService.java
浏览文件 @
424b955b
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.scheduling.annotation.Async
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/ISysRolePermissionService.java
浏览文件 @
424b955b
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.scheduling.annotation.Async
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/ISysRoleService.java
浏览文件 @
424b955b
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.scheduling.annotation.Async
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/ISysUserAuthService.java
浏览文件 @
424b955b
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.scheduling.annotation.Async
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/ISysUserRoleService.java
浏览文件 @
424b955b
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.scheduling.annotation.Async
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/ISysUserService.java
浏览文件 @
424b955b
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.scheduling.annotation.Async
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.CacheEvict
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysAppServiceImpl.java
浏览文件 @
424b955b
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.uaa.domain.SysApp
;
import
cn.ibizlab.core.uaa.domain.SysApp
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysAuthLogServiceImpl.java
浏览文件 @
424b955b
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.uaa.domain.SysAuthLog
;
import
cn.ibizlab.core.uaa.domain.SysAuthLog
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysOpenAccessServiceImpl.java
浏览文件 @
424b955b
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.uaa.domain.SysOpenAccess
;
import
cn.ibizlab.core.uaa.domain.SysOpenAccess
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysPSSystemServiceImpl.java
浏览文件 @
424b955b
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.uaa.domain.SysPSSystem
;
import
cn.ibizlab.core.uaa.domain.SysPSSystem
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysPermissionServiceImpl.java
浏览文件 @
424b955b
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.uaa.domain.SysPermission
;
import
cn.ibizlab.core.uaa.domain.SysPermission
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysRolePermissionServiceImpl.java
浏览文件 @
424b955b
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.uaa.domain.SysRolePermission
;
import
cn.ibizlab.core.uaa.domain.SysRolePermission
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysRoleServiceImpl.java
浏览文件 @
424b955b
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.uaa.domain.SysRole
;
import
cn.ibizlab.core.uaa.domain.SysRole
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysUserAuthServiceImpl.java
浏览文件 @
424b955b
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.uaa.domain.SysUserAuth
;
import
cn.ibizlab.core.uaa.domain.SysUserAuth
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysUserRoleServiceImpl.java
浏览文件 @
424b955b
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.uaa.domain.SysUserRole
;
import
cn.ibizlab.core.uaa.domain.SysUserRole
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SysUserServiceImpl.java
浏览文件 @
424b955b
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
...
@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.uaa.domain.SysUser
;
import
cn.ibizlab.core.uaa.domain.SysUser
;
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/docker/Dockerfile
浏览文件 @
424b955b
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-provider-api.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-provider-api.jar
EXPOSE
8081
EXPOSE
40002
ADD
ibzuaa-provider-api.jar /ibzuaa-provider-api.jar
ADD
ibzuaa-provider-api.jar /ibzuaa-provider-api.jar
ibzuaa-provider/ibzuaa-provider-api/src/main/docker/ibzuaa-provider-api.yaml
浏览文件 @
424b955b
...
@@ -3,9 +3,22 @@ services:
...
@@ -3,9 +3,22 @@ services:
ibzuaa-provider-api
:
ibzuaa-provider-api
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-provider-api:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-provider-api:latest
ports
:
ports
:
-
"
8081:8081
"
-
"
40002:40002
"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=40002
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
-
SPRING_DATASOURCE_PASSWORD=@6dEfb3@
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
-
NACOS=172.16.102.211:8848
deploy
:
deploy
:
resources
:
resources
:
limits
:
limits
:
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysAppResource.java
浏览文件 @
424b955b
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
import
javax.servlet.ServletRequest
;
import
javax.servlet.ServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
...
@@ -49,7 +48,6 @@ public class SysAppResource {
...
@@ -49,7 +48,6 @@ public class SysAppResource {
@ApiOperation
(
value
=
"新建应用"
,
tags
=
{
"应用"
},
notes
=
"新建应用"
)
@ApiOperation
(
value
=
"新建应用"
,
tags
=
{
"应用"
},
notes
=
"新建应用"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysapps"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysapps"
)
@Transactional
public
ResponseEntity
<
SysAppDTO
>
create
(
@RequestBody
SysAppDTO
sysappdto
)
{
public
ResponseEntity
<
SysAppDTO
>
create
(
@RequestBody
SysAppDTO
sysappdto
)
{
SysApp
domain
=
sysappMapping
.
toDomain
(
sysappdto
);
SysApp
domain
=
sysappMapping
.
toDomain
(
sysappdto
);
sysappService
.
create
(
domain
);
sysappService
.
create
(
domain
);
...
@@ -66,7 +64,6 @@ public class SysAppResource {
...
@@ -66,7 +64,6 @@ public class SysAppResource {
@ApiOperation
(
value
=
"更新应用"
,
tags
=
{
"应用"
},
notes
=
"更新应用"
)
@ApiOperation
(
value
=
"更新应用"
,
tags
=
{
"应用"
},
notes
=
"更新应用"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysapps/{sysapp_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysapps/{sysapp_id}"
)
@Transactional
public
ResponseEntity
<
SysAppDTO
>
update
(
@PathVariable
(
"sysapp_id"
)
String
sysapp_id
,
@RequestBody
SysAppDTO
sysappdto
)
{
public
ResponseEntity
<
SysAppDTO
>
update
(
@PathVariable
(
"sysapp_id"
)
String
sysapp_id
,
@RequestBody
SysAppDTO
sysappdto
)
{
SysApp
domain
=
sysappMapping
.
toDomain
(
sysappdto
);
SysApp
domain
=
sysappMapping
.
toDomain
(
sysappdto
);
domain
.
setId
(
sysapp_id
);
domain
.
setId
(
sysapp_id
);
...
@@ -84,7 +81,6 @@ public class SysAppResource {
...
@@ -84,7 +81,6 @@ public class SysAppResource {
@ApiOperation
(
value
=
"删除应用"
,
tags
=
{
"应用"
},
notes
=
"删除应用"
)
@ApiOperation
(
value
=
"删除应用"
,
tags
=
{
"应用"
},
notes
=
"删除应用"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysapps/{sysapp_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysapps/{sysapp_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysapp_id"
)
String
sysapp_id
)
{
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysapp_id"
)
String
sysapp_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysappService
.
remove
(
sysapp_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysappService
.
remove
(
sysapp_id
));
}
}
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysAuthLogResource.java
浏览文件 @
424b955b
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
import
javax.servlet.ServletRequest
;
import
javax.servlet.ServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
...
@@ -50,7 +49,6 @@ public class SysAuthLogResource {
...
@@ -50,7 +49,6 @@ public class SysAuthLogResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysAuthLog-Create-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysAuthLog-Create-all')"
)
@ApiOperation
(
value
=
"新建认证日志"
,
tags
=
{
"认证日志"
},
notes
=
"新建认证日志"
)
@ApiOperation
(
value
=
"新建认证日志"
,
tags
=
{
"认证日志"
},
notes
=
"新建认证日志"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysauthlogs"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysauthlogs"
)
@Transactional
public
ResponseEntity
<
SysAuthLogDTO
>
create
(
@RequestBody
SysAuthLogDTO
sysauthlogdto
)
{
public
ResponseEntity
<
SysAuthLogDTO
>
create
(
@RequestBody
SysAuthLogDTO
sysauthlogdto
)
{
SysAuthLog
domain
=
sysauthlogMapping
.
toDomain
(
sysauthlogdto
);
SysAuthLog
domain
=
sysauthlogMapping
.
toDomain
(
sysauthlogdto
);
sysauthlogService
.
create
(
domain
);
sysauthlogService
.
create
(
domain
);
...
@@ -69,7 +67,6 @@ public class SysAuthLogResource {
...
@@ -69,7 +67,6 @@ public class SysAuthLogResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysAuthLog-Update-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysAuthLog-Update-all')"
)
@ApiOperation
(
value
=
"更新认证日志"
,
tags
=
{
"认证日志"
},
notes
=
"更新认证日志"
)
@ApiOperation
(
value
=
"更新认证日志"
,
tags
=
{
"认证日志"
},
notes
=
"更新认证日志"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysauthlogs/{sysauthlog_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysauthlogs/{sysauthlog_id}"
)
@Transactional
public
ResponseEntity
<
SysAuthLogDTO
>
update
(
@PathVariable
(
"sysauthlog_id"
)
String
sysauthlog_id
,
@RequestBody
SysAuthLogDTO
sysauthlogdto
)
{
public
ResponseEntity
<
SysAuthLogDTO
>
update
(
@PathVariable
(
"sysauthlog_id"
)
String
sysauthlog_id
,
@RequestBody
SysAuthLogDTO
sysauthlogdto
)
{
SysAuthLog
domain
=
sysauthlogMapping
.
toDomain
(
sysauthlogdto
);
SysAuthLog
domain
=
sysauthlogMapping
.
toDomain
(
sysauthlogdto
);
domain
.
setLogid
(
sysauthlog_id
);
domain
.
setLogid
(
sysauthlog_id
);
...
@@ -89,7 +86,6 @@ public class SysAuthLogResource {
...
@@ -89,7 +86,6 @@ public class SysAuthLogResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysAuthLog-Remove-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysAuthLog-Remove-all')"
)
@ApiOperation
(
value
=
"删除认证日志"
,
tags
=
{
"认证日志"
},
notes
=
"删除认证日志"
)
@ApiOperation
(
value
=
"删除认证日志"
,
tags
=
{
"认证日志"
},
notes
=
"删除认证日志"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysauthlogs/{sysauthlog_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysauthlogs/{sysauthlog_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysauthlog_id"
)
String
sysauthlog_id
)
{
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysauthlog_id"
)
String
sysauthlog_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysauthlogService
.
remove
(
sysauthlog_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysauthlogService
.
remove
(
sysauthlog_id
));
}
}
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysOpenAccessResource.java
浏览文件 @
424b955b
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
import
javax.servlet.ServletRequest
;
import
javax.servlet.ServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
...
@@ -50,7 +49,6 @@ public class SysOpenAccessResource {
...
@@ -50,7 +49,6 @@ public class SysOpenAccessResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysOpenAccess-Create-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysOpenAccess-Create-all')"
)
@ApiOperation
(
value
=
"新建第三方认证平台"
,
tags
=
{
"第三方认证平台"
},
notes
=
"新建第三方认证平台"
)
@ApiOperation
(
value
=
"新建第三方认证平台"
,
tags
=
{
"第三方认证平台"
},
notes
=
"新建第三方认证平台"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysopenaccesses"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysopenaccesses"
)
@Transactional
public
ResponseEntity
<
SysOpenAccessDTO
>
create
(
@RequestBody
SysOpenAccessDTO
sysopenaccessdto
)
{
public
ResponseEntity
<
SysOpenAccessDTO
>
create
(
@RequestBody
SysOpenAccessDTO
sysopenaccessdto
)
{
SysOpenAccess
domain
=
sysopenaccessMapping
.
toDomain
(
sysopenaccessdto
);
SysOpenAccess
domain
=
sysopenaccessMapping
.
toDomain
(
sysopenaccessdto
);
sysopenaccessService
.
create
(
domain
);
sysopenaccessService
.
create
(
domain
);
...
@@ -69,7 +67,6 @@ public class SysOpenAccessResource {
...
@@ -69,7 +67,6 @@ public class SysOpenAccessResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysOpenAccess-Update-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysOpenAccess-Update-all')"
)
@ApiOperation
(
value
=
"更新第三方认证平台"
,
tags
=
{
"第三方认证平台"
},
notes
=
"更新第三方认证平台"
)
@ApiOperation
(
value
=
"更新第三方认证平台"
,
tags
=
{
"第三方认证平台"
},
notes
=
"更新第三方认证平台"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysopenaccesses/{sysopenaccess_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysopenaccesses/{sysopenaccess_id}"
)
@Transactional
public
ResponseEntity
<
SysOpenAccessDTO
>
update
(
@PathVariable
(
"sysopenaccess_id"
)
String
sysopenaccess_id
,
@RequestBody
SysOpenAccessDTO
sysopenaccessdto
)
{
public
ResponseEntity
<
SysOpenAccessDTO
>
update
(
@PathVariable
(
"sysopenaccess_id"
)
String
sysopenaccess_id
,
@RequestBody
SysOpenAccessDTO
sysopenaccessdto
)
{
SysOpenAccess
domain
=
sysopenaccessMapping
.
toDomain
(
sysopenaccessdto
);
SysOpenAccess
domain
=
sysopenaccessMapping
.
toDomain
(
sysopenaccessdto
);
domain
.
setId
(
sysopenaccess_id
);
domain
.
setId
(
sysopenaccess_id
);
...
@@ -89,7 +86,6 @@ public class SysOpenAccessResource {
...
@@ -89,7 +86,6 @@ public class SysOpenAccessResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysOpenAccess-Remove-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysOpenAccess-Remove-all')"
)
@ApiOperation
(
value
=
"删除第三方认证平台"
,
tags
=
{
"第三方认证平台"
},
notes
=
"删除第三方认证平台"
)
@ApiOperation
(
value
=
"删除第三方认证平台"
,
tags
=
{
"第三方认证平台"
},
notes
=
"删除第三方认证平台"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysopenaccesses/{sysopenaccess_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysopenaccesses/{sysopenaccess_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysopenaccess_id"
)
String
sysopenaccess_id
)
{
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysopenaccess_id"
)
String
sysopenaccess_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysopenaccessService
.
remove
(
sysopenaccess_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysopenaccessService
.
remove
(
sysopenaccess_id
));
}
}
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysPermissionResource.java
浏览文件 @
424b955b
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
import
javax.servlet.ServletRequest
;
import
javax.servlet.ServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
...
@@ -50,7 +49,6 @@ public class SysPermissionResource {
...
@@ -50,7 +49,6 @@ public class SysPermissionResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPermission-Create-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPermission-Create-all')"
)
@ApiOperation
(
value
=
"新建权限/资源"
,
tags
=
{
"权限/资源"
},
notes
=
"新建权限/资源"
)
@ApiOperation
(
value
=
"新建权限/资源"
,
tags
=
{
"权限/资源"
},
notes
=
"新建权限/资源"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspermissions"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspermissions"
)
@Transactional
public
ResponseEntity
<
SysPermissionDTO
>
create
(
@RequestBody
SysPermissionDTO
syspermissiondto
)
{
public
ResponseEntity
<
SysPermissionDTO
>
create
(
@RequestBody
SysPermissionDTO
syspermissiondto
)
{
SysPermission
domain
=
syspermissionMapping
.
toDomain
(
syspermissiondto
);
SysPermission
domain
=
syspermissionMapping
.
toDomain
(
syspermissiondto
);
syspermissionService
.
create
(
domain
);
syspermissionService
.
create
(
domain
);
...
@@ -70,7 +68,6 @@ public class SysPermissionResource {
...
@@ -70,7 +68,6 @@ public class SysPermissionResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPermission-Update-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPermission-Update-all')"
)
@ApiOperation
(
value
=
"更新权限/资源"
,
tags
=
{
"权限/资源"
},
notes
=
"更新权限/资源"
)
@ApiOperation
(
value
=
"更新权限/资源"
,
tags
=
{
"权限/资源"
},
notes
=
"更新权限/资源"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/syspermissions/{syspermission_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/syspermissions/{syspermission_id}"
)
@Transactional
public
ResponseEntity
<
SysPermissionDTO
>
update
(
@PathVariable
(
"syspermission_id"
)
String
syspermission_id
,
@RequestBody
SysPermissionDTO
syspermissiondto
)
{
public
ResponseEntity
<
SysPermissionDTO
>
update
(
@PathVariable
(
"syspermission_id"
)
String
syspermission_id
,
@RequestBody
SysPermissionDTO
syspermissiondto
)
{
SysPermission
domain
=
syspermissionMapping
.
toDomain
(
syspermissiondto
);
SysPermission
domain
=
syspermissionMapping
.
toDomain
(
syspermissiondto
);
domain
.
setPermissionid
(
syspermission_id
);
domain
.
setPermissionid
(
syspermission_id
);
...
@@ -90,7 +87,6 @@ public class SysPermissionResource {
...
@@ -90,7 +87,6 @@ public class SysPermissionResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPermission-Remove-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysPermission-Remove-all')"
)
@ApiOperation
(
value
=
"删除权限/资源"
,
tags
=
{
"权限/资源"
},
notes
=
"删除权限/资源"
)
@ApiOperation
(
value
=
"删除权限/资源"
,
tags
=
{
"权限/资源"
},
notes
=
"删除权限/资源"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/syspermissions/{syspermission_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/syspermissions/{syspermission_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"syspermission_id"
)
String
syspermission_id
)
{
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"syspermission_id"
)
String
syspermission_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
syspermissionService
.
remove
(
syspermission_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
syspermissionService
.
remove
(
syspermission_id
));
}
}
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysRolePermissionResource.java
浏览文件 @
424b955b
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
import
javax.servlet.ServletRequest
;
import
javax.servlet.ServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
...
@@ -50,7 +49,6 @@ public class SysRolePermissionResource {
...
@@ -50,7 +49,6 @@ public class SysRolePermissionResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Create-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Create-all')"
)
@ApiOperation
(
value
=
"新建角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"新建角色权限关系"
)
@ApiOperation
(
value
=
"新建角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"新建角色权限关系"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysrolepermissions"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysrolepermissions"
)
@Transactional
public
ResponseEntity
<
SysRolePermissionDTO
>
create
(
@RequestBody
SysRolePermissionDTO
sysrolepermissiondto
)
{
public
ResponseEntity
<
SysRolePermissionDTO
>
create
(
@RequestBody
SysRolePermissionDTO
sysrolepermissiondto
)
{
SysRolePermission
domain
=
sysrolepermissionMapping
.
toDomain
(
sysrolepermissiondto
);
SysRolePermission
domain
=
sysrolepermissionMapping
.
toDomain
(
sysrolepermissiondto
);
sysrolepermissionService
.
create
(
domain
);
sysrolepermissionService
.
create
(
domain
);
...
@@ -70,7 +68,6 @@ public class SysRolePermissionResource {
...
@@ -70,7 +68,6 @@ public class SysRolePermissionResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Update-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Update-all')"
)
@ApiOperation
(
value
=
"更新角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"更新角色权限关系"
)
@ApiOperation
(
value
=
"更新角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"更新角色权限关系"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysrolepermissions/{sysrolepermission_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysrolepermissions/{sysrolepermission_id}"
)
@Transactional
public
ResponseEntity
<
SysRolePermissionDTO
>
update
(
@PathVariable
(
"sysrolepermission_id"
)
String
sysrolepermission_id
,
@RequestBody
SysRolePermissionDTO
sysrolepermissiondto
)
{
public
ResponseEntity
<
SysRolePermissionDTO
>
update
(
@PathVariable
(
"sysrolepermission_id"
)
String
sysrolepermission_id
,
@RequestBody
SysRolePermissionDTO
sysrolepermissiondto
)
{
SysRolePermission
domain
=
sysrolepermissionMapping
.
toDomain
(
sysrolepermissiondto
);
SysRolePermission
domain
=
sysrolepermissionMapping
.
toDomain
(
sysrolepermissiondto
);
domain
.
setRolepermissionid
(
sysrolepermission_id
);
domain
.
setRolepermissionid
(
sysrolepermission_id
);
...
@@ -90,7 +87,6 @@ public class SysRolePermissionResource {
...
@@ -90,7 +87,6 @@ public class SysRolePermissionResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Remove-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Remove-all')"
)
@ApiOperation
(
value
=
"删除角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"删除角色权限关系"
)
@ApiOperation
(
value
=
"删除角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"删除角色权限关系"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysrolepermissions/{sysrolepermission_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysrolepermissions/{sysrolepermission_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysrolepermission_id"
)
String
sysrolepermission_id
)
{
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysrolepermission_id"
)
String
sysrolepermission_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysrolepermissionService
.
remove
(
sysrolepermission_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysrolepermissionService
.
remove
(
sysrolepermission_id
));
}
}
...
@@ -163,7 +159,6 @@ public class SysRolePermissionResource {
...
@@ -163,7 +159,6 @@ public class SysRolePermissionResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Create-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Create-all')"
)
@ApiOperation
(
value
=
"根据权限/资源建立角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"根据权限/资源建立角色权限关系"
)
@ApiOperation
(
value
=
"根据权限/资源建立角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"根据权限/资源建立角色权限关系"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspermissions/{syspermission_id}/sysrolepermissions"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/syspermissions/{syspermission_id}/sysrolepermissions"
)
@Transactional
public
ResponseEntity
<
SysRolePermissionDTO
>
createBySysPermission
(
@PathVariable
(
"syspermission_id"
)
String
syspermission_id
,
@RequestBody
SysRolePermissionDTO
sysrolepermissiondto
)
{
public
ResponseEntity
<
SysRolePermissionDTO
>
createBySysPermission
(
@PathVariable
(
"syspermission_id"
)
String
syspermission_id
,
@RequestBody
SysRolePermissionDTO
sysrolepermissiondto
)
{
SysRolePermission
domain
=
sysrolepermissionMapping
.
toDomain
(
sysrolepermissiondto
);
SysRolePermission
domain
=
sysrolepermissionMapping
.
toDomain
(
sysrolepermissiondto
);
domain
.
setPermissionid
(
syspermission_id
);
domain
.
setPermissionid
(
syspermission_id
);
...
@@ -188,7 +183,6 @@ public class SysRolePermissionResource {
...
@@ -188,7 +183,6 @@ public class SysRolePermissionResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Update-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Update-all')"
)
@ApiOperation
(
value
=
"根据权限/资源更新角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"根据权限/资源更新角色权限关系"
)
@ApiOperation
(
value
=
"根据权限/资源更新角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"根据权限/资源更新角色权限关系"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/syspermissions/{syspermission_id}/sysrolepermissions/{sysrolepermission_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/syspermissions/{syspermission_id}/sysrolepermissions/{sysrolepermission_id}"
)
@Transactional
public
ResponseEntity
<
SysRolePermissionDTO
>
updateBySysPermission
(
@PathVariable
(
"syspermission_id"
)
String
syspermission_id
,
@PathVariable
(
"sysrolepermission_id"
)
String
sysrolepermission_id
,
@RequestBody
SysRolePermissionDTO
sysrolepermissiondto
)
{
public
ResponseEntity
<
SysRolePermissionDTO
>
updateBySysPermission
(
@PathVariable
(
"syspermission_id"
)
String
syspermission_id
,
@PathVariable
(
"sysrolepermission_id"
)
String
sysrolepermission_id
,
@RequestBody
SysRolePermissionDTO
sysrolepermissiondto
)
{
SysRolePermission
domain
=
sysrolepermissionMapping
.
toDomain
(
sysrolepermissiondto
);
SysRolePermission
domain
=
sysrolepermissionMapping
.
toDomain
(
sysrolepermissiondto
);
domain
.
setPermissionid
(
syspermission_id
);
domain
.
setPermissionid
(
syspermission_id
);
...
@@ -213,7 +207,6 @@ public class SysRolePermissionResource {
...
@@ -213,7 +207,6 @@ public class SysRolePermissionResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Remove-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Remove-all')"
)
@ApiOperation
(
value
=
"根据权限/资源删除角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"根据权限/资源删除角色权限关系"
)
@ApiOperation
(
value
=
"根据权限/资源删除角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"根据权限/资源删除角色权限关系"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/syspermissions/{syspermission_id}/sysrolepermissions/{sysrolepermission_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/syspermissions/{syspermission_id}/sysrolepermissions/{sysrolepermission_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
removeBySysPermission
(
@PathVariable
(
"syspermission_id"
)
String
syspermission_id
,
@PathVariable
(
"sysrolepermission_id"
)
String
sysrolepermission_id
)
{
public
ResponseEntity
<
Boolean
>
removeBySysPermission
(
@PathVariable
(
"syspermission_id"
)
String
syspermission_id
,
@PathVariable
(
"sysrolepermission_id"
)
String
sysrolepermission_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysrolepermissionService
.
remove
(
sysrolepermission_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysrolepermissionService
.
remove
(
sysrolepermission_id
));
}
}
...
@@ -296,7 +289,6 @@ public class SysRolePermissionResource {
...
@@ -296,7 +289,6 @@ public class SysRolePermissionResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Create-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Create-all')"
)
@ApiOperation
(
value
=
"根据系统角色建立角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"根据系统角色建立角色权限关系"
)
@ApiOperation
(
value
=
"根据系统角色建立角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"根据系统角色建立角色权限关系"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysroles/{sysrole_id}/sysrolepermissions"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysroles/{sysrole_id}/sysrolepermissions"
)
@Transactional
public
ResponseEntity
<
SysRolePermissionDTO
>
createBySysRole
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@RequestBody
SysRolePermissionDTO
sysrolepermissiondto
)
{
public
ResponseEntity
<
SysRolePermissionDTO
>
createBySysRole
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@RequestBody
SysRolePermissionDTO
sysrolepermissiondto
)
{
SysRolePermission
domain
=
sysrolepermissionMapping
.
toDomain
(
sysrolepermissiondto
);
SysRolePermission
domain
=
sysrolepermissionMapping
.
toDomain
(
sysrolepermissiondto
);
domain
.
setRoleid
(
sysrole_id
);
domain
.
setRoleid
(
sysrole_id
);
...
@@ -321,7 +313,6 @@ public class SysRolePermissionResource {
...
@@ -321,7 +313,6 @@ public class SysRolePermissionResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Update-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Update-all')"
)
@ApiOperation
(
value
=
"根据系统角色更新角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"根据系统角色更新角色权限关系"
)
@ApiOperation
(
value
=
"根据系统角色更新角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"根据系统角色更新角色权限关系"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysroles/{sysrole_id}/sysrolepermissions/{sysrolepermission_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysroles/{sysrole_id}/sysrolepermissions/{sysrolepermission_id}"
)
@Transactional
public
ResponseEntity
<
SysRolePermissionDTO
>
updateBySysRole
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@PathVariable
(
"sysrolepermission_id"
)
String
sysrolepermission_id
,
@RequestBody
SysRolePermissionDTO
sysrolepermissiondto
)
{
public
ResponseEntity
<
SysRolePermissionDTO
>
updateBySysRole
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@PathVariable
(
"sysrolepermission_id"
)
String
sysrolepermission_id
,
@RequestBody
SysRolePermissionDTO
sysrolepermissiondto
)
{
SysRolePermission
domain
=
sysrolepermissionMapping
.
toDomain
(
sysrolepermissiondto
);
SysRolePermission
domain
=
sysrolepermissionMapping
.
toDomain
(
sysrolepermissiondto
);
domain
.
setRoleid
(
sysrole_id
);
domain
.
setRoleid
(
sysrole_id
);
...
@@ -346,7 +337,6 @@ public class SysRolePermissionResource {
...
@@ -346,7 +337,6 @@ public class SysRolePermissionResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Remove-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysRolePermission-Remove-all')"
)
@ApiOperation
(
value
=
"根据系统角色删除角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"根据系统角色删除角色权限关系"
)
@ApiOperation
(
value
=
"根据系统角色删除角色权限关系"
,
tags
=
{
"角色权限关系"
},
notes
=
"根据系统角色删除角色权限关系"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysroles/{sysrole_id}/sysrolepermissions/{sysrolepermission_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysroles/{sysrole_id}/sysrolepermissions/{sysrolepermission_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
removeBySysRole
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@PathVariable
(
"sysrolepermission_id"
)
String
sysrolepermission_id
)
{
public
ResponseEntity
<
Boolean
>
removeBySysRole
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@PathVariable
(
"sysrolepermission_id"
)
String
sysrolepermission_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysrolepermissionService
.
remove
(
sysrolepermission_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysrolepermissionService
.
remove
(
sysrolepermission_id
));
}
}
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysRoleResource.java
浏览文件 @
424b955b
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
import
javax.servlet.ServletRequest
;
import
javax.servlet.ServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
...
@@ -50,7 +49,6 @@ public class SysRoleResource {
...
@@ -50,7 +49,6 @@ public class SysRoleResource {
@PreAuthorize
(
"hasPermission(this.sysroleMapping.toDomain(#sysroledto),'ibzuaa-SysRole-Create')"
)
@PreAuthorize
(
"hasPermission(this.sysroleMapping.toDomain(#sysroledto),'ibzuaa-SysRole-Create')"
)
@ApiOperation
(
value
=
"新建系统角色"
,
tags
=
{
"系统角色"
},
notes
=
"新建系统角色"
)
@ApiOperation
(
value
=
"新建系统角色"
,
tags
=
{
"系统角色"
},
notes
=
"新建系统角色"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysroles"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysroles"
)
@Transactional
public
ResponseEntity
<
SysRoleDTO
>
create
(
@RequestBody
SysRoleDTO
sysroledto
)
{
public
ResponseEntity
<
SysRoleDTO
>
create
(
@RequestBody
SysRoleDTO
sysroledto
)
{
SysRole
domain
=
sysroleMapping
.
toDomain
(
sysroledto
);
SysRole
domain
=
sysroleMapping
.
toDomain
(
sysroledto
);
sysroleService
.
create
(
domain
);
sysroleService
.
create
(
domain
);
...
@@ -70,7 +68,6 @@ public class SysRoleResource {
...
@@ -70,7 +68,6 @@ public class SysRoleResource {
@PreAuthorize
(
"hasPermission(this.sysroleService.get(#sysrole_id),'ibzuaa-SysRole-Update')"
)
@PreAuthorize
(
"hasPermission(this.sysroleService.get(#sysrole_id),'ibzuaa-SysRole-Update')"
)
@ApiOperation
(
value
=
"更新系统角色"
,
tags
=
{
"系统角色"
},
notes
=
"更新系统角色"
)
@ApiOperation
(
value
=
"更新系统角色"
,
tags
=
{
"系统角色"
},
notes
=
"更新系统角色"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysroles/{sysrole_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysroles/{sysrole_id}"
)
@Transactional
public
ResponseEntity
<
SysRoleDTO
>
update
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@RequestBody
SysRoleDTO
sysroledto
)
{
public
ResponseEntity
<
SysRoleDTO
>
update
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@RequestBody
SysRoleDTO
sysroledto
)
{
SysRole
domain
=
sysroleMapping
.
toDomain
(
sysroledto
);
SysRole
domain
=
sysroleMapping
.
toDomain
(
sysroledto
);
domain
.
setRoleid
(
sysrole_id
);
domain
.
setRoleid
(
sysrole_id
);
...
@@ -90,7 +87,6 @@ public class SysRoleResource {
...
@@ -90,7 +87,6 @@ public class SysRoleResource {
@PreAuthorize
(
"hasPermission(this.sysroleService.get(#sysrole_id),'ibzuaa-SysRole-Remove')"
)
@PreAuthorize
(
"hasPermission(this.sysroleService.get(#sysrole_id),'ibzuaa-SysRole-Remove')"
)
@ApiOperation
(
value
=
"删除系统角色"
,
tags
=
{
"系统角色"
},
notes
=
"删除系统角色"
)
@ApiOperation
(
value
=
"删除系统角色"
,
tags
=
{
"系统角色"
},
notes
=
"删除系统角色"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysroles/{sysrole_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysroles/{sysrole_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
)
{
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysroleService
.
remove
(
sysrole_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysroleService
.
remove
(
sysrole_id
));
}
}
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysUserResource.java
浏览文件 @
424b955b
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
import
javax.servlet.ServletRequest
;
import
javax.servlet.ServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
...
@@ -50,7 +49,6 @@ public class SysUserResource {
...
@@ -50,7 +49,6 @@ public class SysUserResource {
@PreAuthorize
(
"hasPermission(this.sysuserMapping.toDomain(#sysuserdto),'ibzuaa-SysUser-Create')"
)
@PreAuthorize
(
"hasPermission(this.sysuserMapping.toDomain(#sysuserdto),'ibzuaa-SysUser-Create')"
)
@ApiOperation
(
value
=
"新建系统用户"
,
tags
=
{
"系统用户"
},
notes
=
"新建系统用户"
)
@ApiOperation
(
value
=
"新建系统用户"
,
tags
=
{
"系统用户"
},
notes
=
"新建系统用户"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysusers"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysusers"
)
@Transactional
public
ResponseEntity
<
SysUserDTO
>
create
(
@RequestBody
SysUserDTO
sysuserdto
)
{
public
ResponseEntity
<
SysUserDTO
>
create
(
@RequestBody
SysUserDTO
sysuserdto
)
{
SysUser
domain
=
sysuserMapping
.
toDomain
(
sysuserdto
);
SysUser
domain
=
sysuserMapping
.
toDomain
(
sysuserdto
);
sysuserService
.
create
(
domain
);
sysuserService
.
create
(
domain
);
...
@@ -69,7 +67,6 @@ public class SysUserResource {
...
@@ -69,7 +67,6 @@ public class SysUserResource {
@PreAuthorize
(
"hasPermission(this.sysuserService.get(#sysuser_id),'ibzuaa-SysUser-Update')"
)
@PreAuthorize
(
"hasPermission(this.sysuserService.get(#sysuser_id),'ibzuaa-SysUser-Update')"
)
@ApiOperation
(
value
=
"更新系统用户"
,
tags
=
{
"系统用户"
},
notes
=
"更新系统用户"
)
@ApiOperation
(
value
=
"更新系统用户"
,
tags
=
{
"系统用户"
},
notes
=
"更新系统用户"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysusers/{sysuser_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysusers/{sysuser_id}"
)
@Transactional
public
ResponseEntity
<
SysUserDTO
>
update
(
@PathVariable
(
"sysuser_id"
)
String
sysuser_id
,
@RequestBody
SysUserDTO
sysuserdto
)
{
public
ResponseEntity
<
SysUserDTO
>
update
(
@PathVariable
(
"sysuser_id"
)
String
sysuser_id
,
@RequestBody
SysUserDTO
sysuserdto
)
{
SysUser
domain
=
sysuserMapping
.
toDomain
(
sysuserdto
);
SysUser
domain
=
sysuserMapping
.
toDomain
(
sysuserdto
);
domain
.
setUserid
(
sysuser_id
);
domain
.
setUserid
(
sysuser_id
);
...
@@ -89,7 +86,6 @@ public class SysUserResource {
...
@@ -89,7 +86,6 @@ public class SysUserResource {
@PreAuthorize
(
"hasPermission(this.sysuserService.get(#sysuser_id),'ibzuaa-SysUser-Remove')"
)
@PreAuthorize
(
"hasPermission(this.sysuserService.get(#sysuser_id),'ibzuaa-SysUser-Remove')"
)
@ApiOperation
(
value
=
"删除系统用户"
,
tags
=
{
"系统用户"
},
notes
=
"删除系统用户"
)
@ApiOperation
(
value
=
"删除系统用户"
,
tags
=
{
"系统用户"
},
notes
=
"删除系统用户"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysusers/{sysuser_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysusers/{sysuser_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysuser_id"
)
String
sysuser_id
)
{
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysuser_id"
)
String
sysuser_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserService
.
remove
(
sysuser_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserService
.
remove
(
sysuser_id
));
}
}
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysUserRoleResource.java
浏览文件 @
424b955b
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -11,7 +11,6 @@ import com.alibaba.fastjson.JSONObject;
import
javax.servlet.ServletRequest
;
import
javax.servlet.ServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
...
@@ -50,7 +49,6 @@ public class SysUserRoleResource {
...
@@ -50,7 +49,6 @@ public class SysUserRoleResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Create-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Create-all')"
)
@ApiOperation
(
value
=
"新建用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"新建用户角色关系"
)
@ApiOperation
(
value
=
"新建用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"新建用户角色关系"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysuserroles"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysuserroles"
)
@Transactional
public
ResponseEntity
<
SysUserRoleDTO
>
create
(
@RequestBody
SysUserRoleDTO
sysuserroledto
)
{
public
ResponseEntity
<
SysUserRoleDTO
>
create
(
@RequestBody
SysUserRoleDTO
sysuserroledto
)
{
SysUserRole
domain
=
sysuserroleMapping
.
toDomain
(
sysuserroledto
);
SysUserRole
domain
=
sysuserroleMapping
.
toDomain
(
sysuserroledto
);
sysuserroleService
.
create
(
domain
);
sysuserroleService
.
create
(
domain
);
...
@@ -70,7 +68,6 @@ public class SysUserRoleResource {
...
@@ -70,7 +68,6 @@ public class SysUserRoleResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Update-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Update-all')"
)
@ApiOperation
(
value
=
"更新用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"更新用户角色关系"
)
@ApiOperation
(
value
=
"更新用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"更新用户角色关系"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysuserroles/{sysuserrole_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysuserroles/{sysuserrole_id}"
)
@Transactional
public
ResponseEntity
<
SysUserRoleDTO
>
update
(
@PathVariable
(
"sysuserrole_id"
)
String
sysuserrole_id
,
@RequestBody
SysUserRoleDTO
sysuserroledto
)
{
public
ResponseEntity
<
SysUserRoleDTO
>
update
(
@PathVariable
(
"sysuserrole_id"
)
String
sysuserrole_id
,
@RequestBody
SysUserRoleDTO
sysuserroledto
)
{
SysUserRole
domain
=
sysuserroleMapping
.
toDomain
(
sysuserroledto
);
SysUserRole
domain
=
sysuserroleMapping
.
toDomain
(
sysuserroledto
);
domain
.
setUserroleid
(
sysuserrole_id
);
domain
.
setUserroleid
(
sysuserrole_id
);
...
@@ -90,7 +87,6 @@ public class SysUserRoleResource {
...
@@ -90,7 +87,6 @@ public class SysUserRoleResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Remove-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Remove-all')"
)
@ApiOperation
(
value
=
"删除用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"删除用户角色关系"
)
@ApiOperation
(
value
=
"删除用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"删除用户角色关系"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysuserroles/{sysuserrole_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysuserroles/{sysuserrole_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysuserrole_id"
)
String
sysuserrole_id
)
{
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysuserrole_id"
)
String
sysuserrole_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserroleService
.
remove
(
sysuserrole_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserroleService
.
remove
(
sysuserrole_id
));
}
}
...
@@ -163,7 +159,6 @@ public class SysUserRoleResource {
...
@@ -163,7 +159,6 @@ public class SysUserRoleResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Create-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Create-all')"
)
@ApiOperation
(
value
=
"根据系统角色建立用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"根据系统角色建立用户角色关系"
)
@ApiOperation
(
value
=
"根据系统角色建立用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"根据系统角色建立用户角色关系"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysroles/{sysrole_id}/sysuserroles"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysroles/{sysrole_id}/sysuserroles"
)
@Transactional
public
ResponseEntity
<
SysUserRoleDTO
>
createBySysRole
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@RequestBody
SysUserRoleDTO
sysuserroledto
)
{
public
ResponseEntity
<
SysUserRoleDTO
>
createBySysRole
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@RequestBody
SysUserRoleDTO
sysuserroledto
)
{
SysUserRole
domain
=
sysuserroleMapping
.
toDomain
(
sysuserroledto
);
SysUserRole
domain
=
sysuserroleMapping
.
toDomain
(
sysuserroledto
);
domain
.
setRoleid
(
sysrole_id
);
domain
.
setRoleid
(
sysrole_id
);
...
@@ -188,7 +183,6 @@ public class SysUserRoleResource {
...
@@ -188,7 +183,6 @@ public class SysUserRoleResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Update-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Update-all')"
)
@ApiOperation
(
value
=
"根据系统角色更新用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"根据系统角色更新用户角色关系"
)
@ApiOperation
(
value
=
"根据系统角色更新用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"根据系统角色更新用户角色关系"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysroles/{sysrole_id}/sysuserroles/{sysuserrole_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysroles/{sysrole_id}/sysuserroles/{sysuserrole_id}"
)
@Transactional
public
ResponseEntity
<
SysUserRoleDTO
>
updateBySysRole
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@PathVariable
(
"sysuserrole_id"
)
String
sysuserrole_id
,
@RequestBody
SysUserRoleDTO
sysuserroledto
)
{
public
ResponseEntity
<
SysUserRoleDTO
>
updateBySysRole
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@PathVariable
(
"sysuserrole_id"
)
String
sysuserrole_id
,
@RequestBody
SysUserRoleDTO
sysuserroledto
)
{
SysUserRole
domain
=
sysuserroleMapping
.
toDomain
(
sysuserroledto
);
SysUserRole
domain
=
sysuserroleMapping
.
toDomain
(
sysuserroledto
);
domain
.
setRoleid
(
sysrole_id
);
domain
.
setRoleid
(
sysrole_id
);
...
@@ -213,7 +207,6 @@ public class SysUserRoleResource {
...
@@ -213,7 +207,6 @@ public class SysUserRoleResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Remove-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Remove-all')"
)
@ApiOperation
(
value
=
"根据系统角色删除用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"根据系统角色删除用户角色关系"
)
@ApiOperation
(
value
=
"根据系统角色删除用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"根据系统角色删除用户角色关系"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysroles/{sysrole_id}/sysuserroles/{sysuserrole_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysroles/{sysrole_id}/sysuserroles/{sysuserrole_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
removeBySysRole
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@PathVariable
(
"sysuserrole_id"
)
String
sysuserrole_id
)
{
public
ResponseEntity
<
Boolean
>
removeBySysRole
(
@PathVariable
(
"sysrole_id"
)
String
sysrole_id
,
@PathVariable
(
"sysuserrole_id"
)
String
sysuserrole_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserroleService
.
remove
(
sysuserrole_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserroleService
.
remove
(
sysuserrole_id
));
}
}
...
@@ -296,7 +289,6 @@ public class SysUserRoleResource {
...
@@ -296,7 +289,6 @@ public class SysUserRoleResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Create-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Create-all')"
)
@ApiOperation
(
value
=
"根据系统用户建立用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"根据系统用户建立用户角色关系"
)
@ApiOperation
(
value
=
"根据系统用户建立用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"根据系统用户建立用户角色关系"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysusers/{sysuser_id}/sysuserroles"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysusers/{sysuser_id}/sysuserroles"
)
@Transactional
public
ResponseEntity
<
SysUserRoleDTO
>
createBySysUser
(
@PathVariable
(
"sysuser_id"
)
String
sysuser_id
,
@RequestBody
SysUserRoleDTO
sysuserroledto
)
{
public
ResponseEntity
<
SysUserRoleDTO
>
createBySysUser
(
@PathVariable
(
"sysuser_id"
)
String
sysuser_id
,
@RequestBody
SysUserRoleDTO
sysuserroledto
)
{
SysUserRole
domain
=
sysuserroleMapping
.
toDomain
(
sysuserroledto
);
SysUserRole
domain
=
sysuserroleMapping
.
toDomain
(
sysuserroledto
);
domain
.
setUserid
(
sysuser_id
);
domain
.
setUserid
(
sysuser_id
);
...
@@ -321,7 +313,6 @@ public class SysUserRoleResource {
...
@@ -321,7 +313,6 @@ public class SysUserRoleResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Update-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Update-all')"
)
@ApiOperation
(
value
=
"根据系统用户更新用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"根据系统用户更新用户角色关系"
)
@ApiOperation
(
value
=
"根据系统用户更新用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"根据系统用户更新用户角色关系"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysusers/{sysuser_id}/sysuserroles/{sysuserrole_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysusers/{sysuser_id}/sysuserroles/{sysuserrole_id}"
)
@Transactional
public
ResponseEntity
<
SysUserRoleDTO
>
updateBySysUser
(
@PathVariable
(
"sysuser_id"
)
String
sysuser_id
,
@PathVariable
(
"sysuserrole_id"
)
String
sysuserrole_id
,
@RequestBody
SysUserRoleDTO
sysuserroledto
)
{
public
ResponseEntity
<
SysUserRoleDTO
>
updateBySysUser
(
@PathVariable
(
"sysuser_id"
)
String
sysuser_id
,
@PathVariable
(
"sysuserrole_id"
)
String
sysuserrole_id
,
@RequestBody
SysUserRoleDTO
sysuserroledto
)
{
SysUserRole
domain
=
sysuserroleMapping
.
toDomain
(
sysuserroledto
);
SysUserRole
domain
=
sysuserroleMapping
.
toDomain
(
sysuserroledto
);
domain
.
setUserid
(
sysuser_id
);
domain
.
setUserid
(
sysuser_id
);
...
@@ -346,7 +337,6 @@ public class SysUserRoleResource {
...
@@ -346,7 +337,6 @@ public class SysUserRoleResource {
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Remove-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserRole-Remove-all')"
)
@ApiOperation
(
value
=
"根据系统用户删除用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"根据系统用户删除用户角色关系"
)
@ApiOperation
(
value
=
"根据系统用户删除用户角色关系"
,
tags
=
{
"用户角色关系"
},
notes
=
"根据系统用户删除用户角色关系"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysusers/{sysuser_id}/sysuserroles/{sysuserrole_id}"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysusers/{sysuser_id}/sysuserroles/{sysuserrole_id}"
)
@Transactional
public
ResponseEntity
<
Boolean
>
removeBySysUser
(
@PathVariable
(
"sysuser_id"
)
String
sysuser_id
,
@PathVariable
(
"sysuserrole_id"
)
String
sysuserrole_id
)
{
public
ResponseEntity
<
Boolean
>
removeBySysUser
(
@PathVariable
(
"sysuser_id"
)
String
sysuser_id
,
@PathVariable
(
"sysuserrole_id"
)
String
sysuserrole_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserroleService
.
remove
(
sysuserrole_id
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserroleService
.
remove
(
sysuserrole_id
));
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录