-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T #98 renames and shareded model proto [not compiling]
- Loading branch information
Showing
15 changed files
with
111 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/HuppyService/HuppyService.Service/Protos/models/database.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
syntax = "proto3"; | ||
|
||
option csharp_namespace = "HuppyService.Service.Protos.Models"; | ||
|
||
package database.models; | ||
|
||
message CommandLogModel { | ||
int32 Id = 1; | ||
string CommandName = 2; | ||
uint64 UnixTime = 3; | ||
bool IsSuccess = 4; | ||
uint64 UserId = 5; | ||
int64 ExecutionTimeMs = 6; | ||
uint64 ChannelId = 7; | ||
string ErrorMessage = 8; | ||
uint64 GuildId = 9; | ||
} | ||
|
||
message ServerModel { | ||
uint64 Id = 1; | ||
string ServerName = 2; | ||
bool UseGreet = 3; | ||
string GreetMessage = 4; | ||
uint64 RoleId = 5; | ||
uint64 ServerRommsId = 6; | ||
ServerRoomsModel Rooms = 7; | ||
} | ||
|
||
message ServerRoomsModel { | ||
uint64 Id = 1; | ||
uint64 OutputRoom = 2; | ||
uint64 GreetingRoom = 3; | ||
uint64 ServerId = 4; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
syntax = "proto3"; | ||
|
||
option csharp_namespace = "HuppyService.Service.Protos"; | ||
|
||
import "google/protobuf/empty.proto"; | ||
import "Protos/models/database.proto"; | ||
|
||
package ServerProto; | ||
|
||
service ServerProto { | ||
rpc GetOrCreate(GetOrCreateServerInput) returns (database.models.ServerModel); | ||
rpc UpdateAsync(database.models.ServerModel) returns(ServerProtoDefaultResponse); | ||
rpc GetAll(google.protobuf.Empty) returns (ServerModelCollection); | ||
} | ||
|
||
message ServerModelCollection { | ||
repeated database.models.ServerModel ServerModel= 1; | ||
} | ||
|
||
message GetOrCreateServerInput { | ||
uint64 Id = 1; | ||
string ServerName = 2; | ||
uint64 DefaultChannel = 3; | ||
} | ||
|
||
message ServerProtoDefaultResponse { | ||
bool IsSuccess = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters