model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Vip  = 1 // 月费姥爷
	Svip = 2 // 年费姥爷

	BuyStatusSuccess = 1 // 购买成功
	BuyStatusRetry   = 2 // 需要重试

	TimeNano  = "2006-01-02 15:04:05"
	TimeEmpty = "0000-00-00 00:00:00"

	OpcodeAdd = "add"
)

Vip constants

Functions

This section is empty.

Types

type GuardBuy

type GuardBuy struct {
	OrderId    string
	Uid        int64
	Ruid       int64
	GuardLevel int
	Num        int
	Platform   grpc.Platform
	Source     string
}

GuardBuy buy guard request struct

type GuardEntryEffect

type GuardEntryEffect struct {
	EffectId int    `json:"effect_id"`
	Uid      int64  `json:"uid"`
	TargetId int64  `json:"target_id"`
	EndTime  string `json:"end_time"`
}

GuardEntryEffect entry effect message

type GuardEntryEffects

type GuardEntryEffects struct {
	Business int                `json:"business"`
	Data     []GuardEntryEffect `json:"data"`
}

GuardEntryEffects entry effect message

type GuardInfo

type GuardInfo struct {
	Id            int64
	Uid           int64
	TargetId      int64
	PrivilegeType int
	StartTime     time.Time
	ExpiredTime   time.Time
}

GuardInfo guard info struct for ap_user_privilege

type RoomAdmin

type RoomAdmin struct {
	Id     int64      `json:"id" gorm:"column:id"`
	Uid    int64      `json:"uid" gorm:"column:uid"`
	Roomid int64      `json:"roomid" gorm:"column:roomid"`
	Ctime  xtime.Time `json:"ctime" gorm:"comumn:ctime"`
}

RoomAdmin .

func (*RoomAdmin) TableName

func (ra *RoomAdmin) TableName() string

TableName is used to identify table name in gorm

type RoomAdmins

type RoomAdmins []*RoomAdmin

RoomAdmins multi RoomAdmin .

func (RoomAdmins) Len

func (ras RoomAdmins) Len() int

Len returns length of RoomAdmins.

func (RoomAdmins) Less

func (ras RoomAdmins) Less(i, j int) bool

Less returns sorting rule.

func (RoomAdmins) Swap

func (ras RoomAdmins) Swap(i, j int)

Swap .

type VipBuy

type VipBuy struct {
	Uid      int64
	OrderID  string
	GoodID   int
	GoodNum  int
	Platform grpc.Platform
	Source   string
}

VipBuy buy vip request struct

type VipInfo

type VipInfo struct {
	Vip      int    `json:"vip"`
	VipTime  string `json:"vip_time"`
	Svip     int    `json:"svip"`
	SvipTime string `json:"svip_time"`
}

VipInfo vip info struct

type VipRecord

type VipRecord struct {
	Uid           int64  `json:"uid"`
	Opcode        string `json:"opcode"`
	BuyType       int    `json:"buy_type"`
	BuyNum        int    `json:"buy_num"`
	VipType       int    `json:"vip_type"`
	BeforeVipTime string `json:"begin"`
	AfterVipTime  string `json:"end"`
	Platform      string
}

VipRecord ap_vip_record log and notify message

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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