一次大的提交
This commit is contained in:
@@ -5,5 +5,5 @@ import '../../../../../core/error/failure.dart';
|
||||
import '../entities/site_entity.dart';
|
||||
|
||||
abstract class SiteRepository {
|
||||
Future<Either<Failure, List<SiteEntity>>> getSiteList(int orgId);
|
||||
Future<Either<Failure, List<SiteEntity>>> getSiteList(String userId);
|
||||
}
|
||||
|
||||
@@ -10,8 +10,8 @@ class GetSiteListUseCase {
|
||||
|
||||
GetSiteListUseCase(this.repository);
|
||||
|
||||
// pageNum 和 pageSize 固定,orgId 从登录用户信息中获取
|
||||
Future<Either<Failure, List<SiteEntity>>> call(int orgId) async {
|
||||
return await repository.getSiteList(orgId);
|
||||
// userId 从登录用户信息中获取
|
||||
Future<Either<Failure, List<SiteEntity>>> call(String userId) async {
|
||||
return await repository.getSiteList(userId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user