-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.pb.go
More file actions
104 lines (91 loc) · 3.85 KB
/
Copy pathcode.pb.go
File metadata and controls
104 lines (91 loc) · 3.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: code.proto
package errors
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Code int32
const (
// defualt.
Code_NONE Code = 0
// 10xxx authentication.
Code_WRONG_PASSWORD Code = 10300
Code_INVALID_TOKEN Code = 10400
Code_MISSING_TOKEN Code = 10500
Code_TOKEN_EXPIRED Code = 10600
Code_FORBIDDEN Code = 10700
Code_TOKEN_BLOCKED Code = 10800
// 11xxx request.
Code_REQUEST_INSUFFICIENT Code = 11100
// DataBase errors
Code_ERR_DATA_EXISTED Code = 12100
Code_ERR_DATA_NOT_FOUND Code = 12200
// User errors
Code_NOT_SUPPORTED_DELETE_YOUR_SELF Code = 13100
)
var Code_name = map[int32]string{
0: "NONE",
10300: "WRONG_PASSWORD",
10400: "INVALID_TOKEN",
10500: "MISSING_TOKEN",
10600: "TOKEN_EXPIRED",
10700: "FORBIDDEN",
10800: "TOKEN_BLOCKED",
11100: "REQUEST_INSUFFICIENT",
12100: "ERR_DATA_EXISTED",
12200: "ERR_DATA_NOT_FOUND",
13100: "NOT_SUPPORTED_DELETE_YOUR_SELF",
}
var Code_value = map[string]int32{
"NONE": 0,
"WRONG_PASSWORD": 10300,
"INVALID_TOKEN": 10400,
"MISSING_TOKEN": 10500,
"TOKEN_EXPIRED": 10600,
"FORBIDDEN": 10700,
"TOKEN_BLOCKED": 10800,
"REQUEST_INSUFFICIENT": 11100,
"ERR_DATA_EXISTED": 12100,
"ERR_DATA_NOT_FOUND": 12200,
"NOT_SUPPORTED_DELETE_YOUR_SELF": 13100,
}
func (x Code) String() string {
return proto.EnumName(Code_name, int32(x))
}
func (Code) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_6e9b0151640170c3, []int{0}
}
func init() {
proto.RegisterEnum("errors.Code", Code_name, Code_value)
}
func init() { proto.RegisterFile("code.proto", fileDescriptor_6e9b0151640170c3) }
var fileDescriptor_6e9b0151640170c3 = []byte{
// 256 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0xd0, 0x31, 0x4e, 0xc3, 0x40,
0x10, 0x05, 0x50, 0x90, 0xa2, 0x08, 0x56, 0x22, 0x1a, 0x0d, 0x20, 0x44, 0x43, 0x43, 0x47, 0x41,
0xc3, 0x09, 0x1c, 0xcf, 0x38, 0x5a, 0xc5, 0xcc, 0x3a, 0xb3, 0xeb, 0x24, 0x34, 0x8c, 0x04, 0x31,
0xad, 0x91, 0xe1, 0x08, 0x1c, 0x84, 0x92, 0x82, 0x82, 0x03, 0x50, 0x52, 0x72, 0x04, 0x0e, 0xc0,
0x05, 0xe8, 0x91, 0x23, 0x44, 0xba, 0xff, 0x9f, 0x7e, 0xf5, 0x9d, 0xbb, 0x6d, 0x57, 0xcd, 0xf9,
0x7d, 0xd7, 0x3e, 0xb6, 0x38, 0x6c, 0xba, 0xae, 0xed, 0x1e, 0xce, 0x7e, 0xb6, 0xdd, 0x20, 0x6f,
0x57, 0x0d, 0xee, 0xb8, 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