baseconsts

package
v0.0.0-...-e3601d1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MulanPSL-2.0 Imports: 0 Imported by: 32

Documentation

Index

Constants

View Source
const (
	ConfigfileEnv          = "/config/env.yml"
	ConfigfileAppEnv       = "/config/app-env.yml"
	DEFINE_ENV_PATHFILE    = ConfigfileAppEnv
	DEFINE_ENV_ENVPATHFILE = ConfigfileEnv

	ENV_EMPTY   = ""
	ENV_DEFAULT = "default"
	ENV_DEV     = "dev"
	ENV_TEST    = "test"
	ENV_RELEASE = "release"
	ENV_MASTER  = "master"
)
View Source
const (
	JsonContentType = "application/json"

	AUTH_HEADER_TOKEN     = "Access-Token"
	AUTH_HEADER_APIKEY    = "Access-ApiKey"
	WEBCLIENT_TYPE_ENGINE = iota
	WEBCLIENT_TYPE_DBAGENT
	WEBCLIENT_TYPE_ESAGENT

	DB_TYPE_MYSQL     = "mysql"
	DB_TYPE_POSTGRES  = "postgres"
	DB_TYPE_COCKROACH = "cockroach"

	//path file os
	IchubBasePath    = "BasePath"
	IchubBasePathPkg = "BasePathPkg"

	//code
	RetCode_SUCCESS RetCode = 200
	RetCode_ERROR   RetCode = 500
	//page size
	PAGE_CURRENT  = 1
	PAGE_SIZE_ALL = -1

	PAGE_SIZE_ZERO = 0

	PAGE_SIZE_DEFAULT = 20

	PAGE_SIZE_MAX = 500

	//datetime
	DATETIME_UTC = iota
	DATETIME_GMT8

	ZERO_TIME_INT64 = -62135596800

	FormatDate     = "2006-01-02"
	FormatDateTime = "2006-01-02 15:04:05"
	FormatUTCTime  = "2006-01-02T15:04:05.000Z"

	//baseconfig enc
	ENC_FLAG = "enc(*)"
)
View Source
const (
	CODE_SUCCESS = 200

	CODE_REQUEST_BAD    = 400
	CODE_NOFOUND_RECORD = 501
	CODE_SERVER_ERR     = 500
	CODE_FAIL           = CODE_SERVER_ERR
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RetCode

type RetCode int

Jump to

Keyboard shortcuts

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