base

package
v0.0.0-...-2b0c82f Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

Functions

This section is empty.

Types

type AssetType

type AssetType int64
const (
	AssetType_none     AssetType = 0
	AssetType_goldCoin AssetType = 1
	AssetType_diamond  AssetType = 2
)

func AssetTypeFromString

func AssetTypeFromString(s string) (AssetType, error)

func AssetTypePtr

func AssetTypePtr(v AssetType) *AssetType

func (*AssetType) Scan

func (p *AssetType) Scan(value interface{}) (err error)

func (AssetType) String

func (p AssetType) String() string

func (*AssetType) Value

func (p *AssetType) Value() (driver.Value, error)

type BizType

type BizType int64
const (
	BizType_none     BizType = 0
	BizType_live     BizType = 1
	BizType_recharge BizType = 2
)

func BizTypeFromString

func BizTypeFromString(s string) (BizType, error)

func BizTypePtr

func BizTypePtr(v BizType) *BizType

func (*BizType) Scan

func (p *BizType) Scan(value interface{}) (err error)

func (BizType) String

func (p BizType) String() string

func (*BizType) Value

func (p *BizType) Value() (driver.Value, error)

type EventType

type EventType int64
const (
	EventType_none         EventType = 0
	EventType_interactGift EventType = 1
	EventType_orderApple   EventType = 2
	EventType_orderWX      EventType = 3
	EventType_orderAlipay  EventType = 4
	EventType_orderDouyin  EventType = 5
)

func EventTypeFromString

func EventTypeFromString(s string) (EventType, error)

func EventTypePtr

func EventTypePtr(v EventType) *EventType

func (*EventType) Scan

func (p *EventType) Scan(value interface{}) (err error)

func (EventType) String

func (p EventType) String() string

func (*EventType) Value

func (p *EventType) Value() (driver.Value, error)

type UserAsset

type UserAsset struct {
	UserId    int64     `thrift:"userId,1,required" json:"userId"`
	AssetType AssetType `thrift:"assetType,2,required" json:"assetType"`
	AssetCn   int64     `thrift:"assetCn,3,required" json:"assetCn"`
}

func NewUserAsset

func NewUserAsset() *UserAsset

func (*UserAsset) BLength

func (p *UserAsset) BLength() int

func (*UserAsset) DeepEqual

func (p *UserAsset) DeepEqual(ano *UserAsset) bool

func (*UserAsset) FastRead

func (p *UserAsset) FastRead(buf []byte) (int, error)

func (*UserAsset) FastReadField1

func (p *UserAsset) FastReadField1(buf []byte) (int, error)

func (*UserAsset) FastReadField2

func (p *UserAsset) FastReadField2(buf []byte) (int, error)

func (*UserAsset) FastReadField3

func (p *UserAsset) FastReadField3(buf []byte) (int, error)

func (*UserAsset) FastWrite

func (p *UserAsset) FastWrite(buf []byte) int

for compatibility

func (*UserAsset) FastWriteNocopy

func (p *UserAsset) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserAsset) Field1DeepEqual

func (p *UserAsset) Field1DeepEqual(src int64) bool

func (*UserAsset) Field2DeepEqual

func (p *UserAsset) Field2DeepEqual(src AssetType) bool

func (*UserAsset) Field3DeepEqual

func (p *UserAsset) Field3DeepEqual(src int64) bool

func (*UserAsset) GetAssetCn

func (p *UserAsset) GetAssetCn() (v int64)

func (*UserAsset) GetAssetType

func (p *UserAsset) GetAssetType() (v AssetType)

func (*UserAsset) GetUserId

func (p *UserAsset) GetUserId() (v int64)

func (*UserAsset) Read

func (p *UserAsset) Read(iprot thrift.TProtocol) (err error)

func (*UserAsset) ReadField1

func (p *UserAsset) ReadField1(iprot thrift.TProtocol) error

func (*UserAsset) ReadField2

func (p *UserAsset) ReadField2(iprot thrift.TProtocol) error

func (*UserAsset) ReadField3

func (p *UserAsset) ReadField3(iprot thrift.TProtocol) error

func (*UserAsset) SetAssetCn

func (p *UserAsset) SetAssetCn(val int64)

func (*UserAsset) SetAssetType

func (p *UserAsset) SetAssetType(val AssetType)

func (*UserAsset) SetUserId

func (p *UserAsset) SetUserId(val int64)

func (*UserAsset) String

func (p *UserAsset) String() string

func (*UserAsset) Write

func (p *UserAsset) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

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