...
1
2
3 package aipreflect
4
5 import "strconv"
6
7 func _() {
8
9
10 var x [1]struct{}
11 _ = x[MethodTypeNone-0]
12 _ = x[MethodTypeGet-1]
13 _ = x[MethodTypeList-2]
14 _ = x[MethodTypeCreate-3]
15 _ = x[MethodTypeUpdate-4]
16 _ = x[MethodTypeDelete-5]
17 _ = x[MethodTypeUndelete-6]
18 _ = x[MethodTypeBatchGet-7]
19 _ = x[MethodTypeBatchCreate-8]
20 _ = x[MethodTypeBatchUpdate-9]
21 _ = x[MethodTypeBatchDelete-10]
22 _ = x[MethodTypeSearch-11]
23 }
24
25 const _MethodType_name = "NoneGetListCreateUpdateDeleteUndeleteBatchGetBatchCreateBatchUpdateBatchDeleteSearch"
26
27 var _MethodType_index = [...]uint8{0, 4, 7, 11, 17, 23, 29, 37, 45, 56, 67, 78, 84}
28
29 func (i MethodType) String() string {
30 if i < 0 || i >= MethodType(len(_MethodType_index)-1) {
31 return "MethodType(" + strconv.FormatInt(int64(i), 10) + ")"
32 }
33 return _MethodType_name[_MethodType_index[i]:_MethodType_index[i+1]]
34 }
35
View as plain text