2025-05-25 22:39:54 +08:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
2025-06-06 20:02:58 +08:00
|
|
|
// protoc-gen-go v1.34.1
|
|
|
|
// protoc v4.25.2
|
2025-05-25 22:39:54 +08:00
|
|
|
// source: code.proto
|
|
|
|
|
2025-05-26 20:12:45 +08:00
|
|
|
package pb
|
2025-05-25 22:39:54 +08:00
|
|
|
|
|
|
|
import (
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
|
|
|
|
|
|
|
type ErrCode int32
|
|
|
|
|
|
|
|
const (
|
2025-05-29 09:54:43 +08:00
|
|
|
ErrCode_OK ErrCode = 0
|
|
|
|
ErrCode_SystemErr ErrCode = 1 // 系统错误
|
|
|
|
ErrCode_LoginDiffLoc ErrCode = 100 // 帐号在其它地方登陆
|
|
|
|
ErrCode_LoginUserOrPwdErr ErrCode = 102 // 帐号或密码错误
|
|
|
|
ErrCode_AccountFrozen ErrCode = 103 // 帐号已冻结
|
|
|
|
ErrCode_AccountBanned ErrCode = 104 // 帐号已封禁
|
2025-06-02 21:34:39 +08:00
|
|
|
ErrCode_RegisterUserExist ErrCode = 110 // 已有该帐号,无法注册
|
|
|
|
ErrCode_VersionTooLow ErrCode = 115 // 版本太低,无法登陆
|
2025-06-06 20:02:58 +08:00
|
|
|
ErrCode_Maintain ErrCode = 120 // 系统维护
|
2025-05-25 22:39:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for ErrCode.
|
|
|
|
var (
|
|
|
|
ErrCode_name = map[int32]string{
|
2025-05-29 09:54:43 +08:00
|
|
|
0: "OK",
|
|
|
|
1: "SystemErr",
|
|
|
|
100: "LoginDiffLoc",
|
|
|
|
102: "LoginUserOrPwdErr",
|
|
|
|
103: "AccountFrozen",
|
|
|
|
104: "AccountBanned",
|
2025-06-02 21:34:39 +08:00
|
|
|
110: "RegisterUserExist",
|
|
|
|
115: "VersionTooLow",
|
2025-06-06 20:02:58 +08:00
|
|
|
120: "Maintain",
|
2025-05-25 22:39:54 +08:00
|
|
|
}
|
|
|
|
ErrCode_value = map[string]int32{
|
2025-05-29 09:54:43 +08:00
|
|
|
"OK": 0,
|
|
|
|
"SystemErr": 1,
|
|
|
|
"LoginDiffLoc": 100,
|
|
|
|
"LoginUserOrPwdErr": 102,
|
|
|
|
"AccountFrozen": 103,
|
|
|
|
"AccountBanned": 104,
|
2025-06-02 21:34:39 +08:00
|
|
|
"RegisterUserExist": 110,
|
|
|
|
"VersionTooLow": 115,
|
2025-06-06 20:02:58 +08:00
|
|
|
"Maintain": 120,
|
2025-05-25 22:39:54 +08:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x ErrCode) Enum() *ErrCode {
|
|
|
|
p := new(ErrCode)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x ErrCode) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ErrCode) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_code_proto_enumTypes[0].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ErrCode) Type() protoreflect.EnumType {
|
|
|
|
return &file_code_proto_enumTypes[0]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x ErrCode) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use ErrCode.Descriptor instead.
|
|
|
|
func (ErrCode) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_code_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
var File_code_proto protoreflect.FileDescriptor
|
|
|
|
|
2025-06-06 20:02:58 +08:00
|
|
|
var file_code_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x0a, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62,
|
|
|
|
0x2a, 0xa7, 0x01, 0x0a, 0x07, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 0x02,
|
|
|
|
0x4f, 0x4b, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x45, 0x72,
|
|
|
|
0x72, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x44, 0x69, 0x66, 0x66,
|
|
|
|
0x4c, 0x6f, 0x63, 0x10, 0x64, 0x12, 0x15, 0x0a, 0x11, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73,
|
|
|
|
0x65, 0x72, 0x4f, 0x72, 0x50, 0x77, 0x64, 0x45, 0x72, 0x72, 0x10, 0x66, 0x12, 0x11, 0x0a, 0x0d,
|
|
|
|
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x46, 0x72, 0x6f, 0x7a, 0x65, 0x6e, 0x10, 0x67, 0x12,
|
|
|
|
0x11, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x64,
|
|
|
|
0x10, 0x68, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x55, 0x73,
|
|
|
|
0x65, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x10, 0x6e, 0x12, 0x11, 0x0a, 0x0d, 0x56, 0x65, 0x72,
|
|
|
|
0x73, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6f, 0x4c, 0x6f, 0x77, 0x10, 0x73, 0x12, 0x0c, 0x0a, 0x08,
|
|
|
|
0x4d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x10, 0x78, 0x42, 0x11, 0x5a, 0x0f, 0x63, 0x6f,
|
|
|
|
0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70,
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
}
|
2025-05-25 22:39:54 +08:00
|
|
|
|
|
|
|
var (
|
|
|
|
file_code_proto_rawDescOnce sync.Once
|
2025-06-06 20:02:58 +08:00
|
|
|
file_code_proto_rawDescData = file_code_proto_rawDesc
|
2025-05-25 22:39:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func file_code_proto_rawDescGZIP() []byte {
|
|
|
|
file_code_proto_rawDescOnce.Do(func() {
|
2025-06-06 20:02:58 +08:00
|
|
|
file_code_proto_rawDescData = protoimpl.X.CompressGZIP(file_code_proto_rawDescData)
|
2025-05-25 22:39:54 +08:00
|
|
|
})
|
|
|
|
return file_code_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
|
|
|
var file_code_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
2025-06-06 20:02:58 +08:00
|
|
|
var file_code_proto_goTypes = []interface{}{
|
2025-05-26 20:12:45 +08:00
|
|
|
(ErrCode)(0), // 0: pb.ErrCode
|
2025-05-25 22:39:54 +08:00
|
|
|
}
|
|
|
|
var file_code_proto_depIdxs = []int32{
|
|
|
|
0, // [0:0] is the sub-list for method output_type
|
|
|
|
0, // [0:0] is the sub-list for method input_type
|
|
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
|
|
0, // [0:0] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_code_proto_init() }
|
|
|
|
func file_code_proto_init() {
|
|
|
|
if File_code_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
2025-06-06 20:02:58 +08:00
|
|
|
RawDescriptor: file_code_proto_rawDesc,
|
2025-05-25 22:39:54 +08:00
|
|
|
NumEnums: 1,
|
|
|
|
NumMessages: 0,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
|
|
|
GoTypes: file_code_proto_goTypes,
|
|
|
|
DependencyIndexes: file_code_proto_depIdxs,
|
|
|
|
EnumInfos: file_code_proto_enumTypes,
|
|
|
|
}.Build()
|
|
|
|
File_code_proto = out.File
|
2025-06-06 20:02:58 +08:00
|
|
|
file_code_proto_rawDesc = nil
|
2025-05-25 22:39:54 +08:00
|
|
|
file_code_proto_goTypes = nil
|
|
|
|
file_code_proto_depIdxs = nil
|
|
|
|
}
|