123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.34.2
- // protoc v4.25.3
- // source: user/v2/error_reason.proto
- package v2
- import (
- _ "github.com/go-kratos/kratos/v2/errors"
- 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 ErrorReason int32
- const (
- // 用户账号或密码不正确
- // 参考:https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses
- ErrorReason_USER_INCORRECT_ACCOUNT_OR_PASSWORD ErrorReason = 0
- // 手机号已被使用
- ErrorReason_USER_PHONE_NUMBER_HAS_BEEN_USED ErrorReason = 1
- // 验证码已被使用
- ErrorReason_USER_INCORRECT_CAPTCHA ErrorReason = 2
- // 通讯录没有成员
- ErrorReason_CONTACTS_NO_PERSON ErrorReason = 3
- // 通讯录未初始化
- ErrorReason_CONTACTS_NOT_INITIALIZED ErrorReason = 4
- // 通讯录中已存在该成员
- ErrorReason_CONTACTS_PERSON_ALREADY_EXISTS ErrorReason = 5
- )
- // Enum value maps for ErrorReason.
- var (
- ErrorReason_name = map[int32]string{
- 0: "USER_INCORRECT_ACCOUNT_OR_PASSWORD",
- 1: "USER_PHONE_NUMBER_HAS_BEEN_USED",
- 2: "USER_INCORRECT_CAPTCHA",
- 3: "CONTACTS_NO_PERSON",
- 4: "CONTACTS_NOT_INITIALIZED",
- 5: "CONTACTS_PERSON_ALREADY_EXISTS",
- }
- ErrorReason_value = map[string]int32{
- "USER_INCORRECT_ACCOUNT_OR_PASSWORD": 0,
- "USER_PHONE_NUMBER_HAS_BEEN_USED": 1,
- "USER_INCORRECT_CAPTCHA": 2,
- "CONTACTS_NO_PERSON": 3,
- "CONTACTS_NOT_INITIALIZED": 4,
- "CONTACTS_PERSON_ALREADY_EXISTS": 5,
- }
- )
- func (x ErrorReason) Enum() *ErrorReason {
- p := new(ErrorReason)
- *p = x
- return p
- }
- func (x ErrorReason) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor {
- return file_user_v2_error_reason_proto_enumTypes[0].Descriptor()
- }
- func (ErrorReason) Type() protoreflect.EnumType {
- return &file_user_v2_error_reason_proto_enumTypes[0]
- }
- func (x ErrorReason) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use ErrorReason.Descriptor instead.
- func (ErrorReason) EnumDescriptor() ([]byte, []int) {
- return file_user_v2_error_reason_proto_rawDescGZIP(), []int{0}
- }
- var File_user_v2_error_reason_proto protoreflect.FileDescriptor
- var file_user_v2_error_reason_proto_rawDesc = []byte{
- 0x0a, 0x1a, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f,
- 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x61, 0x70,
- 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x13, 0x65, 0x72, 0x72, 0x6f, 0x72,
- 0x73, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2a, 0xfa,
- 0x01, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x2c,
- 0x0a, 0x22, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x49, 0x4e, 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54,
- 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x4f, 0x52, 0x5f, 0x50, 0x41, 0x53, 0x53,
- 0x57, 0x4f, 0x52, 0x44, 0x10, 0x00, 0x1a, 0x04, 0xa8, 0x45, 0x91, 0x03, 0x12, 0x29, 0x0a, 0x1f,
- 0x55, 0x53, 0x45, 0x52, 0x5f, 0x50, 0x48, 0x4f, 0x4e, 0x45, 0x5f, 0x4e, 0x55, 0x4d, 0x42, 0x45,
- 0x52, 0x5f, 0x48, 0x41, 0x53, 0x5f, 0x42, 0x45, 0x45, 0x4e, 0x5f, 0x55, 0x53, 0x45, 0x44, 0x10,
- 0x01, 0x1a, 0x04, 0xa8, 0x45, 0x90, 0x03, 0x12, 0x20, 0x0a, 0x16, 0x55, 0x53, 0x45, 0x52, 0x5f,
- 0x49, 0x4e, 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x43, 0x48,
- 0x41, 0x10, 0x02, 0x1a, 0x04, 0xa8, 0x45, 0x90, 0x03, 0x12, 0x1c, 0x0a, 0x12, 0x43, 0x4f, 0x4e,
- 0x54, 0x41, 0x43, 0x54, 0x53, 0x5f, 0x4e, 0x4f, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x4f, 0x4e, 0x10,
- 0x03, 0x1a, 0x04, 0xa8, 0x45, 0x90, 0x03, 0x12, 0x22, 0x0a, 0x18, 0x43, 0x4f, 0x4e, 0x54, 0x41,
- 0x43, 0x54, 0x53, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x4c, 0x49,
- 0x5a, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x04, 0xa8, 0x45, 0x90, 0x03, 0x12, 0x28, 0x0a, 0x1e, 0x43,
- 0x4f, 0x4e, 0x54, 0x41, 0x43, 0x54, 0x53, 0x5f, 0x50, 0x45, 0x52, 0x53, 0x4f, 0x4e, 0x5f, 0x41,
- 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x05, 0x1a,
- 0x04, 0xa8, 0x45, 0x90, 0x03, 0x1a, 0x04, 0xa0, 0x45, 0xf4, 0x03, 0x42, 0x30, 0x0a, 0x0b, 0x61,
- 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x50, 0x01, 0x5a, 0x1f, 0x73, 0x69,
- 0x6b, 0x65, 0x79, 0x2f, 0x77, 0x33, 0x30, 0x33, 0x61, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x61,
- 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x3b, 0x76, 0x32, 0x62, 0x06, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_user_v2_error_reason_proto_rawDescOnce sync.Once
- file_user_v2_error_reason_proto_rawDescData = file_user_v2_error_reason_proto_rawDesc
- )
- func file_user_v2_error_reason_proto_rawDescGZIP() []byte {
- file_user_v2_error_reason_proto_rawDescOnce.Do(func() {
- file_user_v2_error_reason_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_v2_error_reason_proto_rawDescData)
- })
- return file_user_v2_error_reason_proto_rawDescData
- }
- var file_user_v2_error_reason_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
- var file_user_v2_error_reason_proto_goTypes = []any{
- (ErrorReason)(0), // 0: api.user.v2.ErrorReason
- }
- var file_user_v2_error_reason_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_user_v2_error_reason_proto_init() }
- func file_user_v2_error_reason_proto_init() {
- if File_user_v2_error_reason_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_user_v2_error_reason_proto_rawDesc,
- NumEnums: 1,
- NumMessages: 0,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_user_v2_error_reason_proto_goTypes,
- DependencyIndexes: file_user_v2_error_reason_proto_depIdxs,
- EnumInfos: file_user_v2_error_reason_proto_enumTypes,
- }.Build()
- File_user_v2_error_reason_proto = out.File
- file_user_v2_error_reason_proto_rawDesc = nil
- file_user_v2_error_reason_proto_goTypes = nil
- file_user_v2_error_reason_proto_depIdxs = nil
- }
|