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

@@ -0,0 +1,12 @@
using LightlessSync.API.Data;
using LightlessSync.API.Dto.CharaData;
using MessagePack;
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);