common

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpCodeConfig

type HttpCodeConfig struct {
	Success map[string]int `json:"success"`
	Fail    map[string]int `json:"fail"`
}

type JWTSession added in v0.0.5

type JWTSession struct {
	ExpireTime    int64                  `json:"expireTime"`
	Account       string                 `json:"account"`
	Role          string                 `json:"role"`
	AccountStatus string                 `json:"accountStatus"`
	AccountType   string                 `json:"accountType"`
	AccountID     string                 `json:"accountID"`
	AccountName   string                 `json:"accountName"`
	Token         string                 `json:"token"`
	Key           string                 `json:"key"`
	IsAdmin       bool                   `json:"isAdmin"`
	IsSuperAdmin  bool                   `json:"isSuperAdmin"`
	IsLogin       bool                   `json:"isLogin"`
	IsLogout      bool                   `json:"isLogout"`
	LoginTime     int64                  `json:"loginTime"`
	LoginIP       string                 `json:"loginIP"`
	LoginType     string                 `json:"loginType"`
	LoginDevice   string                 `json:"loginDevice"`
	LoginDeviceID string                 `json:"loginDeviceID"`
	OtherInfo     map[string]interface{} `json:"otherInfo"`
	LoginID       string                 `json:"loginID"`
}

type MysqlConfigModule

type MysqlConfigModule struct {
	User         string        `json:"user"`
	Pass         string        `json:"pass"`
	Port         string        `json:"port"`
	Host         string        `json:"host"`
	Name         string        `json:"name"`
	LoggerConfig logger.Config `json:"loggerConfig"`
}

type OSSConfigModule

type OSSConfigModule struct {
	EndPoint        string            `json:"endPoint"`
	AccessKeyID     string            `json:"accessKeyID"`
	AccessKeySecret string            `json:"accessKeySecret"`
	DefaultBucket   string            `json:"defaultBucket"`
	RoleArn         string            `json:"roleArn"`
	STSEndPoint     string            `json:"stsEndPoint"`
	Folder          map[string]string `json:"folder"`
}

type RedisConfigModule

type RedisConfigModule struct {
	Pass string `json:"pass"`
	Port string `json:"port"`
	Host string `json:"host"`
	DB   int    `json:"db"`
}

Jump to

Keyboard shortcuts

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