marketing-plugin/proto/status.pb.go

155 lines
4.7 KiB
Go
Raw Normal View History

2024-08-30 17:35:53 +08:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.34.2
// protoc v4.24.3
// source: proto/status.proto
package proto
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 Status int32
const (
Status_INVALID Status = 0 // 无效的状态
Status_SUCCESS Status = 1 // 成功
Status_ING Status = 2 // 处理中
Status_FAIL Status = 3 // 失败
// 以下为特殊状态处理
Status_WRITE_OFF Status = 100 // 核销
Status_REFUND Status = 101 // 退款
Status_DELETE Status = 102 // 删除
Status_OVERDUE Status = 103 // 过期
Status_REVOKE Status = 104 // 撤销
)
// Enum value maps for Status.
var (
Status_name = map[int32]string{
0: "INVALID",
1: "SUCCESS",
2: "ING",
3: "FAIL",
100: "WRITE_OFF",
101: "REFUND",
102: "DELETE",
103: "OVERDUE",
104: "REVOKE",
}
Status_value = map[string]int32{
"INVALID": 0,
"SUCCESS": 1,
"ING": 2,
"FAIL": 3,
"WRITE_OFF": 100,
"REFUND": 101,
"DELETE": 102,
"OVERDUE": 103,
"REVOKE": 104,
}
)
func (x Status) Enum() *Status {
p := new(Status)
*p = x
return p
}
func (x Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Status) Descriptor() protoreflect.EnumDescriptor {
return file_proto_status_proto_enumTypes[0].Descriptor()
}
func (Status) Type() protoreflect.EnumType {
return &file_proto_status_proto_enumTypes[0]
}
func (x Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Status.Descriptor instead.
func (Status) EnumDescriptor() ([]byte, []int) {
return file_proto_status_proto_rawDescGZIP(), []int{0}
}
var File_proto_status_proto protoreflect.FileDescriptor
var file_proto_status_proto_rawDesc = []byte{
0x0a, 0x12, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2a, 0x75, 0x0a, 0x06, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44,
0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x01, 0x12,
0x07, 0x0a, 0x03, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x41, 0x49, 0x4c,
0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x52, 0x49, 0x54, 0x45, 0x5f, 0x4f, 0x46, 0x46, 0x10,
0x64, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, 0x46, 0x55, 0x4e, 0x44, 0x10, 0x65, 0x12, 0x0a, 0x0a,
0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x66, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x56, 0x45,
0x52, 0x44, 0x55, 0x45, 0x10, 0x67, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x45, 0x56, 0x4f, 0x4b, 0x45,
0x10, 0x68, 0x42, 0x0f, 0x5a, 0x0d, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2f, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_proto_status_proto_rawDescOnce sync.Once
file_proto_status_proto_rawDescData = file_proto_status_proto_rawDesc
)
func file_proto_status_proto_rawDescGZIP() []byte {
file_proto_status_proto_rawDescOnce.Do(func() {
file_proto_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_status_proto_rawDescData)
})
return file_proto_status_proto_rawDescData
}
var file_proto_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_proto_status_proto_goTypes = []any{
(Status)(0), // 0: proto.Status
}
var file_proto_status_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_proto_status_proto_init() }
func file_proto_status_proto_init() {
if File_proto_status_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_proto_status_proto_rawDesc,
NumEnums: 1,
NumMessages: 0,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_proto_status_proto_goTypes,
DependencyIndexes: file_proto_status_proto_depIdxs,
EnumInfos: file_proto_status_proto_enumTypes,
}.Build()
File_proto_status_proto = out.File
file_proto_status_proto_rawDesc = nil
file_proto_status_proto_goTypes = nil
file_proto_status_proto_depIdxs = nil
}