baseconsts

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TAG_GODI                 = "godi"
	Json_content_type        = "application/json"
	KEY_SESSION_TOKEN        = "X-Session-Token"
	ErrBadRequest_STATUS     = 400
	ErrUnauthorized_STATUS   = 401
	ErrForbidden_STATUS      = 403
	ErrNotFound_STATUS       = 404
	ErrInternalServer_STATUS = 500
)
View Source
const (
	WEBCLIENT_TYPE_ENGINE = iota + 1
	WEBCLIENT_TYPE_DBAGENT
	WEBCLIENT_TYPE_ESAGENT

	DB_TYPE_MYSQL     = "mysql"
	DB_TYPE_POSTGRES  = "postgres"
	DB_TYPE_COCKROACH = "cockroach"
	DB_TYPE_CMS       = "cms"
	DB_TYPE_HUB       = "hub"

	//medusa
	DB_TYPE_MEDUSA = "medusa"

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

	ConfigfileIchubEnv  = "/config/env.yml"
	DEFINE_ENV_PATHFILE = ConfigfileIchubEnv

	ENV_DEFAULT = "default"
	ENV_EMPTY   = ""
	//ENV_LOCAL   = "local"
	ENV_DEV     = "dev"
	ENV_TEST    = "test"
	ENV_RELEASE = "release"
	ENV_MASTER  = "master"

	ICHUBCOMMON_LOG_FILE  = "common.log"
	ICHUBENGINGE_LOG_FILE = "ichub_rule.log"
	FACTROY_LOG_FILE      = "factroy.log"

	//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 enccmd
	ENC_FLAG = "enc(*)"
)
View Source
const (
	DomainGeneral   = "general" //通用域 general
	DomainOry       = "ory"
	DomainPortal    = "portal"    //门户 ory	/*门户域 portal*/
	DomainAccount   = "account"   //账户域 account
	DomainContact   = "contact"   //人脉 cms
	DomainCms       = "cms"       //内容域 cms
	DomainHub       = "hub"       //合约域 hub
	DomainBiz       = "biz"       //业务域 bizframe
	DomainOrder     = "order"     //订单域 order
	DomainLogistics = "logistics" //物流域 logistics
	DomainFinance   = "finance"   //财务域 finance
	DomainOperating = "coo"       // 营运域
	DomainProduct   = "product"   //产品域 product*/

	ES_ACTION_QUERY     = "query"
	ES_ACTION_AGGREGATE = "agg"
	ES_ACTION_CMD       = "cmd"
	ES_ACTION_KEYWORD   = "keyword"
	ES_ACTION_METADATA  = "meta"
)

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