32 lines
1.7 KiB
Go
32 lines
1.7 KiB
Go
// Package constants define constant variable
|
|
package constants
|
|
|
|
const (
|
|
// CodeSuccess define constant to indicates that the API was successfully processed
|
|
CodeSuccess = 20000
|
|
// CodeInvalidParamFailed define constant to indicates request parameter parsing failed
|
|
CodeInvalidParamFailed = 40001
|
|
// CodeFoundTargetFailed define variable to returned when the specific database table cannot be identified using the provided token info.
|
|
CodeFoundTargetFailed = 40004
|
|
// CodeSubTargetRepeat define variable to indicates subscription target already exist in list
|
|
CodeSubTargetRepeat = 40005
|
|
// CodeSubTargetNotFound define variable to indicates can not find measurement by subscription target
|
|
CodeSubTargetNotFound = 40006
|
|
// CodeCancelSubTargetMissing define variable to indicates cancel a not exist subscription target
|
|
CodeCancelSubTargetMissing = 40007
|
|
// CodeUpdateSubTargetMissing define variable to indicates update a not exist subscription target
|
|
CodeUpdateSubTargetMissing = 40008
|
|
// CodeAppendSubTargetMissing define variable to indicates append a not exist subscription target
|
|
CodeAppendSubTargetMissing = 40009
|
|
// CodeUnsupportSubOperation define variable to indicates append a not exist subscription target
|
|
CodeUnsupportSubOperation = 40010
|
|
// CodeDBQueryFailed define constant to indicates database query operation failed
|
|
CodeDBQueryFailed = 50001
|
|
// CodeDBUpdateailed define constant to indicates database update operation failed
|
|
CodeDBUpdateailed = 50002
|
|
// CodeRedisQueryFailed define constant to indicates redis query operation failed
|
|
CodeRedisQueryFailed = 60001
|
|
// CodeRedisUpdateFailed define constant to indicates redis update operation failed
|
|
CodeRedisUpdateFailed = 60002
|
|
)
|