生成外监管链表接口、rpc服务和实现类
This commit is contained in:
parent
0595ce820d
commit
ccf59250dc
|
@ -0,0 +1,14 @@
|
||||||
|
package com.zheng.upms.rpc.api;
|
||||||
|
|
||||||
|
import com.zheng.common.base.BaseService;
|
||||||
|
import com.zheng.upms.dao.model.UpmsRolePermission;
|
||||||
|
import com.zheng.upms.dao.model.UpmsRolePermissionExample;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 角色权限service接口
|
||||||
|
* Created by shuzheng on 2017/2/26.
|
||||||
|
*/
|
||||||
|
public interface UpmsRolePermissionService extends BaseService<UpmsRolePermission, UpmsRolePermissionExample> {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
package com.zheng.upms.rpc.api;
|
||||||
|
|
||||||
|
import com.zheng.common.base.BaseServiceMock;
|
||||||
|
import com.zheng.upms.dao.mapper.UpmsRolePermissionMapper;
|
||||||
|
import com.zheng.upms.dao.model.UpmsRolePermission;
|
||||||
|
import com.zheng.upms.dao.model.UpmsRolePermissionExample;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 降级实现UpmsRolePermissionService接口
|
||||||
|
* Created by shuzheng on 2017/2/26.
|
||||||
|
*/
|
||||||
|
public class UpmsRolePermissionServiceMock extends BaseServiceMock<UpmsRolePermissionMapper, UpmsRolePermission, UpmsRolePermissionExample> implements UpmsRolePermissionService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
package com.zheng.upms.rpc.api;
|
||||||
|
|
||||||
|
import com.zheng.common.base.BaseService;
|
||||||
|
import com.zheng.upms.dao.model.UpmsUserPermission;
|
||||||
|
import com.zheng.upms.dao.model.UpmsUserPermissionExample;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户权限service接口
|
||||||
|
* Created by shuzheng on 2017/2/26.
|
||||||
|
*/
|
||||||
|
public interface UpmsUserPermissionService extends BaseService<UpmsUserPermission, UpmsUserPermissionExample> {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
package com.zheng.upms.rpc.api;
|
||||||
|
|
||||||
|
import com.zheng.common.base.BaseServiceMock;
|
||||||
|
import com.zheng.upms.dao.mapper.UpmsUserPermissionMapper;
|
||||||
|
import com.zheng.upms.dao.model.UpmsUserPermission;
|
||||||
|
import com.zheng.upms.dao.model.UpmsUserPermissionExample;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 降级实现UpmsUserPermissionService接口
|
||||||
|
* Created by shuzheng on 2017/2/26.
|
||||||
|
*/
|
||||||
|
public class UpmsUserPermissionServiceMock extends BaseServiceMock<UpmsUserPermissionMapper, UpmsUserPermission, UpmsUserPermissionExample> implements UpmsUserPermissionService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
package com.zheng.upms.rpc.api;
|
||||||
|
|
||||||
|
import com.zheng.common.base.BaseService;
|
||||||
|
import com.zheng.upms.dao.model.UpmsUserRole;
|
||||||
|
import com.zheng.upms.dao.model.UpmsUserRoleExample;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户角色service接口
|
||||||
|
* Created by shuzheng on 2017/2/26.
|
||||||
|
*/
|
||||||
|
public interface UpmsUserRoleService extends BaseService<UpmsUserRole, UpmsUserRoleExample> {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
package com.zheng.upms.rpc.api;
|
||||||
|
|
||||||
|
import com.zheng.common.base.BaseServiceMock;
|
||||||
|
import com.zheng.upms.dao.mapper.UpmsUserRoleMapper;
|
||||||
|
import com.zheng.upms.dao.model.UpmsUserRole;
|
||||||
|
import com.zheng.upms.dao.model.UpmsUserRoleExample;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 降级实现UpmsUserRoleService接口
|
||||||
|
* Created by shuzheng on 2017/2/26.
|
||||||
|
*/
|
||||||
|
public class UpmsUserRoleServiceMock extends BaseServiceMock<UpmsUserRoleMapper, UpmsUserRole, UpmsUserRoleExample> implements UpmsUserRoleService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,33 @@
|
||||||
|
package com.zheng.upms.rpc.service.impl;
|
||||||
|
|
||||||
|
import com.zheng.common.annotation.BaseService;
|
||||||
|
import com.zheng.common.base.BaseServiceImpl;
|
||||||
|
import com.zheng.upms.dao.mapper.UpmsPermissionMapper;
|
||||||
|
import com.zheng.upms.dao.mapper.UpmsRolePermissionMapper;
|
||||||
|
import com.zheng.upms.dao.model.UpmsPermission;
|
||||||
|
import com.zheng.upms.dao.model.UpmsPermissionExample;
|
||||||
|
import com.zheng.upms.dao.model.UpmsRolePermission;
|
||||||
|
import com.zheng.upms.dao.model.UpmsRolePermissionExample;
|
||||||
|
import com.zheng.upms.rpc.api.UpmsPermissionService;
|
||||||
|
import com.zheng.upms.rpc.api.UpmsRolePermissionService;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 角色权限service实现
|
||||||
|
* Created by shuzheng on 2017/2/26.
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Transactional
|
||||||
|
@BaseService
|
||||||
|
public class UpmsRolePermissionServiceImpl extends BaseServiceImpl<UpmsRolePermissionMapper, UpmsRolePermission, UpmsRolePermissionExample> implements UpmsRolePermissionService {
|
||||||
|
|
||||||
|
private static Logger _log = LoggerFactory.getLogger(UpmsRolePermissionServiceImpl.class);
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
UpmsRolePermissionMapper upmsRolePermissionMapper;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zheng.upms.rpc.service.impl;
|
||||||
|
|
||||||
|
import com.zheng.common.annotation.BaseService;
|
||||||
|
import com.zheng.common.base.BaseServiceImpl;
|
||||||
|
import com.zheng.upms.dao.mapper.UpmsUserPermissionMapper;
|
||||||
|
import com.zheng.upms.dao.model.UpmsUserPermission;
|
||||||
|
import com.zheng.upms.dao.model.UpmsUserPermissionExample;
|
||||||
|
import com.zheng.upms.rpc.api.UpmsUserPermissionService;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户权限service实现
|
||||||
|
* Created by shuzheng on 2017/2/26.
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Transactional
|
||||||
|
@BaseService
|
||||||
|
public class UpmsUserPermissionServiceImpl extends BaseServiceImpl<UpmsUserPermissionMapper, UpmsUserPermission, UpmsUserPermissionExample> implements UpmsUserPermissionService {
|
||||||
|
|
||||||
|
private static Logger _log = LoggerFactory.getLogger(UpmsUserPermissionServiceImpl.class);
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
UpmsUserPermissionMapper upmsUserPermissionMapper;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zheng.upms.rpc.service.impl;
|
||||||
|
|
||||||
|
import com.zheng.common.annotation.BaseService;
|
||||||
|
import com.zheng.common.base.BaseServiceImpl;
|
||||||
|
import com.zheng.upms.dao.mapper.UpmsUserRoleMapper;
|
||||||
|
import com.zheng.upms.dao.model.UpmsUserRole;
|
||||||
|
import com.zheng.upms.dao.model.UpmsUserRoleExample;
|
||||||
|
import com.zheng.upms.rpc.api.UpmsUserRoleService;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户角色service实现
|
||||||
|
* Created by shuzheng on 2017/2/26.
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Transactional
|
||||||
|
@BaseService
|
||||||
|
public class UpmsUserRoleServiceImpl extends BaseServiceImpl<UpmsUserRoleMapper, UpmsUserRole, UpmsUserRoleExample> implements UpmsUserRoleService {
|
||||||
|
|
||||||
|
private static Logger _log = LoggerFactory.getLogger(UpmsUserRoleServiceImpl.class);
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
UpmsUserRoleMapper upmsUserRoleMapper;
|
||||||
|
|
||||||
|
}
|
|
@ -33,6 +33,18 @@
|
||||||
<bean id="upmsPermissionService" class="com.zheng.upms.rpc.service.impl.UpmsPermissionServiceImpl"/>
|
<bean id="upmsPermissionService" class="com.zheng.upms.rpc.service.impl.UpmsPermissionServiceImpl"/>
|
||||||
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsPermissionService" ref="upmsPermissionService" timeout="10000"/>
|
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsPermissionService" ref="upmsPermissionService" timeout="10000"/>
|
||||||
|
|
||||||
|
<!-- 角色权限 -->
|
||||||
|
<bean id="upmsRolePermissionService" class="com.zheng.upms.rpc.service.impl.UpmsRolePermissionServiceImpl"/>
|
||||||
|
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsRolePermissionService" ref="upmsRolePermissionService" timeout="10000"/>
|
||||||
|
|
||||||
|
<!-- 用户权限 -->
|
||||||
|
<bean id="upmsUserPermissionService" class="com.zheng.upms.rpc.service.impl.UpmsUserPermissionServiceImpl"/>
|
||||||
|
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsUserPermissionService" ref="upmsUserPermissionService" timeout="10000"/>
|
||||||
|
|
||||||
|
<!-- 用户角色 -->
|
||||||
|
<bean id="upmsUserRoleService" class="com.zheng.upms.rpc.service.impl.UpmsUserRoleServiceImpl"/>
|
||||||
|
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsUserRoleService" ref="upmsUserRoleService" timeout="10000"/>
|
||||||
|
|
||||||
<!-- 接口服务 -->
|
<!-- 接口服务 -->
|
||||||
<bean id="upmsApiService" class="com.zheng.upms.rpc.service.impl.UpmsApiServiceImpl"/>
|
<bean id="upmsApiService" class="com.zheng.upms.rpc.service.impl.UpmsApiServiceImpl"/>
|
||||||
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsApiService" ref="upmsApiService" timeout="10000"/>
|
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsApiService" ref="upmsApiService" timeout="10000"/>
|
||||||
|
|
|
@ -24,6 +24,12 @@
|
||||||
<dubbo:reference id="upmsRoleService" interface="com.zheng.upms.rpc.api.UpmsRoleService" mock="true"/>
|
<dubbo:reference id="upmsRoleService" interface="com.zheng.upms.rpc.api.UpmsRoleService" mock="true"/>
|
||||||
<!-- 权限 -->
|
<!-- 权限 -->
|
||||||
<dubbo:reference id="upmsPermissionService" interface="com.zheng.upms.rpc.api.UpmsPermissionService" mock="true"/>
|
<dubbo:reference id="upmsPermissionService" interface="com.zheng.upms.rpc.api.UpmsPermissionService" mock="true"/>
|
||||||
|
<!-- 角色权限 -->
|
||||||
|
<dubbo:reference id="upmsRolePermissionService" interface="com.zheng.upms.rpc.api.UpmsRolePermissionService" mock="true"/>
|
||||||
|
<!-- 用户权限 -->
|
||||||
|
<dubbo:reference id="upmsUserPermissionService" interface="com.zheng.upms.rpc.api.UpmsUserPermissionService" mock="true"/>
|
||||||
|
<!-- 用户角色 -->
|
||||||
|
<dubbo:reference id="upmsUserRoleService" interface="com.zheng.upms.rpc.api.UpmsUserRoleService" mock="true"/>
|
||||||
<!-- 接口服务 -->
|
<!-- 接口服务 -->
|
||||||
<dubbo:reference id="upmsApiService" interface="com.zheng.upms.rpc.api.UpmsApiService" mock="true"/>
|
<dubbo:reference id="upmsApiService" interface="com.zheng.upms.rpc.api.UpmsApiService" mock="true"/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue