status

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package status 业务返回的错误码定义

Index

Constants

View Source
const (
	AreaNotExist = iota + 1000
	OwnerQuitErr
	AreaNameInputNilErr
	AreaNameLengthLimit
	SABindError
)

与家庭相关的响应状态码

View Source
const (
	DeviceExist = iota + 2000
	SaDeviceAlreadyBind
	DeviceNameInputNilErr
	DeviceNameLengthLimit
	DeviceNotExist
	NotBoundDevice
	DataSyncFail
	AlreadyDataSync
	ForbiddenBindOtherSA
)

与设备相关的响应状态码

View Source
const (
	LocationNotExit = iota + 3000
	LocationNameInputNilErr
	LocationNameLengthLimit
	LocationNameExist
)

与房间相关的响应状态码

View Source
const (
	PluginDomainNotExist = iota + 6000
	PluginServiceNotExist
	PluginTypeNotSupport
	PluginIsEmpty
)

与插件相关的响应状态码

View Source
const (
	SceneNameExist = iota + 4000
	SceneNameSizeLimit
	SceneConditionNotExist
	SceneNotExist
	SceneCreateDeny
	SceneDeleteDeny
	SceneTypeForbidModify
	ConditionMisMatchTypeAndConfigErr
	ConditionTimingCountErr
	TaskTypeErr
	DeviceActionErr
	DeviceOperationNotSetErr
	DeviceOrSceneControlDeny
	DeviceOffline
	SceneParamIncorrectErr
)

与场景相关的响应状态码

View Source
const (
	AccountNotExistErr = iota + 5000
	AccountPassWordErr
	DelSelfErr
	UserNotExist
	AccountNameExist
	AccountNameInputNilErr
	AccountNameFormatErr
	NickNameInputNilErr
	NicknameLengthUpperLimit
	NicknameLengthLowerLimit
	PasswordInputNilErr
	PasswordFormatErr
	RequireLogin
	QRCodeInvalid
	QRCodeExpired
	QRCodeCreatorDeny
	GetQRCodeErr

	RoleNotExist
	RoleNameExist
	RoleNameInputNilErr
	RoleNameLengthLimit
	Deny
	NotAllowModifyRoleOfTheOwner
	OwnerForbidJoinAreaAgain

	GetUserTokenAuthDeny
	GetUserTokenDeny
)

与用户相关的响应状态码

View Source
const (
	FileNotExistErr = iota + 7000
)

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