提交 86587eff 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 bd08f543
......@@ -1346,6 +1346,33 @@ export default class SYS_ROLE_PERMISSIONEditViewBase extends Vue {
}
}
/**
* 销毁视图回调
*
* @memberof SYS_ROLE_PERMISSIONEditViewBase
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_ROLE_PERMISSIONEditViewBase
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
}
</script>
......
......@@ -1378,6 +1378,33 @@ export default class SYS_ROLE_PERMISSIONEditView2Base extends Vue {
}
}
/**
* 销毁视图回调
*
* @memberof SYS_ROLE_PERMISSIONEditView2Base
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_ROLE_PERMISSIONEditView2Base
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
/**
* 选中数据
*
......
......@@ -1093,9 +1093,11 @@ export default class SYS_ROLE_PERMISSIONGridViewBase extends Vue {
Object.assign(curViewParam,args[0]);
}
let deResParameters: any[] = [];
deResParameters = [
if(curViewParam.sys_permission && true){
deResParameters = [
{ pathName: 'sys_permissions', parameterName: 'sys_permission' },
];
]
}
const parameters: any[] = [
{ pathName: 'sys_role_permissions', parameterName: 'sys_role_permission' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -1128,9 +1130,11 @@ export default class SYS_ROLE_PERMISSIONGridViewBase extends Vue {
Object.assign(curViewParam,args[0]);
}
let deResParameters: any[] = [];
deResParameters = [
if(curViewParam.sys_permission && true){
deResParameters = [
{ pathName: 'sys_permissions', parameterName: 'sys_permission' },
];
]
}
const parameters: any[] = [
{ pathName: 'sys_role_permissions', parameterName: 'sys_role_permission' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -1419,6 +1423,33 @@ export default class SYS_ROLE_PERMISSIONGridViewBase extends Vue {
}
}
/**
* 销毁视图回调
*
* @memberof SYS_ROLE_PERMISSIONGridViewBase
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_ROLE_PERMISSIONGridViewBase
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
/**
* 是否单选
*
......
......@@ -523,6 +523,33 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}
}
/**
* 销毁视图回调
*
* @memberof SYS_ROLE_PERMISSIONMPickupViewBase
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_ROLE_PERMISSIONMPickupViewBase
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
/**
* 是否显示按钮
*
......
......@@ -540,6 +540,33 @@ export default class SYS_ROLE_PERMISSIONPickupGridViewBase extends Vue {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}
}
/**
* 销毁视图回调
*
* @memberof SYS_ROLE_PERMISSIONPickupGridViewBase
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_ROLE_PERMISSIONPickupGridViewBase
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
/**
* 选中数据字符串
*
......
......@@ -489,6 +489,33 @@ export default class SYS_ROLE_PERMISSIONPickupViewBase extends Vue {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}
}
/**
* 销毁视图回调
*
* @memberof SYS_ROLE_PERMISSIONPickupViewBase
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_ROLE_PERMISSIONPickupViewBase
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
/**
* 选中数据的字符串
*
......
......@@ -401,6 +401,33 @@ export default class SYS_ROLE_PERMISSIONRedirectViewBase extends Vue {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}
}
/**
* 销毁视图回调
*
* @memberof SYS_ROLE_PERMISSIONRedirectViewBase
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_ROLE_PERMISSIONRedirectViewBase
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
/**
* 初始化视图
*
......
......@@ -1346,6 +1346,33 @@ export default class SYS_USER_ROLEEditViewBase extends Vue {
}
}
/**
* 销毁视图回调
*
* @memberof SYS_USER_ROLEEditViewBase
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_USER_ROLEEditViewBase
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
}
</script>
......
......@@ -1378,6 +1378,33 @@ export default class SYS_USER_ROLEEditView2Base extends Vue {
}
}
/**
* 销毁视图回调
*
* @memberof SYS_USER_ROLEEditView2Base
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_USER_ROLEEditView2Base
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
/**
* 选中数据
*
......
......@@ -1093,9 +1093,11 @@ export default class SYS_USER_ROLEGridViewBase extends Vue {
Object.assign(curViewParam,args[0]);
}
let deResParameters: any[] = [];
deResParameters = [
if(curViewParam.sys_role && true){
deResParameters = [
{ pathName: 'sys_roles', parameterName: 'sys_role' },
];
]
}
const parameters: any[] = [
{ pathName: 'sys_user_roles', parameterName: 'sys_user_role' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -1128,9 +1130,11 @@ export default class SYS_USER_ROLEGridViewBase extends Vue {
Object.assign(curViewParam,args[0]);
}
let deResParameters: any[] = [];
deResParameters = [
if(curViewParam.sys_role && true){
deResParameters = [
{ pathName: 'sys_roles', parameterName: 'sys_role' },
];
]
}
const parameters: any[] = [
{ pathName: 'sys_user_roles', parameterName: 'sys_user_role' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -1419,6 +1423,33 @@ export default class SYS_USER_ROLEGridViewBase extends Vue {
}
}
/**
* 销毁视图回调
*
* @memberof SYS_USER_ROLEGridViewBase
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_USER_ROLEGridViewBase
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
/**
* 是否单选
*
......
......@@ -523,6 +523,33 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}
}
/**
* 销毁视图回调
*
* @memberof SYS_USER_ROLEMPickupViewBase
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_USER_ROLEMPickupViewBase
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
/**
* 是否显示按钮
*
......
......@@ -540,6 +540,33 @@ export default class SYS_USER_ROLEPickupGridViewBase extends Vue {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}
}
/**
* 销毁视图回调
*
* @memberof SYS_USER_ROLEPickupGridViewBase
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_USER_ROLEPickupGridViewBase
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
/**
* 选中数据字符串
*
......
......@@ -489,6 +489,33 @@ export default class SYS_USER_ROLEPickupViewBase extends Vue {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}
}
/**
* 销毁视图回调
*
* @memberof SYS_USER_ROLEPickupViewBase
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_USER_ROLEPickupViewBase
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
/**
* 选中数据的字符串
*
......
......@@ -401,6 +401,33 @@ export default class SYS_USER_ROLERedirectViewBase extends Vue {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}
}
/**
* 销毁视图回调
*
* @memberof SYS_USER_ROLERedirectViewBase
*/
protected destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof SYS_USER_ROLERedirectViewBase
*/
protected afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
/**
* 初始化视图
*
......
......@@ -36,6 +36,25 @@ export default class SYS_ROLE_PERMISSIONServiceBase extends EntityService {
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SYS_ROLE_PERMISSIONServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sys_role && context.sys_role_permission){
return Http.getInstance().get(`/sys_roles/${context.sys_role}/sys_role_permissions/${context.sys_role_permission}/select`,isloading);
}
if(context.sys_permission && context.sys_role_permission){
return Http.getInstance().get(`/sys_permissions/${context.sys_permission}/sys_role_permissions/${context.sys_role_permission}/select`,isloading);
}
return Http.getInstance().get(`/sys_role_permissions/${context.sys_role_permission}/select`,isloading);
}
/**
* FetchDefault接口方法
*
......@@ -46,26 +65,15 @@ export default class SYS_ROLE_PERMISSIONServiceBase extends EntityService {
* @memberof SYS_ROLE_PERMISSIONServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// FetchDefault ---FETCH
if(context.srfsessionkey && !Object.is(this.tempStorage.getItem(context.srfsessionkey+'_sys_role_permissions'),'undefined')){
let result:any = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_sys_role_permissions') as any);
if(result){
return {"status":200,"data":result};
}else{
return {"status":200,"data":[]};
}
}else{
return {"status":200,"data":[]};
if(context.sys_role && true){
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sys_roles/${context.sys_role}/sys_role_permissions/select`,tempData,isloading);
}
if(context.srfsessionkey && !Object.is(this.tempStorage.getItem(context.srfsessionkey+'_sys_role_permissions'),'undefined')){
let result:any = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_sys_role_permissions') as any);
if(result){
return {"status":200,"data":result};
}else{
return {"status":200,"data":[]};
}
}else{
return {"status":200,"data":[]};
if(context.sys_permission && true){
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sys_permissions/${context.sys_permission}/sys_role_permissions/select`,tempData,isloading);
}
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sys_role_permissions/select`,tempData,isloading);
}
}
\ No newline at end of file
......@@ -36,6 +36,25 @@ export default class SYS_USER_ROLEServiceBase extends EntityService {
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SYS_USER_ROLEServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sys_user && context.sys_user_role){
return Http.getInstance().get(`/sys_users/${context.sys_user}/sys_user_roles/${context.sys_user_role}/select`,isloading);
}
if(context.sys_role && context.sys_user_role){
return Http.getInstance().get(`/sys_roles/${context.sys_role}/sys_user_roles/${context.sys_user_role}/select`,isloading);
}
return Http.getInstance().get(`/sys_user_roles/${context.sys_user_role}/select`,isloading);
}
/**
* FetchDefault接口方法
*
......@@ -46,26 +65,15 @@ export default class SYS_USER_ROLEServiceBase extends EntityService {
* @memberof SYS_USER_ROLEServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
// FetchDefault ---FETCH
if(context.srfsessionkey && !Object.is(this.tempStorage.getItem(context.srfsessionkey+'_sys_user_roles'),'undefined')){
let result:any = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_sys_user_roles') as any);
if(result){
return {"status":200,"data":result};
}else{
return {"status":200,"data":[]};
}
}else{
return {"status":200,"data":[]};
if(context.sys_user && true){
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sys_users/${context.sys_user}/sys_user_roles/select`,tempData,isloading);
}
if(context.srfsessionkey && !Object.is(this.tempStorage.getItem(context.srfsessionkey+'_sys_user_roles'),'undefined')){
let result:any = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_sys_user_roles') as any);
if(result){
return {"status":200,"data":result};
}else{
return {"status":200,"data":[]};
}
}else{
return {"status":200,"data":[]};
if(context.sys_role && true){
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sys_roles/${context.sys_role}/sys_user_roles/select`,tempData,isloading);
}
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sys_user_roles/select`,tempData,isloading);
}
}
\ No newline at end of file
......@@ -45,16 +45,6 @@ export default class DefaultModel {
{
name: 'systemid',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
{
name: 'sys_permission',
prop: 'permissionid',
dataType: 'FONTKEY',
},
]
}
......
......@@ -25,16 +25,6 @@ export default class DefaultModel {
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
{
name: 'sys_permission',
prop: 'permissionid',
dataType: 'FONTKEY',
},
]
}
......
......@@ -85,16 +85,6 @@ export default class MainModel {
prop: 'rolepermissionid',
dataType: 'GUID',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
{
name: 'sys_permission',
prop: 'permissionid',
dataType: 'FONTKEY',
},
{
name: 'sys_role_permission',
prop: 'rolepermissionid',
......
......@@ -71,30 +71,10 @@ export default class MainModel {
prop: 'permissionname',
dataType: 'PICKUPTEXT',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
{
name: 'sys_permission',
prop: 'permissionid',
dataType: 'FONTKEY',
},
{
name: 'sys_role_permission',
prop: 'rolepermissionid',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
{
name: 'sys_permission',
prop: 'permissionid',
dataType: 'FONTKEY',
},
{
name:'size',
......
......@@ -45,16 +45,6 @@ export default class MPickupViewpickupviewpanelModel {
{
name: 'systemid',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
{
name: 'sys_permission',
prop: 'permissionid',
dataType: 'FONTKEY',
},
]
}
......
......@@ -45,16 +45,6 @@ export default class PickupViewpickupviewpanelModel {
{
name: 'systemid',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
{
name: 'sys_permission',
prop: 'permissionid',
dataType: 'FONTKEY',
},
]
}
......
......@@ -39,16 +39,6 @@ export default class DefaultModel {
{
name: 'updatedate',
},
{
name: 'sys_user',
prop: 'userid',
dataType: 'FONTKEY',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
]
}
......
......@@ -25,16 +25,6 @@ export default class DefaultModel {
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'sys_user',
prop: 'userid',
dataType: 'FONTKEY',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
]
}
......
......@@ -85,16 +85,6 @@ export default class MainModel {
prop: 'userid',
dataType: 'PICKUP',
},
{
name: 'sys_user',
prop: 'userid',
dataType: 'FONTKEY',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
{
name: 'sys_user_role',
prop: 'userroleid',
......
......@@ -66,30 +66,10 @@ export default class MainModel {
prop: 'userid',
dataType: 'PICKUP',
},
{
name: 'sys_user',
prop: 'userid',
dataType: 'FONTKEY',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
{
name: 'sys_user_role',
prop: 'userroleid',
},
{
name: 'sys_user',
prop: 'userid',
dataType: 'FONTKEY',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
{
name:'size',
......
......@@ -39,16 +39,6 @@ export default class MPickupViewpickupviewpanelModel {
{
name: 'updatedate',
},
{
name: 'sys_user',
prop: 'userid',
dataType: 'FONTKEY',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
]
}
......
......@@ -39,16 +39,6 @@ export default class PickupViewpickupviewpanelModel {
{
name: 'updatedate',
},
{
name: 'sys_user',
prop: 'userid',
dataType: 'FONTKEY',
},
{
name: 'sys_role',
prop: 'roleid',
dataType: 'FONTKEY',
},
]
}
......
......@@ -115,12 +115,5 @@ public class SYS_PERMISSIONDTO extends DTOBase implements Serializable {
}
/**
* [SYS_ROLE_PERMISSION]
*/
@JsonProperty("sys_role_permissions")
@JSONField(name = "sys_role_permissions")
private List<SYS_ROLE_PERMISSIONDTO> ;
}
......@@ -83,19 +83,5 @@ public class SYS_ROLEDTO extends DTOBase implements Serializable {
}
/**
* [SYS_ROLE_PERMISSION]
*/
@JsonProperty("sys_role_permissions")
@JSONField(name = "sys_role_permissions")
private List<SYS_ROLE_PERMISSIONDTO> ;
/**
* [SYS_USER_ROLE]
*/
@JsonProperty("sys_user_roles")
@JSONField(name = "sys_user_roles")
private List<SYS_USER_ROLEDTO> ;
}
......@@ -65,12 +65,5 @@ public class SYS_USERDTO extends DTOBase implements Serializable {
}
/**
* [SYS_USER_ROLE]
*/
@JsonProperty("sys_user_roles")
@JSONField(name = "sys_user_roles")
private List<SYS_USER_ROLEDTO> ;
}
......@@ -38,9 +38,6 @@ import cn.ibizlab.core.uaa.filter.SYS_PERMISSIONSearchContext;
import cn.ibizlab.core.uaa.filter.SYS_ROLE_PERMISSIONSearchContext;
import cn.ibizlab.core.uaa.domain.SYS_ROLE_PERMISSION;
import cn.ibizlab.core.uaa.service.ISYS_ROLE_PERMISSIONService;
@Slf4j
@Api(tags = {"SYS_PERMISSION" })
......@@ -55,10 +52,6 @@ public class SYS_PERMISSIONResource {
@Lazy
private SYS_PERMISSIONMapping sys_permissionMapping;
@Autowired
private ISYS_ROLE_PERMISSIONService sys_role_permissionService;
/**
* 用户权限校验
......
......@@ -38,12 +38,6 @@ import cn.ibizlab.core.uaa.filter.SYS_ROLESearchContext;
import cn.ibizlab.core.uaa.filter.SYS_ROLE_PERMISSIONSearchContext;
import cn.ibizlab.core.uaa.domain.SYS_ROLE_PERMISSION;
import cn.ibizlab.core.uaa.service.ISYS_ROLE_PERMISSIONService;
import cn.ibizlab.core.uaa.filter.SYS_USER_ROLESearchContext;
import cn.ibizlab.core.uaa.domain.SYS_USER_ROLE;
import cn.ibizlab.core.uaa.service.ISYS_USER_ROLEService;
@Slf4j
@Api(tags = {"SYS_ROLE" })
......@@ -58,14 +52,6 @@ public class SYS_ROLEResource {
@Lazy
private SYS_ROLEMapping sys_roleMapping;
@Autowired
private ISYS_ROLE_PERMISSIONService sys_role_permissionService;
@Autowired
private ISYS_USER_ROLEService sys_user_roleService;
/**
* 用户权限校验
......
package cn.ibizlab.uaaapi.rest;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.ServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.http.HttpStatus;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.StringUtils;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import cn.ibizlab.uaaapi.dto.*;
import cn.ibizlab.uaaapi.mapping.*;
import cn.ibizlab.core.uaa.domain.SYS_ROLE_PERMISSION;
import cn.ibizlab.core.uaa.service.ISYS_ROLE_PERMISSIONService;
import cn.ibizlab.core.uaa.filter.SYS_ROLE_PERMISSIONSearchContext;
@Slf4j
@Api(tags = {"SYS_ROLE_PERMISSION" })
@RestController("uaaapi-sys_role_permission")
@RequestMapping("")
public class SYS_ROLE_PERMISSIONResource {
@Autowired
private ISYS_ROLE_PERMISSIONService sys_role_permissionService;
@Autowired
@Lazy
private SYS_ROLE_PERMISSIONMapping sys_role_permissionMapping;
/**
* 用户权限校验
* @return
*/
public SYS_ROLE_PERMISSION getEntity(){
return new SYS_ROLE_PERMISSION();
}
}
......@@ -38,9 +38,6 @@ import cn.ibizlab.core.uaa.filter.SYS_USERSearchContext;
import cn.ibizlab.core.uaa.filter.SYS_USER_ROLESearchContext;
import cn.ibizlab.core.uaa.domain.SYS_USER_ROLE;
import cn.ibizlab.core.uaa.service.ISYS_USER_ROLEService;
@Slf4j
@Api(tags = {"SYS_USER" })
......@@ -55,10 +52,6 @@ public class SYS_USERResource {
@Lazy
private SYS_USERMapping sys_userMapping;
@Autowired
private ISYS_USER_ROLEService sys_user_roleService;
/**
* 用户权限校验
......
package cn.ibizlab.uaaapi.rest;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.ServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.http.HttpStatus;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.StringUtils;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import cn.ibizlab.uaaapi.dto.*;
import cn.ibizlab.uaaapi.mapping.*;
import cn.ibizlab.core.uaa.domain.SYS_USER_ROLE;
import cn.ibizlab.core.uaa.service.ISYS_USER_ROLEService;
import cn.ibizlab.core.uaa.filter.SYS_USER_ROLESearchContext;
@Slf4j
@Api(tags = {"SYS_USER_ROLE" })
@RestController("uaaapi-sys_user_role")
@RequestMapping("")
public class SYS_USER_ROLEResource {
@Autowired
private ISYS_USER_ROLEService sys_user_roleService;
@Autowired
@Lazy
private SYS_USER_ROLEMapping sys_user_roleMapping;
/**
* 用户权限校验
* @return
*/
public SYS_USER_ROLE getEntity(){
return new SYS_USER_ROLE();
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册