✨ Rewind service basis and sphere service rewind
This commit is contained in:
14
DysonNetwork.Shared/Models/SnRewindPoint.cs
Normal file
14
DysonNetwork.Shared/Models/SnRewindPoint.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace DysonNetwork.Shared.Models;
|
||||
|
||||
public class SnRewindPoint
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public int Year { get; set; } = DateTime.UtcNow.Year;
|
||||
|
||||
[Column(TypeName = "jsonb")] public Dictionary<string, string> Data { get; set; } = new();
|
||||
|
||||
public Guid AccountId { get; set; }
|
||||
public SnAccount Account { get; set; } = null!;
|
||||
}
|
||||
19
DysonNetwork.Shared/Proto/rewind.proto
Normal file
19
DysonNetwork.Shared/Proto/rewind.proto
Normal file
@@ -0,0 +1,19 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package proto;
|
||||
|
||||
option csharp_namespace = "DysonNetwork.Shared.Proto";
|
||||
|
||||
message RewindEvent {
|
||||
string account_id = 1;
|
||||
optional bytes data = 2;
|
||||
string service_id = 3;
|
||||
}
|
||||
|
||||
message RequestRewindEvent {
|
||||
string account_id = 1;
|
||||
}
|
||||
|
||||
service RewindService {
|
||||
rpc GetRewindEvent(RequestRewindEvent) returns (RewindEvent) {}
|
||||
}
|
||||
Reference in New Issue
Block a user