proto

package
v0.0.0-...-b3e2573 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TopicAccountBalanceChange = "AccountBalanceChange"

Variables

View Source
var (
	BusinessType_name = map[int32]string{
		0: "BusinessTypeUnknown",
		1: "BusinessType1V1Audio",
		2: "BusinessTypeRecharge",
		3: "BusinessTypeManagerChg",
	}
	BusinessType_value = map[string]int32{
		"BusinessTypeUnknown":    0,
		"BusinessType1V1Audio":   1,
		"BusinessTypeRecharge":   2,
		"BusinessTypeManagerChg": 3,
	}
)

Enum value maps for BusinessType.

View Source
var File_example_proto_account_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccountBalanceChangeEvent

type AccountBalanceChangeEvent struct {

	// 业务方的唯一编号
	BusinessUniqueNo int64        `protobuf:"varint,1,opt,name=businessUniqueNo,proto3" json:"businessUniqueNo,omitempty"`
	BusinessType     BusinessType `protobuf:"varint,2,opt,name=businessType,proto3,enum=yggdrasil.domain.example.BusinessType" json:"businessType,omitempty"`
	// 金额
	Amount  float64 `protobuf:"fixed64,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Account int64   `protobuf:"varint,4,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

账户余额变动事件

func (*AccountBalanceChangeEvent) Content

func (e *AccountBalanceChangeEvent) Content() []byte

func (*AccountBalanceChangeEvent) Descriptor deprecated

func (*AccountBalanceChangeEvent) Descriptor() ([]byte, []int)

Deprecated: Use AccountBalanceChangeEvent.ProtoReflect.Descriptor instead.

func (*AccountBalanceChangeEvent) GetAccount

func (x *AccountBalanceChangeEvent) GetAccount() int64

func (*AccountBalanceChangeEvent) GetAmount

func (x *AccountBalanceChangeEvent) GetAmount() float64

func (*AccountBalanceChangeEvent) GetBusinessType

func (x *AccountBalanceChangeEvent) GetBusinessType() BusinessType

func (*AccountBalanceChangeEvent) GetBusinessUniqueNo

func (x *AccountBalanceChangeEvent) GetBusinessUniqueNo() int64

func (*AccountBalanceChangeEvent) ID

func (*AccountBalanceChangeEvent) ProtoMessage

func (*AccountBalanceChangeEvent) ProtoMessage()

func (*AccountBalanceChangeEvent) ProtoReflect

func (*AccountBalanceChangeEvent) Reset

func (x *AccountBalanceChangeEvent) Reset()

func (*AccountBalanceChangeEvent) String

func (x *AccountBalanceChangeEvent) String() string

func (*AccountBalanceChangeEvent) Topic

func (*AccountBalanceChangeEvent) Unmarshal

func (e *AccountBalanceChangeEvent) Unmarshal(content []byte) error

type BusinessType

type BusinessType int32

业务类型

const (
	BusinessType_BusinessTypeUnknown BusinessType = 0
	// 1v1视频
	BusinessType_BusinessType1V1Audio BusinessType = 1
	// 充值
	BusinessType_BusinessTypeRecharge BusinessType = 2
	// 管理员修改
	BusinessType_BusinessTypeManagerChg BusinessType = 3
)

func (BusinessType) Descriptor

func (BusinessType) Enum

func (x BusinessType) Enum() *BusinessType

func (BusinessType) EnumDescriptor deprecated

func (BusinessType) EnumDescriptor() ([]byte, []int)

Deprecated: Use BusinessType.Descriptor instead.

func (BusinessType) Number

func (BusinessType) String

func (x BusinessType) String() string

func (BusinessType) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL