mirror of
https://github.com/immich-app/immich.git
synced 2025-03-04 02:11:44 -05:00
chore(server): open-api memory lane number generation (#8314)
chore(server): openaapi memory lane number generation
This commit is contained in:
parent
e1c2135850
commit
9b705e4450
5 changed files with 8 additions and 5 deletions
2
mobile/openapi/doc/MemoryLaneResponseDto.md
generated
2
mobile/openapi/doc/MemoryLaneResponseDto.md
generated
|
@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**assets** | [**List<AssetResponseDto>**](AssetResponseDto.md) | | [default to const []]
|
**assets** | [**List<AssetResponseDto>**](AssetResponseDto.md) | | [default to const []]
|
||||||
**title** | **String** | |
|
**title** | **String** | |
|
||||||
**yearsAgo** | **num** | |
|
**yearsAgo** | **int** | |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ class MemoryLaneResponseDto {
|
||||||
|
|
||||||
String title;
|
String title;
|
||||||
|
|
||||||
num yearsAgo;
|
int yearsAgo;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is MemoryLaneResponseDto &&
|
bool operator ==(Object other) => identical(this, other) || other is MemoryLaneResponseDto &&
|
||||||
|
@ -58,7 +58,7 @@ class MemoryLaneResponseDto {
|
||||||
return MemoryLaneResponseDto(
|
return MemoryLaneResponseDto(
|
||||||
assets: AssetResponseDto.listFromJson(json[r'assets']),
|
assets: AssetResponseDto.listFromJson(json[r'assets']),
|
||||||
title: mapValueOfType<String>(json, r'title')!,
|
title: mapValueOfType<String>(json, r'title')!,
|
||||||
yearsAgo: num.parse('${json[r'yearsAgo']}'),
|
yearsAgo: mapValueOfType<int>(json, r'yearsAgo')!,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -26,7 +26,7 @@ void main() {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// num yearsAgo
|
// int yearsAgo
|
||||||
test('to test the property `yearsAgo`', () async {
|
test('to test the property `yearsAgo`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
|
@ -8431,7 +8431,7 @@
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"yearsAgo": {
|
"yearsAgo": {
|
||||||
"type": "number"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
|
|
@ -133,7 +133,10 @@ export function mapAsset(entity: AssetEntity, options: AssetMapOptions = {}): As
|
||||||
export class MemoryLaneResponseDto {
|
export class MemoryLaneResponseDto {
|
||||||
@ApiProperty({ deprecated: true })
|
@ApiProperty({ deprecated: true })
|
||||||
title!: string;
|
title!: string;
|
||||||
|
|
||||||
|
@ApiProperty({ type: 'integer' })
|
||||||
yearsAgo!: number;
|
yearsAgo!: number;
|
||||||
|
|
||||||
assets!: AssetResponseDto[];
|
assets!: AssetResponseDto[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue