一次大的提交
This commit is contained in:
@@ -11,9 +11,9 @@ class SiteRepositoryImpl implements SiteRepository {
|
||||
SiteRepositoryImpl(this.dataSource);
|
||||
|
||||
@override
|
||||
Future<Either<Failure, List<SiteEntity>>> getSiteList(int orgId) async {
|
||||
Future<Either<Failure, List<SiteEntity>>> getSiteList(String userId) async {
|
||||
try {
|
||||
final sites = await dataSource.getSiteList(orgId);
|
||||
final sites = await dataSource.getSiteList(userId);
|
||||
return Right(sites);
|
||||
} catch (e) {
|
||||
return Left(Failure(e.toString()));
|
||||
|
||||
Reference in New Issue
Block a user