fix: shop_players 关系表主键与模型对齐

This commit is contained in:
zetaloop
2026-04-04 06:25:49 +08:00
parent 3a81aec527
commit 7dc088eadf
18 changed files with 91 additions and 310 deletions
+31 -13
View File
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v5.29.6
// protoc v3.19.4
// source: shop.proto
package pb
@@ -993,7 +993,8 @@ func (*UpdateShopPlayersResp) Descriptor() ([]byte, []int) {
type DelShopPlayersReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //id
ShopId int64 `protobuf:"varint,1,opt,name=shopId,proto3" json:"shopId,omitempty"` //shopId
PlayerId int64 `protobuf:"varint,2,opt,name=playerId,proto3" json:"playerId,omitempty"` //playerId
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -1028,9 +1029,16 @@ func (*DelShopPlayersReq) Descriptor() ([]byte, []int) {
return file_shop_proto_rawDescGZIP(), []int{16}
}
func (x *DelShopPlayersReq) GetId() int64 {
func (x *DelShopPlayersReq) GetShopId() int64 {
if x != nil {
return x.Id
return x.ShopId
}
return 0
}
func (x *DelShopPlayersReq) GetPlayerId() int64 {
if x != nil {
return x.PlayerId
}
return 0
}
@@ -1073,7 +1081,8 @@ func (*DelShopPlayersResp) Descriptor() ([]byte, []int) {
type GetShopPlayersByIdReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //id
ShopId int64 `protobuf:"varint,1,opt,name=shopId,proto3" json:"shopId,omitempty"` //shopId
PlayerId int64 `protobuf:"varint,2,opt,name=playerId,proto3" json:"playerId,omitempty"` //playerId
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -1108,9 +1117,16 @@ func (*GetShopPlayersByIdReq) Descriptor() ([]byte, []int) {
return file_shop_proto_rawDescGZIP(), []int{18}
}
func (x *GetShopPlayersByIdReq) GetId() int64 {
func (x *GetShopPlayersByIdReq) GetShopId() int64 {
if x != nil {
return x.Id
return x.ShopId
}
return 0
}
func (x *GetShopPlayersByIdReq) GetPlayerId() int64 {
if x != nil {
return x.PlayerId
}
return 0
}
@@ -2346,12 +2362,14 @@ const file_shop_proto_rawDesc = "" +
"\tisPrimary\x18\x03 \x01(\bR\tisPrimary\x12\x1a\n" +
"\bjoinedAt\x18\x04 \x01(\x03R\bjoinedAt\x12\x16\n" +
"\x06leftAt\x18\x05 \x01(\x03R\x06leftAt\"\x17\n" +
"\x15UpdateShopPlayersResp\"#\n" +
"\x11DelShopPlayersReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\"\x14\n" +
"\x12DelShopPlayersResp\"'\n" +
"\x15GetShopPlayersByIdReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\"K\n" +
"\x15UpdateShopPlayersResp\"G\n" +
"\x11DelShopPlayersReq\x12\x16\n" +
"\x06shopId\x18\x01 \x01(\x03R\x06shopId\x12\x1a\n" +
"\bplayerId\x18\x02 \x01(\x03R\bplayerId\"\x14\n" +
"\x12DelShopPlayersResp\"K\n" +
"\x15GetShopPlayersByIdReq\x12\x16\n" +
"\x06shopId\x18\x01 \x01(\x03R\x06shopId\x12\x1a\n" +
"\bplayerId\x18\x02 \x01(\x03R\bplayerId\"K\n" +
"\x16GetShopPlayersByIdResp\x121\n" +
"\vshopPlayers\x18\x01 \x01(\v2\x0f.pb.ShopPlayersR\vshopPlayers\"\xc6\x01\n" +
"\x14SearchShopPlayersReq\x12\x12\n" +