refactor: remove redundant name fields from order service

This commit is contained in:
zetaloop
2026-04-22 22:28:41 +08:00
parent b3db04c9cc
commit 2d45d7e3cb
21 changed files with 179 additions and 1062 deletions
-5
View File
@@ -53,9 +53,7 @@ func toPBOrder(item *models.Orders) *pb.Orders {
result := &pb.Orders{
Id: item.ID,
ConsumerId: item.ConsumerID,
ConsumerName: item.ConsumerName,
PlayerId: item.PlayerID,
PlayerName: item.PlayerName,
ServiceSnapshot: serviceSnapshot,
Status: item.Status,
TotalPrice: item.TotalPrice.String(),
@@ -67,9 +65,6 @@ func toPBOrder(item *models.Orders) *pb.Orders {
if item.ShopID != nil {
result.ShopId = item.ShopID
}
if item.ShopName != nil {
result.ShopName = item.ShopName
}
if item.Note != nil {
result.Note = item.Note
}