refactor(service): 将删除服务接口参数类型从 Iterable 改为 Set
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.lanyuanxiaoyao.service.template.common.service;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 删除服务接口,用于定义统一的删除实体对象的服务规范
|
||||
* <p>
|
||||
@@ -33,5 +35,5 @@ public interface RemoveService<ENTITY> {
|
||||
* @param ids 需要删除的实体ID集合
|
||||
* @throws Exception 删除过程中可能抛出的异常
|
||||
*/
|
||||
void remove(Iterable<Long> ids) throws Exception;
|
||||
void remove(Set<Long> ids) throws Exception;
|
||||
}
|
||||
Reference in New Issue
Block a user