feat(mobile): UI-01 album cards, photo grid and full viewer
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -442,10 +442,15 @@ class ApiClient {
|
||||
|
||||
/// operationId `listAlbumPhotos`
|
||||
/// (GET /albums/{albumId}/photos,管理列表,全状态可见)。
|
||||
///
|
||||
/// [scope](UI-01):缺省/null=服务端默认 all(仅 owner/admin,协作者
|
||||
/// 403 AUTH_FORBIDDEN);[AlbumPhotoScope.own]=仅自己上传(任何有效成员,
|
||||
/// 服务端过滤)。页面层据此做「all 403 → own」自适应回退。
|
||||
Future<CursorPage<AdminPhoto>> listAlbumPhotos(
|
||||
String albumId, {
|
||||
PhotoVisibility? visibility,
|
||||
String? categoryId,
|
||||
AlbumPhotoScope? scope,
|
||||
String? cursor,
|
||||
int? limit,
|
||||
}) =>
|
||||
@@ -457,6 +462,7 @@ class ApiClient {
|
||||
extraQuery: {
|
||||
if (visibility != null) 'visibility': visibility.wire,
|
||||
'categoryId': ?categoryId,
|
||||
if (scope != null) 'scope': scope.wire,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user