Documentation ¶
Overview ¶
Package dao 数据访问对象
Package dao 玩家dao层操作 ¶
Package dao 服务器群组dao层操作
Index ¶
- type Dao
- func (d *Dao) AddGroupAdmin(groupID int64, adminQQ ...int64) error
- func (d *Dao) AddGroupServer(groupID int64, gameID, serverID, pgid, serverName string) error
- func (d *Dao) CreateGroup(groupID, owner int64) error
- func (d *Dao) CreatePlayer(qid int64, name string) error
- func (d *Dao) DeleteGroup(groupID int64) error
- func (d *Dao) DeletePlayer(qid int64) error
- func (d *Dao) GetGroup(groupID int64) (*model.Group, error)
- func (d *Dao) GetPlayerByName(name string) (*model.Player, error)
- func (d *Dao) GetPlayerByQID(qid int64) (*model.Player, error)
- func (d *Dao) GetServerByAlias(groupID int64, alias string) (*model.Server, error)
- func (d *Dao) IsOwner(groupID, qq int64) bool
- func (d *Dao) IsServerAdmin(groupID, qq int64) bool
- func (d *Dao) RemoveGroupAdmin(groupID, adminQQ int64) error
- func (d *Dao) RemoveGroupServer(groupID int64, gameID string) error
- func (d *Dao) ServerAlias(gameID, alias string) error
- func (d *Dao) UpdateOwner(groupID, owner int64) error
- func (d *Dao) UpdatePlayer(qid int64, pid, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao 含有数据库对象
func (*Dao) AddGroupAdmin ¶ added in v1.0.2
AddGroupAdmin 添加服务器管理员
func (*Dao) AddGroupServer ¶ added in v1.0.2
AddGroupServer 添加服务器
func (*Dao) CreateGroup ¶ added in v1.0.2
CreateGroup 创建新的服务器群组
func (*Dao) CreatePlayer ¶
CreatePlayer 创建玩家条目
func (*Dao) DeleteGroup ¶ added in v1.0.2
DeleteGroup 删除服务器群组
func (*Dao) GetPlayerByName ¶
GetPlayerByName 根据玩家名获取玩家信息
func (*Dao) GetPlayerByQID ¶
GetPlayerByQID 根据qq号获取玩家信息
func (*Dao) GetServerByAlias ¶ added in v1.1.0
GetServerByAlias 通过别名获取服务器信息
func (*Dao) IsServerAdmin ¶ added in v1.0.2
IsServerAdmin 判断是否为服务器管理
func (*Dao) RemoveGroupAdmin ¶ added in v1.0.2
RemoveGroupAdmin 移除服务器管理员
func (*Dao) RemoveGroupServer ¶ added in v1.0.2
RemoveGroupServer 移除群组服务器
func (*Dao) ServerAlias ¶ added in v1.0.2
ServerAlias 服务器别名修改
func (*Dao) UpdateOwner ¶ added in v1.0.2
UpdateOwner 更新服务器服主
Click to show internal directories.
Click to hide internal directories.