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 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 ¶
ArgCoinInfo arg coin info.
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.
Click to show internal directories.
Click to hide internal directories.