Implements get photo information endpoint

This commit is contained in:
2026-05-14 13:01:42 -05:00
parent 1585b6eb7d
commit b349380c93
7 changed files with 53 additions and 11 deletions

View File

@@ -15,6 +15,16 @@ fun Photo.toRecord() = PhotoRecord(
statusChangeDateTime = statusChangeDateTime
)
fun PhotoRecord.toDomain() = Photo(
id = id,
itemId = itemId,
huntId = huntId,
hunterId = hunterId,
foundDateTime = foundDateTime,
status = status,
statusChangeDateTime = statusChangeDateTime
)
fun Photo.toResponse(hunter: Hunter) = PhotoResponse(
id = id,
hunterName = hunter.name,