mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-22 18:29:51 +08:00
资源批量删除接口 && 资源列表返回管理员信息
This commit is contained in:
@@ -40,4 +40,6 @@ public interface AdminUserService extends IService<AdminUser> {
|
||||
void removeRelateRolesByUserId(Integer userId);
|
||||
|
||||
void passwordChange(AdminUser user, String password);
|
||||
|
||||
List<AdminUser> chunks(List<Integer> ids);
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ import xyz.playedu.api.exception.NotFoundException;
|
||||
import xyz.playedu.api.types.paginate.PaginationResult;
|
||||
import xyz.playedu.api.types.paginate.ResourcePaginateFilter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author tengteng
|
||||
* @description 针对表【resources】的数据库操作Service
|
||||
@@ -23,4 +25,6 @@ public interface ResourceService extends IService<Resource> {
|
||||
|
||||
void storeResourceVideo(Integer rid, Integer duration, String poster);
|
||||
|
||||
List<Resource> chunks(List<Integer> ids);
|
||||
|
||||
}
|
||||
|
||||
@@ -176,6 +176,11 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
||||
newUser.setPassword(newPassword);
|
||||
updateById(newUser);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AdminUser> chunks(List<Integer> ids) {
|
||||
return list(query().getWrapper().in("id", ids));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -145,6 +145,11 @@ public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> i
|
||||
public void storeResourceVideo(Integer rid, Integer duration, String poster) {
|
||||
resourceVideoService.create(rid, duration, poster);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Resource> chunks(List<Integer> ids) {
|
||||
return list(query().getWrapper().in("id", ids));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user