Documentation
¶
Index ¶
- Constants
- func DelAcceptApplyFriend(rc *redis.Client, uid uint32)
- func GetAcceptApplyFriend(rc *redis.Client, uid uint32) ([]byte, bool)
- func GetPlayerFriend(rc *redis.Client, uid uint32) ([]byte, bool)
- func NewMysql(dsn string) *gorm.DB
- func NewRedis(addr, password string, db int) *redis.Client
- func SetAcceptApplyFriend(rc *redis.Client, uid uint32, value []byte) bool
- func SetPlayerFriend(rc *redis.Client, uid uint32, value []byte) bool
- type Account
- type BlockData
- type Item
- type Mail
- type PlayerData
- type PlayerUid
- type ServerConf
Constants ¶
View Source
const ( MailAvatar = 1 // 角色 MailMaterial = 2 // 材料 )
邮件奖励类型
Variables ¶
This section is empty.
Functions ¶
func DelAcceptApplyFriend ¶ added in v1.2.2
func DelAcceptApplyFriend(rc *redis.Client, uid uint32)
删除玩家待加入数据库好友信息
func GetAcceptApplyFriend ¶ added in v1.2.2
获取玩家待加入数据库好友信息
func GetPlayerFriend ¶ added in v1.2.2
获取玩家好友申请信息
func SetAcceptApplyFriend ¶ added in v1.2.2
设置玩家待加入数据库好友信息
func SetPlayerFriend ¶ added in v1.2.2
设置玩家好友申请信息
Types ¶
type Mail ¶
type Mail struct { Id uint32 `gorm:"primarykey;AUTO_INCREMENT"` // 邮件id Title string // 邮件标题 Sender string // 发件人 BeginTime sql.NullTime // 开始时间 EndTime sql.NullTime // 结束时间 Content string // 内容 Item string // 邮件附件 ItemList []*Item `gorm:"-"` }
全服邮件
type PlayerData ¶
type ServerConf ¶ added in v1.2.2
type ServerConf struct {
AutoCreate bool // 是否自动注册
}
Click to show internal directories.
Click to hide internal directories.