state

package
v0.0.0-...-f6f3262 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCloverBackgroundImageUrl

func GetCloverBackgroundImageUrl(book *entity.BookInfo) string

Types

type GlobalState

type GlobalState struct {
	Debug           bool
	Version         string
	SingleUserMode  bool
	StaticMode      bool
	OnlineUserCount int
	TopBooks        *entity.BookInfoList
	ServerStatus    *util.ServerStatus
}
var Global GlobalState

func (*GlobalState) GetAllBookNum

func (g *GlobalState) GetAllBookNum() int

GetAllBookNum 获取所有书籍数量

type ReaderMode

type ReaderMode int
const (
	// ScrollMode 卷轴模式
	ScrollMode ReaderMode = iota
	// FlipMode 翻页模式
	FlipMode
)

type UserState

type UserState struct {
	IsLogin    bool
	IsAdmin    bool
	ReaderMode ReaderMode //阅读器默认阅读模式
}
var User UserState

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL