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
@@ -32,21 +32,12 @@ func (l *UpdateOrdersLogic) UpdateOrders(in *pb.UpdateOrdersReq) (*pb.UpdateOrde
if in.ConsumerId != nil {
updater = updater.SetConsumerID(*in.ConsumerId)
}
if in.ConsumerName != nil {
updater = updater.SetConsumerName(*in.ConsumerName)
}
if in.PlayerId != nil {
updater = updater.SetPlayerID(*in.PlayerId)
}
if in.PlayerName != nil {
updater = updater.SetPlayerName(*in.PlayerName)
}
if in.ShopId != nil {
updater = updater.SetShopID(*in.ShopId)
}
if in.ShopName != nil {
updater = updater.SetShopName(*in.ShopName)
}
if in.ServiceSnapshot != nil {
snapshot, err := parseJSONMap(*in.ServiceSnapshot)
if err != nil {