transfer LocationWithTimeDto

This commit is contained in:
Tsubasahane
2025-12-28 13:02:34 +08:00
parent 67cdf2c384
commit f1817c5974
2 changed files with 5 additions and 2 deletions

View File

@@ -7,3 +7,6 @@ namespace LightlessSync.API.Dto.User;
[MessagePackObject(keyAsPropertyName: true)]
public record LocationDto(UserData User, LocationInfo Location);
[MessagePackObject(keyAsPropertyName: true)]
public record LocationWithTimeDto(LocationDto Location, DateTimeOffset ExpireAt);

View File

@@ -118,7 +118,7 @@ public interface ILightlessHub
Task SetChatParticipantMute(ChatParticipantMuteRequestDto request);
Task UpdateLocation(LocationDto locationDto, bool offline);
Task<List<LocationDto>> RequestAllLocationInfo();
Task<List<LocationWithTimeDto>> RequestAllLocationInfo();
Task ToggleLocationSharing(LocationSharingToggleDto dto);
}