Documentation
¶
Index ¶
- Constants
- Variables
- func MsgInfo(msg *SysMsg) (title, content, ip string)
- type AccountNotify
- type ArgMedal
- type ArgPendantGroup
- type ArgPendantGroupList
- type ArgPendantInfo
- type ArgPendantOrder
- type ArgPendantPKG
- type Invite
- type Invitee
- type MangerInfo
- type Medal
- type MedalGroup
- type MedalInfo
- type MedalMemberAddList
- type MedalMemberMID
- type MedalOperLog
- type MedalOwner
- type OperationLog
- type Pager
- type PendantGroup
- type PendantGroupRef
- type PendantInfo
- type PendantOperLog
- type PendantOrder
- type PendantPKG
- type PendantPrice
- type RichInvite
- type SysMsg
Constants ¶
View Source
const ( // StatusOK status ok StatusOK = 0 // StatusUsed status used StatusUsed = 1 // StatusExpires status expires StatusExpires = 2 )
View Source
const ( // OwnerActivated medal_owner is_activated=1 . OwnerActivated = int8(1) // OwnerNotActivated medal_owner is_activated=0 . OwnerNotActivated = int8(0) // MaxCount medal batch add max. MaxCount = 2000 // MedalSourceTypeAdmin medal source type admin. MedalSourceTypeAdmin = int8(1) )
View Source
const ( AccountNotifyUpdatePendant = "updatePendant" AccountNotifyUpdateMedal = "updateMedal" )
const
View Source
const ( // pendant type PendantCoinPrice = int8(0) PendantBCoinPrice = int8(1) PendantIntegralPrice = int8(2) // order plat PendantOrderPlatDefault = int8(-1) PendantOrderPlatPCAndH5 = int8(0) PendantOrderPlatPhone = int8(1) // pkg status PendantPKGInvalid = int8(0) PendantPKGValid = int8(1) PendantPKGOnEquip = int8(2) // pendant add style PendantAddStyleDay = int8(1) PendantAddStyleDate = int8(2) // sourceType PendantSourceTypeAdmin = int8(1) PendantSourceTypePGC = int8(2) )
const .
View Source
const (
MsgTypeCustom = int8(1)
)
const msg
Variables ¶
View Source
var (
PriceTypes = []int8{PendantCoinPrice, PendantBCoinPrice, PendantIntegralPrice}
)
var .
Functions ¶
Types ¶
type AccountNotify ¶
type AccountNotify struct { UID int64 `json:"mid"` Type string `json:"type"` Action string `json:"action"` }
AccountNotify .
type ArgMedal ¶
type ArgMedal struct { GID int64 `json:"gid"` Name string `json:"name"` Description string `json:"description"` Image string `json:"image"` ImageSmall string `json:"image_small"` Condition string `json:"condition"` Level string `json:"level"` LevelRank string `json:"level_rank"` Sort int `json:"sort"` IsOnline int `json:"is_online"` }
ArgMedal medal struct .
type ArgPendantGroup ¶
type ArgPendantGroup struct { GID int64 `form:"gid"` Name string `form:"name" validate:"required"` Rank int16 `form:"rank"` Status int8 `form:"status"` }
ArgPendantGroup .
type ArgPendantGroupList ¶
type ArgPendantGroupList struct { GID int64 `form:"gid"` PN int `form:"pn"` PS int `form:"ps" validate:"max=100"` }
ArgPendantGroupList .
type ArgPendantInfo ¶
type ArgPendantInfo struct { PID int64 `form:"pid"` GID int64 `form:"gid" validate:"required"` Name string `form:"name" validate:"required"` Image string `form:"image"` ImageModel string `form:"image_model"` Rank int16 `form:"rank"` Status int8 `form:"status"` IntegralPrice int `form:"integral_price"` // 积分 BcoinPrice int `form:"bcoin_price"` // B币 CoinPrice int `form:"coin_price"` // 硬币 }
ArgPendantInfo .
type ArgPendantOrder ¶
type ArgPendantOrder struct { Start xtime.Time `form:"start_time"` End xtime.Time `form:"end_time"` Status int8 `form:"status"` PID int64 `form:"pid"` PayID string `form:"pay_id"` UID int64 `form:"uid"` PN int `form:"pn"` PS int `form:"ps" validate:"max=100"` }
ArgPendantOrder .
type ArgPendantPKG ¶
type ArgPendantPKG struct { UID int64 `form:"uid" validate:"required"` PID int64 `form:"pid" validate:"required"` Day int64 `form:"day" validate:"required"` Type int8 `form:"type"` IsMsg bool `form:"is_msg"` Title string `form:"title"` Content string `form:"content"` OID int64 `form:"oper_id" validate:"required"` }
ArgPendantPKG .
type Invite ¶
type Invite struct { Status int64 `json:"status"` Mid int64 `json:"mid"` Code string `json:"invite_code"` IP uint32 `json:"-"` // legacy IP field IPng []byte `json:"-"` Ctime xtime.Time `json:"buy_time"` Expires int64 `json:"expires"` Imid int64 `json:"invited_mid,omitempty"` UsedAt int64 `json:"used_at,omitempty"` }
Invite invite.
type Invitee ¶
type Invitee struct { Mid int64 `json:"mid"` Uname string `json:"uname"` Face string `json:"face"` }
Invitee invited.
type MangerInfo ¶
MangerInfo struct
type Medal ¶
type Medal struct { ID int64 `form:"id" json:"id"` GID int64 `form:"gid" validate:"required" json:"gid"` Name string `form:"name" validate:"required" json:"name"` Description string `form:"description" validate:"required" json:"description"` Image string `form:"image" validate:"required" json:"image"` ImageSmall string `form:"image_small" validate:"required" json:"image_small"` Condition string `form:"condition" validate:"required" json:"condition"` Level int8 `form:"level" validate:"min=1,max=3" json:"level"` LevelRank string `form:"level_rank" validate:"required" json:"level_rank"` Sort int `form:"sort" validate:"required" json:"sort"` IsOnline int `form:"is_online" json:"is_online"` CTime xtime.Time `json:"ctime,omitempty"` MTime xtime.Time `json:"mtime,omitempty"` }
Medal medal info .
type MedalGroup ¶
type MedalGroup struct { ID int64 `form:"id" json:"id"` PID int64 `form:"pid" json:"pid"` Rank int8 `form:"rank" validate:"required" json:"rank"` IsOnline int8 `form:"is_online" json:"is_online"` Name string `form:"name" validate:"required" json:"name"` PName string `form:"pname" json:"pname,omitempty"` CTime xtime.Time `json:"ctime,omitempty"` MTime xtime.Time `json:"mtime,omitempty"` }
MedalGroup nameplate group .
type MedalInfo ¶
type MedalInfo struct { *Medal GroupName string `json:"group_name"` ParentGroupName string `json:"parent_group_name"` }
MedalInfo struct.
type MedalMemberAddList ¶
MedalMemberAddList struct.
type MedalMemberMID ¶
type MedalMemberMID struct { ID int64 `json:"id"` NID int64 `json:"nid"` MedalName string `json:"medal_name"` IsActivated int8 `json:"is_activated"` IsDel int8 `json:"is_del"` }
MedalMemberMID struct.
type MedalOperLog ¶
type MedalOperLog struct { OID int64 `json:"oper_id"` Action string `json:"action"` CTime xtime.Time `json:"ctime"` MTime xtime.Time `json:"mtime"` OperName string `json:"oper_name"` MID int64 `json:"mid"` MedalID int64 `json:"medal_id"` SourceType int8 `json:"source_type"` }
MedalOperLog struct.
type MedalOwner ¶
type MedalOwner struct { ID int64 `json:"id"` MID int64 `json:"mid"` NID int64 `json:"nid"` IsActivated int8 `json:"is_activated"` IsDel int8 `json:"is_del"` CTime xtime.Time `json:"ctime"` MTime xtime.Time `json:"mtime"` }
MedalOwner nameplate owner .
type OperationLog ¶
type OperationLog struct { ID int64 `json:"id"` OID int64 `json:"oid"` Action string `json:"action"` CTime xtime.Time `json:"ctime"` MTime xtime.Time `json:"mtime"` }
OperationLog operation log .
type Pager ¶
type Pager struct { Total int64 `json:"total"` PN int `json:"page"` PS int `json:"pagesize"` Order string `json:"order"` Sort string `json:"sort"` }
Pager .
type PendantGroup ¶
type PendantGroup struct { ID int64 `json:"id"` Name string `json:"name"` Rank int16 `json:"rank"` Status int8 `json:"status"` }
PendantGroup .
type PendantGroupRef ¶
PendantGroupRef .
type PendantInfo ¶
type PendantInfo struct { ID int64 `json:"id"` Name string `json:"name"` Image string `json:"image"` ImageModel string `json:"image_model"` Status int8 `json:"status"` Rank int16 `json:"rank"` GID int64 `json:"gid"` GroupName string `json:"group_name"` GroupRank int16 `json:"group_rank"` Prices []*PendantPrice `json:"prices"` }
PendantInfo .
type PendantOperLog ¶
type PendantOperLog struct { OID int64 `json:"oper_id"` Action string `json:"action"` CTime xtime.Time `json:"ctime"` MTime xtime.Time `json:"mtime"` OperName string `json:"oper_name"` UID int64 `json:"uid"` PID int64 `json:"pid"` SourceType int8 `json:"source_type"` }
PendantOperLog .
type PendantOrder ¶
type PendantOrder struct { BuyTime int64 `json:"buy_time"` OrderID string `json:"order_id"` PayID string `json:"pay_id"` UID int64 `json:"uid"` PID int64 `json:"-"` PName string `json:"pendant_name"` TimeLength int64 `json:"time_length"` Cost string `json:"cost"` PayType int8 `json:"pay_type"` Status int8 `json:"status"` AppID int8 `json:"appid"` Platform string `json:"platform"` }
PendantOrder .
type PendantPKG ¶
type PendantPKG struct { ID int64 `json:"id"` UID int64 `json:"uid"` PID int64 `json:"pid"` Expires int64 `json:"expires"` TP int8 `json:"type"` Status int8 `json:"status"` IsVip int8 `json:"is_vip"` }
PendantPKG .
type PendantPrice ¶
PendantPrice .
func (*PendantPrice) BulidPendantPrice ¶
func (pp *PendantPrice) BulidPendantPrice(arg *ArgPendantInfo, tp int8)
BulidPendantPrice .
type RichInvite ¶
type RichInvite struct { Status int64 `json:"status"` Mid int64 `json:"mid"` Code string `json:"invite_code"` BuyIP string `json:"buy_ip"` Ctime xtime.Time `json:"buy_time"` Expires int64 `json:"expires"` Invitee *Invitee `json:"invitee,omitempty"` UsedAt int64 `json:"used_at,omitempty"` }
RichInvite rich invite with invitee info.
func NewRichInvite ¶
func NewRichInvite(inv *Invite, info *accmdl.Info) *RichInvite
NewRichInvite new a rich invite.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.