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:
+9
-8
@@ -42,6 +42,7 @@ message UpdateShopInvitationsReq {
|
||||
}
|
||||
|
||||
message UpdateShopInvitationsResp {
|
||||
ShopInvitations shopInvitations = 1;
|
||||
}
|
||||
|
||||
message DelShopInvitationsReq {
|
||||
@@ -142,11 +143,11 @@ message Shops {
|
||||
string name = 3; //name
|
||||
string banner = 4; //banner
|
||||
string description = 5; //description
|
||||
double rating = 6; //rating
|
||||
string rating = 6; //rating
|
||||
int64 totalOrders = 7; //totalOrders
|
||||
int64 playerCount = 8; //playerCount
|
||||
string commissionType = 9; //commissionType
|
||||
double commissionValue = 10; //commissionValue
|
||||
string commissionValue = 10; //commissionValue
|
||||
bool allowMultiShop = 11; //allowMultiShop
|
||||
bool allowIndependentOrders = 12; //allowIndependentOrders
|
||||
string dispatchMode = 13; //dispatchMode
|
||||
@@ -161,11 +162,11 @@ message AddShopsReq {
|
||||
string name = 2; //name
|
||||
string banner = 3; //banner
|
||||
string description = 4; //description
|
||||
double rating = 5; //rating
|
||||
string rating = 5; //rating
|
||||
int64 totalOrders = 6; //totalOrders
|
||||
int64 playerCount = 7; //playerCount
|
||||
string commissionType = 8; //commissionType
|
||||
double commissionValue = 9; //commissionValue
|
||||
string commissionValue = 9; //commissionValue
|
||||
bool allowMultiShop = 10; //allowMultiShop
|
||||
bool allowIndependentOrders = 11; //allowIndependentOrders
|
||||
string dispatchMode = 12; //dispatchMode
|
||||
@@ -184,11 +185,11 @@ message UpdateShopsReq {
|
||||
string name = 3; //name
|
||||
string banner = 4; //banner
|
||||
string description = 5; //description
|
||||
double rating = 6; //rating
|
||||
string rating = 6; //rating
|
||||
int64 totalOrders = 7; //totalOrders
|
||||
int64 playerCount = 8; //playerCount
|
||||
string commissionType = 9; //commissionType
|
||||
double commissionValue = 10; //commissionValue
|
||||
string commissionValue = 10; //commissionValue
|
||||
bool allowMultiShop = 11; //allowMultiShop
|
||||
bool allowIndependentOrders = 12; //allowIndependentOrders
|
||||
string dispatchMode = 13; //dispatchMode
|
||||
@@ -224,11 +225,11 @@ message SearchShopsReq {
|
||||
string name = 5; //name
|
||||
string banner = 6; //banner
|
||||
string description = 7; //description
|
||||
double rating = 8; //rating
|
||||
string rating = 8; //rating
|
||||
int64 totalOrders = 9; //totalOrders
|
||||
int64 playerCount = 10; //playerCount
|
||||
string commissionType = 11; //commissionType
|
||||
double commissionValue = 12; //commissionValue
|
||||
string commissionValue = 12; //commissionValue
|
||||
bool allowMultiShop = 13; //allowMultiShop
|
||||
bool allowIndependentOrders = 14; //allowIndependentOrders
|
||||
string dispatchMode = 15; //dispatchMode
|
||||
|
||||
Reference in New Issue
Block a user