feat: update
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
package com.schisandra.auth.domain.convert;
|
||||
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthUserBO;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthUser;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
@@ -21,18 +19,18 @@ public interface SchisandraAuthRoleBOConverter {
|
||||
SchisandraAuthRoleBOConverter INSTANCE = Mappers.getMapper(SchisandraAuthRoleBOConverter.class);
|
||||
|
||||
/**
|
||||
* @description 将bo转换为实体
|
||||
* @param schisandraAuthRoleBO
|
||||
* @return com.schisandra.auth.infra.basic.bo.SchisandraRoleUser
|
||||
* @description 将bo转换为实体
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:13
|
||||
*/
|
||||
SchisandraAuthRole convertBOToEntity(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||
|
||||
/**
|
||||
* @description 将实体转换为bo
|
||||
* @param schisandraAuthRole
|
||||
* @return com.schisandra.auth.domain.bo.SchisandraAuthRoleBO
|
||||
* @description 将实体转换为bo
|
||||
* @author schisandra
|
||||
* @date 2024/3/21 23:13
|
||||
*/
|
||||
|
@@ -2,7 +2,6 @@ package com.schisandra.auth.domain.service;
|
||||
|
||||
import com.schisandra.auth.domain.bo.SchisandraAuthRoleBO;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthRole;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* ClassName:SchisandraAuthRoleDomainService
|
||||
@@ -16,37 +15,40 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
public interface SchisandraAuthRoleDomainService {
|
||||
/***
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 更新角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:02
|
||||
*/
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 更新角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:02
|
||||
*/
|
||||
Object update(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||
|
||||
/***
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 删除角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:03
|
||||
*/
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 删除角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:03
|
||||
*/
|
||||
Object delete(Long id);
|
||||
|
||||
/***
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 新增角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:03
|
||||
*/
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 新增角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:03
|
||||
*/
|
||||
|
||||
int insert(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||
|
||||
/***
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 查询角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:04
|
||||
*/
|
||||
*@ClassName: SchisandraAuthRoleDomainService
|
||||
*@Description 查询角色信息
|
||||
*@Author Fanyang
|
||||
*@Date 2024/4/4
|
||||
*@Time 21:04
|
||||
*/
|
||||
|
||||
Object select(SchisandraAuthRoleBO schisandraAuthRoleBO);
|
||||
|
||||
|
@@ -1,8 +1,13 @@
|
||||
package com.schisandra.auth.infra.basic.service.impl;
|
||||
|
||||
import com.mybatisflex.spring.service.impl.CacheableServiceImpl;
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthPermissionDao;
|
||||
import com.schisandra.auth.infra.basic.dao.SchisandraAuthRolePermissionDao;
|
||||
import com.schisandra.auth.infra.basic.entity.SchisandraAuthPermission;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthPermissionService;
|
||||
import com.schisandra.auth.infra.basic.service.SchisandraAuthRolePermissionService;
|
||||
import org.springframework.cache.annotation.CacheConfig;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.PageImpl;
|
||||
import org.springframework.data.domain.PageRequest;
|
||||
@@ -18,7 +23,8 @@ import java.util.List;
|
||||
* @since 2024-04-11 13:00:10
|
||||
*/
|
||||
@Service("schisandraAuthPermissionService")
|
||||
public class SchisandraAuthPermissionServiceImpl implements SchisandraAuthPermissionService {
|
||||
@CacheConfig(cacheNames = "AuthPermission")
|
||||
public class SchisandraAuthPermissionServiceImpl extends CacheableServiceImpl<SchisandraAuthPermissionDao,SchisandraAuthPermission> implements SchisandraAuthPermissionService {
|
||||
@Resource
|
||||
private SchisandraAuthPermissionDao schisandraAuthPermissionDao;
|
||||
|
||||
@@ -29,6 +35,7 @@ public class SchisandraAuthPermissionServiceImpl implements SchisandraAuthPermis
|
||||
* @return 实例对象
|
||||
*/
|
||||
@Override
|
||||
@Cacheable(key = "#id")
|
||||
public SchisandraAuthPermission queryById(Long id) {
|
||||
return this.schisandraAuthPermissionDao.selectOneById(id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user