package com.xzx.gc.role.rbac.da;
|
|
|
import com.xzx.gc.role.rbac.AccessType;
|
import com.xzx.gc.role.rbac.DataAccess;
|
import com.xzx.gc.role.rbac.DataAccessResullt;
|
import com.xzx.gc.role.service.CorePlatformService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Component;
|
|
import java.util.Arrays;
|
|
/**
|
* 同机构
|
* @author lijiazhi
|
*
|
*/
|
@Component
|
public class SameOrgDataAccess implements DataAccess {
|
|
@Autowired
|
CorePlatformService platformService;
|
|
@Override
|
public DataAccessResullt getOrg(Long userId, Long orgId) {
|
DataAccessResullt ret = new DataAccessResullt();
|
ret.setStatus(AccessType.OnlyOrg);
|
ret.setOrgIds(Arrays.asList(orgId));
|
return ret;
|
|
}
|
|
@Override
|
public String getName() {
|
return "同结构";
|
}
|
|
@Override
|
public Integer getType() {
|
return 3;
|
}
|
|
}
|