Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Status_name = map[int32]string{ 0: "UNSPECIFIED", 20000: "OK", 40000: "INVALID_ARGUMENT", 40001: "STAFF_TYPE_NOT_FOUND", 40003: "UNSUPPORTED_STAFF_TYPE", 40004: "STAFF_ID_CANNOT_BE_EMPTY", 40400: "NOT_FOUND", 40401: "STAFF_NOT_FOUND", 50000: "SERVICE_ERROR", } Status_value = map[string]int32{ "UNSPECIFIED": 0, "OK": 20000, "INVALID_ARGUMENT": 40000, "STAFF_TYPE_NOT_FOUND": 40001, "UNSUPPORTED_STAFF_TYPE": 40003, "STAFF_ID_CANNOT_BE_EMPTY": 40004, "NOT_FOUND": 40400, "STAFF_NOT_FOUND": 40401, "SERVICE_ERROR": 50000, } )
Enum value maps for Status.
View Source
var File_consultingapis_status_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Status ¶
type Status int32
请求状态 错误定义
const ( Status_UNSPECIFIED Status = 0 // 成功 Status_OK Status = 20000 // 通用参数错误 Status_INVALID_ARGUMENT Status = 40000 // 人员类型参数缺失 Status_STAFF_TYPE_NOT_FOUND Status = 40001 // 不支持的人员类型 Status_UNSUPPORTED_STAFF_TYPE Status = 40003 // 人员工号缺失 Status_STAFF_ID_CANNOT_BE_EMPTY Status = 40004 // 通用无法找到 Status_NOT_FOUND Status = 40400 // 未找到人员 Status_STAFF_NOT_FOUND Status = 40401 // 服务错误 Status_SERVICE_ERROR Status = 50000 )
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.