自动发布文章,权限插入
This commit is contained in:
@@ -7,6 +7,7 @@ import org.xyzh.common.dto.resource.TbResource;
|
||||
import org.xyzh.common.dto.usercenter.TbUserCollection;
|
||||
import org.xyzh.common.vo.ResourceVO;
|
||||
import org.xyzh.common.vo.TaskItemVO;
|
||||
import org.xyzh.common.vo.UserDeptRoleVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -56,14 +57,24 @@ public interface ResourceService {
|
||||
ResultDomain<ResourceVO> getResourceById(String resourceID);
|
||||
|
||||
/**
|
||||
* @description 创建资源
|
||||
* @param resource 资源信息
|
||||
* @return ResultDomain<TbResource> 创建结果
|
||||
* @author yslg
|
||||
* @since 2025-10-15
|
||||
* @description 创建资源(使用当前登录用户部门角色创建权限)
|
||||
*/
|
||||
ResultDomain<ResourceVO> createResource(ResourceVO resource);
|
||||
|
||||
/**
|
||||
* @description 创建资源(显式指定创建者部门角色,适用于定时任务等无登录用户场景)
|
||||
* @param resource 资源信息
|
||||
* @param userDeptRoles 创建者部门角色列表
|
||||
*/
|
||||
ResultDomain<ResourceVO> createResource(ResourceVO resource, java.util.List<UserDeptRoleVO> userDeptRoles);
|
||||
|
||||
/**
|
||||
* @description 批量创建资源
|
||||
* @param resources 资源列表
|
||||
* @return ResultDomain<Integer> 成功创建的数量
|
||||
*/
|
||||
ResultDomain<Integer> batchCreateResources(List<TbResource> resources);
|
||||
|
||||
/**
|
||||
* @description 更新资源
|
||||
* @param resource 资源信息
|
||||
|
||||
Reference in New Issue
Block a user