media
This commit is contained in:
@@ -22,10 +22,15 @@ public sealed partial class Id
|
||||
public static implicit operator long(Id id)
|
||||
=> long.Parse(EncryptionIdHelper.Decrypt(id.Value));
|
||||
|
||||
public static implicit operator short(Id id)
|
||||
=> short.Parse(EncryptionIdHelper.Decrypt(id.Value));
|
||||
|
||||
public static implicit operator Id(int id)
|
||||
=> (Id)id.ToString();
|
||||
|
||||
public static implicit operator Id(short id)
|
||||
=> (Id)id.ToString();
|
||||
|
||||
public static implicit operator Id(long id)
|
||||
=> (Id)id.ToString();
|
||||
|
||||
|
||||
@@ -7,10 +7,12 @@ import "Proto/Shared.proto";
|
||||
|
||||
|
||||
message CreateLanguageCommand{
|
||||
string title = 2;
|
||||
string title = 1;
|
||||
bytes icon = 2;
|
||||
}
|
||||
|
||||
message UpdateLanguageCommand{
|
||||
Id Id = 1;
|
||||
string title = 2;
|
||||
bytes icon = 3;
|
||||
}
|
||||
Reference in New Issue
Block a user