Documentation
¶
Overview ¶
Package mai COPY FROM REI LUCY ^^
Index ¶
- Variables
- func FullPageRender(data player, ctx *nano.Ctx) (raw image.Image)
- func GetChartType(chart string) image.Image
- func GetCover(id string) (image.Image, error)
- func GetDefaultPlate(id string) (image.Image, error)
- func GetRankPicRaw(id int) (image.Image, error)
- func GetRateStatusAndRenderToImage(rank string) image.Image
- func GetUserSwitcherInfoFromDatabase(userid uint64) bool
- func GetUserToken(userid string) string
- func InitDataBase() error
- func LoadComboImage(imageName string) image.Image
- func LoadSyncImage(imageName string) image.Image
- func MaimaiRenderBase(ctx *nano.Ctx)
- func NoHeadLineCase(word string) string
- func QueryMaiBotDataFromUserName(username string) (playerdata []byte, err error)
- func RenderCard(data playerData, num int, isSimpleRender bool) image.Image
- type DivingFishB50UserName
- type DivingFishDevFullDataRecords
- type RealConvertPlay
- type UserIDToMaimaiFriendCode
- type UserIDToQQ
- type UserIDToToken
- type UserSwitcherService
- type WebPingStauts
- type ZlibErrorStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UniFontPath = maifont + "Montserrat-Bold.ttf" Root = utils.ReturnLucyMainDataIndex("maidx") + "resources/maimai/" )
Functions ¶
func FullPageRender ¶
FullPageRender Render Full Page
func GetRateStatusAndRenderToImage ¶
GetRateStatusAndRenderToImage Get Rate
func GetUserToken ¶
func InitDataBase ¶
func InitDataBase() error
func LoadComboImage ¶
LoadComboImage Load combo images
func LoadSyncImage ¶
LoadSyncImage Load sync images
func MaimaiRenderBase ¶
MaimaiRenderBase Render Base Maimai B50.
Types ¶
type DivingFishB50UserName ¶
type DivingFishDevFullDataRecords ¶
type DivingFishDevFullDataRecords struct {
AdditionalRating int `json:"additional_rating"`
Nickname string `json:"nickname"`
Plate string `json:"plate"`
Rating int `json:"rating"`
Records []struct {
Achievements float64 `json:"achievements"`
Ds float64 `json:"ds"`
DxScore int `json:"dxScore"`
Fc string `json:"fc"`
Fs string `json:"fs"`
Level string `json:"level"`
LevelIndex int `json:"level_index"`
LevelLabel string `json:"level_label"`
Ra int `json:"ra"`
Rate string `json:"rate"`
SongId int `json:"song_id"`
Title string `json:"title"`
Type string `json:"type"`
} `json:"records"`
Username string `json:"username"`
}
type RealConvertPlay ¶
type UserIDToMaimaiFriendCode ¶
type UserIDToMaimaiFriendCode struct {
TelegramId uint64 `db:"telegramid"`
MaimaiID int64 `db:"friendid"`
}
func FormatMaimaiFriendCode ¶
func FormatMaimaiFriendCode(friendCode int64, tgid uint64) *UserIDToMaimaiFriendCode
func GetUserMaiFriendID ¶
func GetUserMaiFriendID(userid uint64) UserIDToMaimaiFriendCode
func (*UserIDToMaimaiFriendCode) BindUserFriendCode ¶
func (info *UserIDToMaimaiFriendCode) BindUserFriendCode() error
type UserIDToQQ ¶
type UserIDToQQ struct {
QQ uint64 `db:"user_qq"` // qq nums
Userid string `db:"user_id"` // user_id
}
func FormatUserIDDatabase ¶
func FormatUserIDDatabase(qq uint64, userid string) *UserIDToQQ
func GetUserIDFromDatabase ¶
func GetUserIDFromDatabase(userID uint64) UserIDToQQ
GetUserIDFromDatabase Params: user qq id ==> user maimai id.
func (*UserIDToQQ) BindUserIDDataBase ¶
func (info *UserIDToQQ) BindUserIDDataBase() error
type UserIDToToken ¶
func FormatUserToken ¶
func FormatUserToken(tgid string, token string) *UserIDToToken
func (*UserIDToToken) BindUserToken ¶
func (info *UserIDToToken) BindUserToken() error
type UserSwitcherService ¶
type UserSwitcherService struct {
TGId uint64 `db:"tgid"`
IsUsed bool `db:"isused"` // true == lxns service \ false == Diving Fish.
}
func FormatUserSwitcher ¶
func FormatUserSwitcher(tgid uint64, isSwitcher bool) *UserSwitcherService
func (*UserSwitcherService) ChangeUserSwitchInfoFromDataBase ¶
func (info *UserSwitcherService) ChangeUserSwitchInfoFromDataBase() error
type WebPingStauts ¶
type WebPingStauts struct {
Details struct {
MaimaiDXCN struct {
Uptime float64 `json:"uptime"`
} `json:"maimai DX CN"`
MaimaiDXCNDXNet struct {
Uptime float64 `json:"uptime"`
} `json:"maimai DX CN DXNet"`
MaimaiDXCNMain struct {
Uptime float64 `json:"uptime"`
} `json:"maimai DX CN Main"`
MaimaiDXCNNetLogin struct {
Uptime float64 `json:"uptime"`
} `json:"maimai DX CN NetLogin"`
MaimaiDXCNTitle struct {
Uptime float64 `json:"uptime"`
} `json:"maimai DX CN Title"`
MaimaiDXCNUpdate struct {
Uptime float64 `json:"uptime"`
} `json:"maimai DX CN Update"`
} `json:"details"`
Status bool `json:"status"`
}
type ZlibErrorStatus ¶
type ZlibErrorStatus struct {
Full struct {
Field1 int `json:"10"`
Field2 int `json:"30"`
Field3 int `json:"60"`
} `json:"full"`
FullError struct {
Field1 int `json:"10"`
Field2 int `json:"30"`
Field3 int `json:"60"`
} `json:"full_Error"`
ZlibError struct {
Field1 int `json:"10"`
Field2 int `json:"30"`
Field3 int `json:"60"`
} `json:"zlib_Error"`
}
Click to show internal directories.
Click to hide internal directories.