649 lines
21 KiB
Go
649 lines
21 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v5.27.3
|
|
// source: api/proto/wallet/v1/wallet.proto
|
|
|
|
package walletv1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// DebitGiftRequest 是 room-service 送礼同步扣费的最小账务输入。
|
|
type DebitGiftRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CommandId string `protobuf:"bytes,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
|
|
RoomId string `protobuf:"bytes,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
|
|
SenderUserId int64 `protobuf:"varint,3,opt,name=sender_user_id,json=senderUserId,proto3" json:"sender_user_id,omitempty"`
|
|
TargetUserId int64 `protobuf:"varint,4,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
|
|
GiftId string `protobuf:"bytes,5,opt,name=gift_id,json=giftId,proto3" json:"gift_id,omitempty"`
|
|
GiftCount int32 `protobuf:"varint,6,opt,name=gift_count,json=giftCount,proto3" json:"gift_count,omitempty"`
|
|
// price_version 为空时使用当前生效价格;非空时必须命中 active 价格版本。
|
|
PriceVersion string `protobuf:"bytes,7,opt,name=price_version,json=priceVersion,proto3" json:"price_version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DebitGiftRequest) Reset() {
|
|
*x = DebitGiftRequest{}
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DebitGiftRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DebitGiftRequest) ProtoMessage() {}
|
|
|
|
func (x *DebitGiftRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DebitGiftRequest.ProtoReflect.Descriptor instead.
|
|
func (*DebitGiftRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_wallet_v1_wallet_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DebitGiftRequest) GetCommandId() string {
|
|
if x != nil {
|
|
return x.CommandId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DebitGiftRequest) GetRoomId() string {
|
|
if x != nil {
|
|
return x.RoomId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DebitGiftRequest) GetSenderUserId() int64 {
|
|
if x != nil {
|
|
return x.SenderUserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DebitGiftRequest) GetTargetUserId() int64 {
|
|
if x != nil {
|
|
return x.TargetUserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DebitGiftRequest) GetGiftId() string {
|
|
if x != nil {
|
|
return x.GiftId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DebitGiftRequest) GetGiftCount() int32 {
|
|
if x != nil {
|
|
return x.GiftCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DebitGiftRequest) GetPriceVersion() string {
|
|
if x != nil {
|
|
return x.PriceVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// DebitGiftResponse 返回扣费流水、服务端结算值和 sender COIN 账后余额。
|
|
type DebitGiftResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BillingReceiptId string `protobuf:"bytes,1,opt,name=billing_receipt_id,json=billingReceiptId,proto3" json:"billing_receipt_id,omitempty"`
|
|
TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
CoinSpent int64 `protobuf:"varint,3,opt,name=coin_spent,json=coinSpent,proto3" json:"coin_spent,omitempty"`
|
|
GiftPointAdded int64 `protobuf:"varint,4,opt,name=gift_point_added,json=giftPointAdded,proto3" json:"gift_point_added,omitempty"`
|
|
HeatValue int64 `protobuf:"varint,5,opt,name=heat_value,json=heatValue,proto3" json:"heat_value,omitempty"`
|
|
PriceVersion string `protobuf:"bytes,6,opt,name=price_version,json=priceVersion,proto3" json:"price_version,omitempty"`
|
|
// balance_after 是 sender COIN available_amount 账后余额。
|
|
BalanceAfter int64 `protobuf:"varint,7,opt,name=balance_after,json=balanceAfter,proto3" json:"balance_after,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DebitGiftResponse) Reset() {
|
|
*x = DebitGiftResponse{}
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DebitGiftResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DebitGiftResponse) ProtoMessage() {}
|
|
|
|
func (x *DebitGiftResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DebitGiftResponse.ProtoReflect.Descriptor instead.
|
|
func (*DebitGiftResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_wallet_v1_wallet_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *DebitGiftResponse) GetBillingReceiptId() string {
|
|
if x != nil {
|
|
return x.BillingReceiptId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DebitGiftResponse) GetTransactionId() string {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DebitGiftResponse) GetCoinSpent() int64 {
|
|
if x != nil {
|
|
return x.CoinSpent
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DebitGiftResponse) GetGiftPointAdded() int64 {
|
|
if x != nil {
|
|
return x.GiftPointAdded
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DebitGiftResponse) GetHeatValue() int64 {
|
|
if x != nil {
|
|
return x.HeatValue
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DebitGiftResponse) GetPriceVersion() string {
|
|
if x != nil {
|
|
return x.PriceVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DebitGiftResponse) GetBalanceAfter() int64 {
|
|
if x != nil {
|
|
return x.BalanceAfter
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// AssetBalance 是用户某类资产的余额投影。
|
|
type AssetBalance struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AssetType string `protobuf:"bytes,1,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
|
|
AvailableAmount int64 `protobuf:"varint,2,opt,name=available_amount,json=availableAmount,proto3" json:"available_amount,omitempty"`
|
|
FrozenAmount int64 `protobuf:"varint,3,opt,name=frozen_amount,json=frozenAmount,proto3" json:"frozen_amount,omitempty"`
|
|
Version int64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AssetBalance) Reset() {
|
|
*x = AssetBalance{}
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AssetBalance) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AssetBalance) ProtoMessage() {}
|
|
|
|
func (x *AssetBalance) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AssetBalance.ProtoReflect.Descriptor instead.
|
|
func (*AssetBalance) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_wallet_v1_wallet_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *AssetBalance) GetAssetType() string {
|
|
if x != nil {
|
|
return x.AssetType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AssetBalance) GetAvailableAmount() int64 {
|
|
if x != nil {
|
|
return x.AvailableAmount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AssetBalance) GetFrozenAmount() int64 {
|
|
if x != nil {
|
|
return x.FrozenAmount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AssetBalance) GetVersion() int64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// GetBalancesRequest 查询用户多资产余额;内部调用方负责鉴权和用户范围控制。
|
|
type GetBalancesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
|
|
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
AssetTypes []string `protobuf:"bytes,3,rep,name=asset_types,json=assetTypes,proto3" json:"asset_types,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetBalancesRequest) Reset() {
|
|
*x = GetBalancesRequest{}
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetBalancesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetBalancesRequest) ProtoMessage() {}
|
|
|
|
func (x *GetBalancesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetBalancesRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetBalancesRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_wallet_v1_wallet_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetBalancesRequest) GetRequestId() string {
|
|
if x != nil {
|
|
return x.RequestId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetBalancesRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetBalancesRequest) GetAssetTypes() []string {
|
|
if x != nil {
|
|
return x.AssetTypes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetBalancesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Balances []*AssetBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetBalancesResponse) Reset() {
|
|
*x = GetBalancesResponse{}
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetBalancesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetBalancesResponse) ProtoMessage() {}
|
|
|
|
func (x *GetBalancesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetBalancesResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetBalancesResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_wallet_v1_wallet_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *GetBalancesResponse) GetBalances() []*AssetBalance {
|
|
if x != nil {
|
|
return x.Balances
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// AdminCreditAssetRequest 是后台手动入账/调账的最小审计命令。
|
|
type AdminCreditAssetRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CommandId string `protobuf:"bytes,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
|
|
TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
|
|
AssetType string `protobuf:"bytes,3,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
|
|
Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
|
|
OperatorUserId int64 `protobuf:"varint,5,opt,name=operator_user_id,json=operatorUserId,proto3" json:"operator_user_id,omitempty"`
|
|
Reason string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
EvidenceRef string `protobuf:"bytes,7,opt,name=evidence_ref,json=evidenceRef,proto3" json:"evidence_ref,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AdminCreditAssetRequest) Reset() {
|
|
*x = AdminCreditAssetRequest{}
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AdminCreditAssetRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AdminCreditAssetRequest) ProtoMessage() {}
|
|
|
|
func (x *AdminCreditAssetRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AdminCreditAssetRequest.ProtoReflect.Descriptor instead.
|
|
func (*AdminCreditAssetRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_wallet_v1_wallet_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *AdminCreditAssetRequest) GetCommandId() string {
|
|
if x != nil {
|
|
return x.CommandId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AdminCreditAssetRequest) GetTargetUserId() int64 {
|
|
if x != nil {
|
|
return x.TargetUserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AdminCreditAssetRequest) GetAssetType() string {
|
|
if x != nil {
|
|
return x.AssetType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AdminCreditAssetRequest) GetAmount() int64 {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AdminCreditAssetRequest) GetOperatorUserId() int64 {
|
|
if x != nil {
|
|
return x.OperatorUserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AdminCreditAssetRequest) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AdminCreditAssetRequest) GetEvidenceRef() string {
|
|
if x != nil {
|
|
return x.EvidenceRef
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AdminCreditAssetResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
|
|
Balance *AssetBalance `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AdminCreditAssetResponse) Reset() {
|
|
*x = AdminCreditAssetResponse{}
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AdminCreditAssetResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AdminCreditAssetResponse) ProtoMessage() {}
|
|
|
|
func (x *AdminCreditAssetResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_wallet_v1_wallet_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AdminCreditAssetResponse.ProtoReflect.Descriptor instead.
|
|
func (*AdminCreditAssetResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_wallet_v1_wallet_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *AdminCreditAssetResponse) GetTransactionId() string {
|
|
if x != nil {
|
|
return x.TransactionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AdminCreditAssetResponse) GetBalance() *AssetBalance {
|
|
if x != nil {
|
|
return x.Balance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_api_proto_wallet_v1_wallet_proto protoreflect.FileDescriptor
|
|
|
|
const file_api_proto_wallet_v1_wallet_proto_rawDesc = "" +
|
|
"\n" +
|
|
" api/proto/wallet/v1/wallet.proto\x12\x0fhyapp.wallet.v1\"\xf3\x01\n" +
|
|
"\x10DebitGiftRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"command_id\x18\x01 \x01(\tR\tcommandId\x12\x17\n" +
|
|
"\aroom_id\x18\x02 \x01(\tR\x06roomId\x12$\n" +
|
|
"\x0esender_user_id\x18\x03 \x01(\x03R\fsenderUserId\x12$\n" +
|
|
"\x0etarget_user_id\x18\x04 \x01(\x03R\ftargetUserId\x12\x17\n" +
|
|
"\agift_id\x18\x05 \x01(\tR\x06giftId\x12\x1d\n" +
|
|
"\n" +
|
|
"gift_count\x18\x06 \x01(\x05R\tgiftCount\x12#\n" +
|
|
"\rprice_version\x18\a \x01(\tR\fpriceVersion\"\x9a\x02\n" +
|
|
"\x11DebitGiftResponse\x12,\n" +
|
|
"\x12billing_receipt_id\x18\x01 \x01(\tR\x10billingReceiptId\x12%\n" +
|
|
"\x0etransaction_id\x18\x02 \x01(\tR\rtransactionId\x12\x1d\n" +
|
|
"\n" +
|
|
"coin_spent\x18\x03 \x01(\x03R\tcoinSpent\x12(\n" +
|
|
"\x10gift_point_added\x18\x04 \x01(\x03R\x0egiftPointAdded\x12\x1d\n" +
|
|
"\n" +
|
|
"heat_value\x18\x05 \x01(\x03R\theatValue\x12#\n" +
|
|
"\rprice_version\x18\x06 \x01(\tR\fpriceVersion\x12#\n" +
|
|
"\rbalance_after\x18\a \x01(\x03R\fbalanceAfter\"\x97\x01\n" +
|
|
"\fAssetBalance\x12\x1d\n" +
|
|
"\n" +
|
|
"asset_type\x18\x01 \x01(\tR\tassetType\x12)\n" +
|
|
"\x10available_amount\x18\x02 \x01(\x03R\x0favailableAmount\x12#\n" +
|
|
"\rfrozen_amount\x18\x03 \x01(\x03R\ffrozenAmount\x12\x18\n" +
|
|
"\aversion\x18\x04 \x01(\x03R\aversion\"m\n" +
|
|
"\x12GetBalancesRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"request_id\x18\x01 \x01(\tR\trequestId\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x1f\n" +
|
|
"\vasset_types\x18\x03 \x03(\tR\n" +
|
|
"assetTypes\"P\n" +
|
|
"\x13GetBalancesResponse\x129\n" +
|
|
"\bbalances\x18\x01 \x03(\v2\x1d.hyapp.wallet.v1.AssetBalanceR\bbalances\"\xfa\x01\n" +
|
|
"\x17AdminCreditAssetRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"command_id\x18\x01 \x01(\tR\tcommandId\x12$\n" +
|
|
"\x0etarget_user_id\x18\x02 \x01(\x03R\ftargetUserId\x12\x1d\n" +
|
|
"\n" +
|
|
"asset_type\x18\x03 \x01(\tR\tassetType\x12\x16\n" +
|
|
"\x06amount\x18\x04 \x01(\x03R\x06amount\x12(\n" +
|
|
"\x10operator_user_id\x18\x05 \x01(\x03R\x0eoperatorUserId\x12\x16\n" +
|
|
"\x06reason\x18\x06 \x01(\tR\x06reason\x12!\n" +
|
|
"\fevidence_ref\x18\a \x01(\tR\vevidenceRef\"z\n" +
|
|
"\x18AdminCreditAssetResponse\x12%\n" +
|
|
"\x0etransaction_id\x18\x01 \x01(\tR\rtransactionId\x127\n" +
|
|
"\abalance\x18\x02 \x01(\v2\x1d.hyapp.wallet.v1.AssetBalanceR\abalance2\xa6\x02\n" +
|
|
"\rWalletService\x12R\n" +
|
|
"\tDebitGift\x12!.hyapp.wallet.v1.DebitGiftRequest\x1a\".hyapp.wallet.v1.DebitGiftResponse\x12X\n" +
|
|
"\vGetBalances\x12#.hyapp.wallet.v1.GetBalancesRequest\x1a$.hyapp.wallet.v1.GetBalancesResponse\x12g\n" +
|
|
"\x10AdminCreditAsset\x12(.hyapp.wallet.v1.AdminCreditAssetRequest\x1a).hyapp.wallet.v1.AdminCreditAssetResponseB$Z\"hyapp/api/proto/wallet/v1;walletv1b\x06proto3"
|
|
|
|
var (
|
|
file_api_proto_wallet_v1_wallet_proto_rawDescOnce sync.Once
|
|
file_api_proto_wallet_v1_wallet_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_api_proto_wallet_v1_wallet_proto_rawDescGZIP() []byte {
|
|
file_api_proto_wallet_v1_wallet_proto_rawDescOnce.Do(func() {
|
|
file_api_proto_wallet_v1_wallet_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_proto_wallet_v1_wallet_proto_rawDesc), len(file_api_proto_wallet_v1_wallet_proto_rawDesc)))
|
|
})
|
|
return file_api_proto_wallet_v1_wallet_proto_rawDescData
|
|
}
|
|
|
|
var file_api_proto_wallet_v1_wallet_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
var file_api_proto_wallet_v1_wallet_proto_goTypes = []any{
|
|
(*DebitGiftRequest)(nil), // 0: hyapp.wallet.v1.DebitGiftRequest
|
|
(*DebitGiftResponse)(nil), // 1: hyapp.wallet.v1.DebitGiftResponse
|
|
(*AssetBalance)(nil), // 2: hyapp.wallet.v1.AssetBalance
|
|
(*GetBalancesRequest)(nil), // 3: hyapp.wallet.v1.GetBalancesRequest
|
|
(*GetBalancesResponse)(nil), // 4: hyapp.wallet.v1.GetBalancesResponse
|
|
(*AdminCreditAssetRequest)(nil), // 5: hyapp.wallet.v1.AdminCreditAssetRequest
|
|
(*AdminCreditAssetResponse)(nil), // 6: hyapp.wallet.v1.AdminCreditAssetResponse
|
|
}
|
|
var file_api_proto_wallet_v1_wallet_proto_depIdxs = []int32{
|
|
2, // 0: hyapp.wallet.v1.GetBalancesResponse.balances:type_name -> hyapp.wallet.v1.AssetBalance
|
|
2, // 1: hyapp.wallet.v1.AdminCreditAssetResponse.balance:type_name -> hyapp.wallet.v1.AssetBalance
|
|
0, // 2: hyapp.wallet.v1.WalletService.DebitGift:input_type -> hyapp.wallet.v1.DebitGiftRequest
|
|
3, // 3: hyapp.wallet.v1.WalletService.GetBalances:input_type -> hyapp.wallet.v1.GetBalancesRequest
|
|
5, // 4: hyapp.wallet.v1.WalletService.AdminCreditAsset:input_type -> hyapp.wallet.v1.AdminCreditAssetRequest
|
|
1, // 5: hyapp.wallet.v1.WalletService.DebitGift:output_type -> hyapp.wallet.v1.DebitGiftResponse
|
|
4, // 6: hyapp.wallet.v1.WalletService.GetBalances:output_type -> hyapp.wallet.v1.GetBalancesResponse
|
|
6, // 7: hyapp.wallet.v1.WalletService.AdminCreditAsset:output_type -> hyapp.wallet.v1.AdminCreditAssetResponse
|
|
5, // [5:8] is the sub-list for method output_type
|
|
2, // [2:5] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_api_proto_wallet_v1_wallet_proto_init() }
|
|
func file_api_proto_wallet_v1_wallet_proto_init() {
|
|
if File_api_proto_wallet_v1_wallet_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_proto_wallet_v1_wallet_proto_rawDesc), len(file_api_proto_wallet_v1_wallet_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 7,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_api_proto_wallet_v1_wallet_proto_goTypes,
|
|
DependencyIndexes: file_api_proto_wallet_v1_wallet_proto_depIdxs,
|
|
MessageInfos: file_api_proto_wallet_v1_wallet_proto_msgTypes,
|
|
}.Build()
|
|
File_api_proto_wallet_v1_wallet_proto = out.File
|
|
file_api_proto_wallet_v1_wallet_proto_goTypes = nil
|
|
file_api_proto_wallet_v1_wallet_proto_depIdxs = nil
|
|
}
|