Documentation ¶
Index ¶
- Variables
- func CountMemberInfoByGroup(grpID int) (int64, error)
- func Enqueue(grpID int, userID int, joinBoss int, joinType int, joinRound int) error
- func GetQueueCountByUserID(grpID int, userID int) ([]int, error)
- func InitDB(path string) error
- func IsMemberInfoExists(grpID int, memberID int) (bool, error)
- func JoinMemberInfo(grpID int, memberID int, memberName string) (int64, error)
- func QuitQueue(grpID int, userID int, boss int) error
- func ResetAll(grpid int) error
- func ResetRecords(grpid int) error
- type AttackRecord
- type MemberInfo
- type Queue
- type QueueWithUsername
- type SysBossInfo
- type SysInputLimit
- type TempProgress
Constants ¶
This section is empty.
Variables ¶
View Source
var AllModels = []interface{}{ &MemberInfo{}, &AttackRecord{}, &Queue{}, &SysInputLimit{}, &SysBossInfo{}, }
View Source
var ErrDataExceeded = errors.New("数据超限")
View Source
var ErrDataExists = errors.New("表中已存在数据")
View Source
var ErrDataNotUnique = errors.New("数据不唯一")
Functions ¶
func CountMemberInfoByGroup ¶
Return row counts in member_infos
func GetQueueCountByUserID ¶
Return rows by giving userID
func IsMemberInfoExists ¶
Check if member in the MemberInfo table
func JoinMemberInfo ¶
Add a member to member_infos
Types ¶
type AttackRecord ¶
type MemberInfo ¶
func GetMemberInfoByGroup ¶
func GetMemberInfoByGroup(grpID int) ([]MemberInfo, error)
Get all rows in member_infos and return a struct array
type QueueWithUsername ¶
type SysBossInfo ¶
type SysInputLimit ¶
type TempProgress ¶
Progress data, not in database
func GetProgress ¶
func GetProgress(grpID int) ([]TempProgress, error)
Return progress slice contains all 5 bosses, the progress should as close to in-game as possible.
Click to show internal directories.
Click to hide internal directories.