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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TypeNone none type
	TypeNone = 0
	// TypeSend send type
	TypeSend = 1
	// TypeReceive receive type
	TypeReceive = 2
	// ReportType 上报business
	ReportType = 21
)

Functions

This section is empty.

Types

type AddCoins

type AddCoins struct {
	Count int64 `json:"count"`
}

AddCoins .

type AddedArchive

type AddedArchive struct {
	*api.Arc
	IP    string `json:"ip"`
	Time  int64  `json:"time"`
	Coins int64  `json:"coins"`
}

AddedArchive archive info.

type ArchiveUserCoins

type ArchiveUserCoins struct {
	Multiply int64 `json:"multiply"`
}

ArchiveUserCoins resp user coins.

type ArgAddCoin

type ArgAddCoin struct {
	Mid      int64
	UpMid    int64
	MaxCoin  int64
	Aid      int64
	AvType   int64
	Business string
	Multiply int64
	RealIP   string
	// archive only
	TypeID  int16
	PubTime int64
}

ArgAddCoin arg add coin.

type ArgAddUserCoinExp

type ArgAddUserCoinExp struct {
	Mid          int64
	Business     int64
	BusinessName string
	Number       int64
	RealIP       string
}

ArgAddUserCoinExp .

type ArgCoinInfo

type ArgCoinInfo struct {
	Mid      int64
	Aid      int64
	AvType   int64
	Business string
	RealIP   string
}

ArgCoinInfo arg coin info.

type ArgList

type ArgList struct {
	Mid      int64
	TP       int64
	Business string
}

ArgList rpc arg list.

type ArgLog

type ArgLog struct {
	Mid       int64
	Recent    bool
	Translate bool
}

ArgLog arg log

type ArgMid

type ArgMid struct {
	Mid    int64
	RealIP string
}

ArgMid .

type ArgModifyCoin

type ArgModifyCoin struct {
	Mid       int64   `json:"mid" form:"mid" validate:"required"`
	Count     float64 `json:"count" form:"count" validate:"required"`
	Reason    string  `json:"reason" form:"reason" validate:"required"`
	IP        string  `json:"ip"`
	Operator  string  `json:"operator" form:"operator"`
	CheckZero int8    `json:"check_zore" form:"check_zero"`
}

ArgModifyCoin rpc arg ,modify user coins.

type Business

type Business struct {
	ID                 int64
	Name               string
	AddCoinReason      string
	AddCoinUpperReason string
	AddExpReason       string
}

Business .

type CoinSettle

type CoinSettle struct {
	ID        int64     `json:"id"`
	Mid       int64     `json:"mid"`
	Aid       int64     `json:"aid"`
	CoinCount int64     `json:"coin_count"`
	ExpTotal  int64     `json:"exp_total"`
	ExpSub    int64     `json:"exp_sub"`
	State     int       `json:"state"`
	Describe  string    `json:"describe"`
	ITime     time.Time `json:"itime"`
	CTime     time.Time `json:"ctime"`
	MTime     time.Time `json:"mtime"`
}

CoinSettle .

type CoinSettlePeriod

type CoinSettlePeriod struct {
	ID        int64     `json:"id"`
	FromYear  int       `json:"from_year"`
	FromMonth int       `json:"from_month"`
	FromDay   int       `json:"from_day"`
	ToYear    int       `json:"to_year"`
	ToMonth   int       `json:"to_month"`
	ToDay     int       `json:"to_day"`
	CTime     time.Time `json:"ctime"`
	MTime     time.Time `json:"mtime"`
}

CoinSettlePeriod .

type DataBus

type DataBus struct {
	Mid      int64     `json:"mid"`      // user id
	Avid     int64     `json:"avid"`     // archive id
	AvType   int8      `json:"avtp"`     // archive type
	UpID     int64     `json:"upper_id"` // upper id
	Multiply int64     `json:"multiply"` // multiply
	Time     time.Time `json:"time"`     // archive pub date
	IP       string    `json:"ip"`       // userip
	TypeID   int16     `json:"rid"`      // zone id
	Tags     string    `json:"tags"`     // tag ids
	Ctime    int64     `json:"ctime"`    // add coin time
	MsgID    string    `json:"msg_id"`   // unique msg id
}

DataBus databus msg.

type Exp

type Exp struct {
	Delta  float64 `json:"delta"`
	Time   string  `json:"time"`
	Reason string  `json:"reason"`
}

Exp exp

type List

type List struct {
	Aid      int64  `json:"aid,omitempty"`
	Multiply int64  `json:"multiply,omitempty"`
	Ts       int64  `json:"ts,omitempty"`
	IP       uint32 `json:"ip,omitempty"`
}

List define coin added list.

type Log

type Log struct {
	From      float64 `json:"from"`
	To        float64 `json:"to"`
	IP        string  `json:"ip"`
	Desc      string  `json:"desc"`
	TimeStamp int64   `json:"timestamp"`
}

Log coins log.

type LogExp

type LogExp struct {
	List  []*Exp `json:"list"`
	Count int    `json:"count"`
}

LogExp log exp

type Record

type Record struct {
	Aid       int64
	Mid       int64
	Up        int64
	Timestamp int64
	Multiply  int64
	AvType    int64
	Business  string
	IP        uint32
	IPV6      string
}

Record coin added record.

Jump to

Keyboard shortcuts

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