constant

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootDir                = getRootDir()
	LogPath                = filepath.Join(RootDir, "log")
	DataPath               = filepath.Join(RootDir, "data")
	ExampleAccountJsonPath = filepath.Clean(DataPath + "/template/account/example.json")
)
View Source
var ClientList = []Client{Web, Android, Ios}

Functions

This section is empty.

Types

type CacheTab

type CacheTab string
const (
	LoginFailCount         CacheTab = "loginFailCount"
	EmailCaptcha           CacheTab = "emailCaptcha"
	CaptchaEmailErrorCount CacheTab = "captchaEmailErrorCount"
)

type Client

type Client string

Client 客户端

const (
	Web     Client = "web"
	Android Client = "android"
	Ios     Client = "ios"
)

type Encoding

type Encoding string
const (
	GBK  Encoding = "GBK"
	UTF8 Encoding = "UTF8"
)

type IncomeExpense

type IncomeExpense string // @name IncomeExpense `example:"expense" enums:"income,expense" swaggertype:"string"`

IncomeExpense 收支类型

const (
	Income  IncomeExpense = "income"
	Expense IncomeExpense = "expense"
)

func (*IncomeExpense) QueryExpense

func (ie *IncomeExpense) QueryExpense() bool

func (*IncomeExpense) QueryIncome

func (ie *IncomeExpense) QueryIncome() bool

type LogOperation

type LogOperation string
const (
	LogOperationOfAdd    LogOperation = "add"
	LogOperationOfUpdate LogOperation = "update"
	LogOperationOfDelete LogOperation = "delete"
)

type Notification

type Notification int
const (
	NotificationOfCaptcha             Notification = iota
	NotificationOfRegistrationSuccess Notification = iota
	NotificationOfUpdatePassword      Notification = iota
)

type ServerMode

type ServerMode string
const Debug, Production ServerMode = "debug", "production"

type Subject

type Subject string

type UserAction

type UserAction string
const (
	Login          UserAction = "login"
	Register       UserAction = "register"
	ForgetPassword UserAction = "forgetPassword"
	UpdatePassword UserAction = "updatePassword"
)

Jump to

Keyboard shortcuts

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