Documentation ¶
Index ¶
Constants ¶
View Source
const ( NotEnable = 0 //未启用 Enable = 1 //启用 )
View Source
const ( OK = 0 // Success NotLoggedIn = 1000 // 未登录 ParameterIllegal = 1001 // 参数不合法 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 ¶
View Source
var EnableDbToProto = map[int32]proto_build.IsEnable{ NotEnable: proto_build.IsEnable_NotEnable, Enable: proto_build.IsEnable_Enable, }
View Source
var EnableProtoToDb = map[proto_build.IsEnable]int32{ proto_build.IsEnable_NotEnable: NotEnable, proto_build.IsEnable_Enable: Enable, }
View Source
var ReviewStatusDbToProto = map[int32]proto_build.ReviewStatus{ ReviewInit: proto_build.ReviewStatus_ReviewInit, ReviewTo: proto_build.ReviewStatus_ReviewTo, ReviewPass: proto_build.ReviewStatus_ReviewPass, ReviewFail: proto_build.ReviewStatus_ReviewFail, }
View Source
var ReviewStatusProtoToDb = map[proto_build.ReviewStatus]int32{ proto_build.ReviewStatus_ReviewInit: ReviewInit, proto_build.ReviewStatus_ReviewTo: ReviewTo, proto_build.ReviewStatus_ReviewPass: ReviewPass, proto_build.ReviewStatus_ReviewFail: ReviewFail, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.