consts

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONFIG_PREFIX = "models"
	DB_DRIVER     = "driver"
	DB_USER       = "user"
	DB_PASSWORD   = "password"
	DB_HOST       = "host"
	DB_PORT       = "port"
	DB_DATABASE   = "database"
	SERVICE_ID    = "service_id"
	AUTH_URL      = "auth_url"
	STORAGE       = "storage"
	STATIC_PATH   = "static"
	UPLOAD_PATH   = "uploads"
	PLUGINS_PATH  = "plugins"
	ZEEBE_ADDRESS = "zeebe_address"
)
View Source
const (
	LOCAL  = "local"
	ALIYUN = "aliyun"
)
View Source
const (
	URL           = "url"
	ADMIN         = "admin"
	ADMINPASSWORD = "password"
	WITHDEMO      = "withDemo"
)
View Source
const (
	SERVICE_NODE_TYPE = "serviceType"
	NORMAL_SERVICE    = "normal"
	AUTH_SERVICE      = "auth"
)
View Source
const (
	LOGIN           = "login"
	LOGIN_NAME      = "loginName"
	PASSWORD        = "password"
	OLD_PASSWORD    = "oldPassword"
	New_PASSWORD    = "newPassword"
	LOGOUT          = "logout"
	CHANGE_PASSWORD = "changePassword"
	IS_SUPPER       = "isSupper"
	IS_DEMO         = "isDemo"
	PUBLISH         = "publish"
	ROLLBACK        = "rollback"
	DEPLOY_RPOCESS  = "deployProcess"
	NAME            = "name"
	INSTALLED       = "installed"
	CAN_UPLOAD      = "canUpload"
	UPLOAD          = "upload"

	ONE        = "one"
	QUERY      = "query"
	MUTATION   = "mutation"
	AGGREGATE  = "aggregate"
	LIST       = "list"
	FIELDS     = "Fields"
	NODES      = "nodes"
	TOTAL      = "total"
	INPUT      = "Input"
	SET_INPUT  = "Set"
	UPSERT     = "upsert"
	UPSERT_ONE = "upsertOne"
	INSERT     = "insert"
	INSERT_ONE = "insertOne"
	UPDATE     = "update"
	UPDATE_ONE = "updateOne"
	DELETE     = "delete"
	BY_ID      = "ById"
	SET        = "set"
	HAS_MANY   = "HasMany"
	HAS_ONE    = "HasOne"
	ENTITY     = "Entity"

	ARG_DISTINCTON string = "distinctOn"
	ARG_LIMIT      string = "limit"
	ARG_OFFSET     string = "offset"
	ARG_ORDERBY    string = "orderBy"
	ARG_WHERE      string = "where"

	ARG_ADD     string = "add"
	ARG_DELETE  string = "delete"
	ARG_UPDATE  string = "update"
	ARG_SYNC    string = "sync"
	ARG_CASCADE string = "cascade"
	ARG_CLEAR   string = "clear"

	ARG_AND string = "_and"
	ARG_NOT string = "_not"
	ARG_OR  string = "_or"
)
View Source
const (
	ARG_EQ     string = "_eq"
	ARG_GT     string = "_gt"
	ARG_GTE    string = "_gte"
	ARG_IN     string = "_in"
	ARG_ISNULL string = "_isNull"
	ARG_LT     string = "_lt"
	ARG_LTE    string = "_lte"
	ARG_NOTEQ  string = "_notEq"
	ARG_NOTIN  string = "_notIn"

	ARG_ILIKE string = "_iLike"
	// ARG_IREGEX     string = "_iregex"
	ARG_LIKE     string = "_like"
	ARG_NOTILIKE string = "_notILike"
	// ARG_NOTIREGEX  string = "_notIRegex"
	ARG_NOTLIKE  string = "_notLike"
	ARG_NOTREGEX string = "_notRegexp"
	// ARG_NOTSIMILAR string = "_notSimilar"
	ARG_REGEX string = "_regexp"
)

EQ("="), GTE(">="), GT(">"), LT("<"), LTE("<=");

View Source
const (
	ARG_COUNT    string = "count"
	ARG_COLUMNS  string = "columns"
	ARG_DISTINCT string = "distinct"
)
View Source
const (
	ARG_OBJECT            string = "object"
	ARG_OBJECTS           string = "objects"
	RESPONSE_RETURNING    string = "returning"
	RESPONSE_AFFECTEDROWS string = "affectedRows"
	ARG_SET               string = "set"
	ARG_FILE              string = "file"
	ARG_FOLDER            string = "folder"
)
View Source
const (
	UUID    string = "uuid"
	INNERID string = "innerId"
	TYPE    string = "type"
)
View Source
const (
	META_ID          string = "id"
	META_APP_UUID    string = "appUuid"
	META_STATUS      string = "status"
	META_CONTENT     string = "content"
	META_PUBLISHEDAT string = "publishedAt"
	META_CREATEDAT   string = "createdAt"
	META_UPDATEDAT   string = "updatedAt"

	META_CLASSES   string = "classes"
	META_RELATIONS string = "relations"
)

* * Meta实体用到的常量 *

View Source
const (
	MEDIA_ENTITY_NAME = "Media"
	MEDIA_UUID        = "MEDIA_ENTITY_UUID"
)
View Source
const (
	ID_SUFFIX     string = "_id"
	PIVOT         string = "pivot"
	INDEX_SUFFIX  string = "_idx"
	SUFFIX_SOURCE string = "_source"
	SUFFIX_TARGET string = "_target"
)
View Source
const (
	ID string = "id"
	OF string = "Of"
)
View Source
const (
	BOOLEXP           string = "BoolExp"
	ORDERBY           string = "OrderBy"
	DISTINCTEXP       string = "DistinctExp"
	MUTATION_RESPONSE string = "MutationResponse"
)
View Source
const (
	TOKEN          = "token"
	AUTHORIZATION  = "Authorization"
	BEARER         = "Bearer "
	CONTEXT_VALUES = "values"
	ME             = "me"
)
View Source
const (
	FILE           = "File"
	FILE_NAME      = "fileName"
	FILE_SIZE      = "size"
	FILE_MIMETYPE  = "mimeType"
	FILE_URL       = "url"
	File_EXTNAME   = "extName"
	FILE_THMUBNAIL = "thumbnail"
	FILE_RESIZE    = "resize"
	FILE_WIDTH     = "width"
	FILE_HEIGHT    = "height"
)
View Source
const APPID = "appId"
View Source
const ASSOCIATION_OWNER_ID = "owner__rx__id"
View Source
const CREATEDATE = "createDate"
View Source
const (
	DELETED_AT string = "deletedAt"
)
View Source
const GUEST_ROLE_ID = 1

普通角色的ID永远不会是1

View Source
const HEADER_APPX_APPID = "Appx-appid"
View Source
const LOADERS = "loaders"
View Source
const NO_PERMISSION = "No permission to access data"
View Source
const PREDEFINED_ME = "$me"
View Source
const PREDEFINED_QUERYUSER = "$queryUser"
View Source
const ROOT = "root"
View Source
const SYSTEM = "System"
View Source
const TABLE_PREFIX = "a"
View Source
const UPDATEDATE = "updateDate"

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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