Refactor: Remove deprecated gRPC service files and implement new API structure
- Deleted old gRPC service definitions in `game_grpc.pb.go` and `public.go`. - Added new API server implementations for objectstory, player, and shop services. - Introduced configuration files for new APIs in `etc/*.yaml`. - Created main entry points for each service in `objectstory.go`, `player.go`, and `shop.go`. - Removed unused user update handler and user API files. - Added utility functions for context management and HTTP header parsing. - Introduced PostgreSQL backup configuration in `backup/postgreSql.yaml`.
This commit is contained in:
+8
-8
@@ -66,13 +66,13 @@ message SearchGamesReq {
|
||||
int64 page = 1; //page
|
||||
int64 limit = 2; //limit
|
||||
int64 id = 3; //id
|
||||
string name = 4; //name
|
||||
string icon = 5; //icon
|
||||
string category = 6; //category
|
||||
int64 sortOrder = 7; //sortOrder
|
||||
bool isActive = 8; //isActive
|
||||
int64 createdAt = 9; //createdAt
|
||||
int64 updatedAt = 10; //updatedAt
|
||||
optional string name = 4; //name
|
||||
optional string icon = 5; //icon
|
||||
optional string category = 6; //category
|
||||
optional int64 sortOrder = 7; //sortOrder
|
||||
optional bool isActive = 8; //isActive
|
||||
optional int64 createdAt = 9; //createdAt
|
||||
optional int64 updatedAt = 10; //updatedAt
|
||||
}
|
||||
|
||||
message SearchGamesResp {
|
||||
@@ -85,7 +85,7 @@ message SearchGamesResp {
|
||||
// Rpc Func
|
||||
// ------------------------------------
|
||||
|
||||
service public{
|
||||
service GameService {
|
||||
|
||||
//-----------------------games-----------------------
|
||||
rpc AddGames(AddGamesReq) returns (AddGamesResp);
|
||||
|
||||
Reference in New Issue
Block a user