syntax = "proto3"; package hyapp.wallet.v1; option go_package = "hyapp/api/proto/wallet/v1;walletv1"; // DebitGiftRequest 是 room-service 送礼同步扣费的最小账务输入。 message DebitGiftRequest { string command_id = 1; string room_id = 2; int64 sender_user_id = 3; int64 target_user_id = 4; string gift_id = 5; int32 gift_count = 6; int64 gift_unit_value = 7; } // DebitGiftResponse 返回扣费流水和账后余额。 message DebitGiftResponse { string billing_receipt_id = 1; int64 total_gift_value = 2; int64 balance_after = 3; } // WalletService 首版只暴露送礼扣费能力。 service WalletService { rpc DebitGift(DebitGiftRequest) returns (DebitGiftResponse); }