完成upms的rpc服务提供者
This commit is contained in:
parent
db9b21e8e5
commit
5ae16a27ba
|
@ -0,0 +1,14 @@
|
|||
package com.zheng.upms.rpc.api;
|
||||
|
||||
import com.zheng.common.base.BaseService;
|
||||
import com.zheng.upms.dao.model.UpmsPermission;
|
||||
import com.zheng.upms.dao.model.UpmsPermissionExample;
|
||||
|
||||
/**
|
||||
* 权限service接口
|
||||
* Created by shuzheng on 2017/2/6.
|
||||
*/
|
||||
public interface UpmsPermissionService extends BaseService<UpmsPermission, UpmsPermissionExample> {
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.zheng.upms.rpc.api;
|
||||
|
||||
import com.zheng.common.base.BaseService;
|
||||
import com.zheng.upms.dao.model.UpmsRole;
|
||||
import com.zheng.upms.dao.model.UpmsRoleExample;
|
||||
|
||||
/**
|
||||
* 角色service接口
|
||||
* Created by shuzheng on 2017/2/6.
|
||||
*/
|
||||
public interface UpmsRoleService extends BaseService<UpmsRole, UpmsRoleExample> {
|
||||
|
||||
|
||||
}
|
|
@ -1,7 +1,6 @@
|
|||
package com.zheng.upms.rpc.api;
|
||||
|
||||
import com.zheng.common.base.BaseService;
|
||||
import com.zheng.upms.dao.mapper.UpmsSystemMapper;
|
||||
import com.zheng.upms.dao.model.UpmsSystem;
|
||||
import com.zheng.upms.dao.model.UpmsSystemExample;
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
package com.zheng.upms.rpc.api;
|
||||
|
||||
import com.zheng.common.base.BaseService;
|
||||
import com.zheng.upms.dao.model.UpmsSystem;
|
||||
import com.zheng.upms.dao.model.UpmsSystemExample;
|
||||
import com.zheng.upms.dao.model.UpmsUser;
|
||||
import com.zheng.upms.dao.model.UpmsUserExample;
|
||||
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
package com.zheng.upms.rpc.service.impl;
|
||||
|
||||
import com.zheng.common.base.BaseServiceImpl;
|
||||
import com.zheng.upms.dao.mapper.UpmsPermissionMapper;
|
||||
import com.zheng.upms.dao.model.UpmsPermission;
|
||||
import com.zheng.upms.dao.model.UpmsPermissionExample;
|
||||
import com.zheng.upms.rpc.api.UpmsPermissionService;
|
||||
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/6.
|
||||
*/
|
||||
@Service
|
||||
@Transactional
|
||||
public class UpmsPermissionServiceImpl extends BaseServiceImpl<UpmsPermissionMapper, UpmsPermission, UpmsPermissionExample> implements UpmsPermissionService {
|
||||
|
||||
private static Logger _log = LoggerFactory.getLogger(UpmsPermissionServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
UpmsPermissionMapper upmsPermissionMapper;
|
||||
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
package com.zheng.upms.rpc.service.impl;
|
||||
|
||||
import com.zheng.common.base.BaseServiceImpl;
|
||||
import com.zheng.upms.dao.mapper.UpmsRoleMapper;
|
||||
import com.zheng.upms.dao.model.UpmsRole;
|
||||
import com.zheng.upms.dao.model.UpmsRoleExample;
|
||||
import com.zheng.upms.rpc.api.UpmsRoleService;
|
||||
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/6.
|
||||
*/
|
||||
@Service
|
||||
@Transactional
|
||||
public class UpmsRoleServiceImpl extends BaseServiceImpl<UpmsRoleMapper, UpmsRole, UpmsRoleExample> implements UpmsRoleService {
|
||||
|
||||
private static Logger _log = LoggerFactory.getLogger(UpmsRoleServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
UpmsRoleMapper upmsRoleMapper;
|
||||
|
||||
}
|
|
@ -17,8 +17,20 @@
|
|||
<bean id="upmsSystemService" class="com.zheng.upms.rpc.service.impl.UpmsSystemServiceImpl"/>
|
||||
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsSystemService" ref="upmsSystemService"/>
|
||||
|
||||
<!-- 组织 -->
|
||||
<bean id="upmsOrganizationService" class="com.zheng.upms.rpc.service.impl.UpmsOrganizationServiceImpl"/>
|
||||
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsOrganizationService" ref="upmsOrganizationService"/>
|
||||
|
||||
<!-- 用户 -->
|
||||
<bean id="upmsUserService" class="com.zheng.upms.rpc.service.impl.UpmsUserServiceImpl"/>
|
||||
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsUserService" ref="upmsUserService"/>
|
||||
|
||||
<!-- 角色 -->
|
||||
<bean id="upmsRoleService" class="com.zheng.upms.rpc.service.impl.UpmsRoleServiceImpl"/>
|
||||
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsRoleService" ref="upmsRoleService"/>
|
||||
|
||||
<!-- 权限 -->
|
||||
<bean id="upmsPermissionService" class="com.zheng.upms.rpc.service.impl.UpmsPermissionServiceImpl"/>
|
||||
<dubbo:service interface="com.zheng.upms.rpc.api.UpmsPermissionService" ref="upmsPermissionService"/>
|
||||
|
||||
</beans>
|
Loading…
Reference in New Issue