constant

package
v0.0.0-...-7604275 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotEnable = 0 //未启用
	Enable    = 1 //启用
)
View Source
const (
	OK                 = 0    // Success
	NotLoggedIn        = 1000 // 未登录
	ParameterIllegal   = 1001 // 参数不合法
	UnauthorizedUserId = 1002 // 非法的用户Id
	Unauthorized       = 1003 // 未授权
	ServerError        = 1004 // 系统错误
	RoutingNotExist    = 1005 // 路由不存在
)
View Source
const (
	ImageFormatOfJpg  = "jpg"
	ImageFormatOfJpeg = "jpeg"
	ImageFormatOfGif  = "gif"
	ImageFormatOfPng  = "png"
	ImageFormatOfBmp  = "bmp"
)
View Source
const (
	ImageTypeOrigin = iota
	ImageTypeBig
	ImageTypeThumbnail
)
View Source
const (
	ImageFormatJpg = iota
	ImageFormatGif
	ImageFormatPng
	ImageFormatBmp
	ImageFormatOther = 255
)
View Source
const (
	SenderTypeUser  = 1
	SenderTypeGroup = 2

	ReceiverTypeUser  = 1
	ReceiverTypeGroup = 2

	MessageTypeText     = 0
	MessageTypeLocation = 1
	MessageTypeFace     = 2
	MessageTypeSound    = 3
	MessageTypeImage    = 4
	MessageTypeFile     = 5
	MessageTypeVideo    = 6
)
View Source
const (
	MessageIndexStatusToSend    = 1
	MessageIndexStatusSent      = 2
	MessageIndexStatusConfirmed = 3
	MessageIndexStatusDelete    = 0
)
View Source
const (
	ReviewInit = 0 //未提交审核
	ReviewTo   = 1 //已提交,待审核
	ReviewPass = 2 //审核通过
	ReviewFail = 3 //审核未通过
)
View Source
const (
	ServiceCommon  = "service_common"
	ServiceGateway = "service_gateway"
	ServiceFeed    = "service_feed"
	ServiceGroup   = "service_group"
	ServiceMessage = "service_message"
	ServiceUser    = "service_user"
)
View Source
const RequestId = "X-Request-Id"

Variables

Functions

func GetErrorMessage

func GetErrorMessage(code int) string

GetErrorMessage 根据错误码获取错误信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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