123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.30.0
- // protoc v3.17.3
- // source: common/user/account.proto
- package user
- 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 AccountStatus int32
- const (
- AccountStatus_ACCOUNT_STATUS_UNDEFINED AccountStatus = 0
- AccountStatus_ACCOUNT_STATUS_ENABLED AccountStatus = 1
- AccountStatus_ACCOUNT_STATUS_DISABLED AccountStatus = 2
- )
- // Enum value maps for AccountStatus.
- var (
- AccountStatus_name = map[int32]string{
- 0: "ACCOUNT_STATUS_UNDEFINED",
- 1: "ACCOUNT_STATUS_ENABLED",
- 2: "ACCOUNT_STATUS_DISABLED",
- }
- AccountStatus_value = map[string]int32{
- "ACCOUNT_STATUS_UNDEFINED": 0,
- "ACCOUNT_STATUS_ENABLED": 1,
- "ACCOUNT_STATUS_DISABLED": 2,
- }
- )
- func (x AccountStatus) Enum() *AccountStatus {
- p := new(AccountStatus)
- *p = x
- return p
- }
- func (x AccountStatus) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (AccountStatus) Descriptor() protoreflect.EnumDescriptor {
- return file_common_user_account_proto_enumTypes[0].Descriptor()
- }
- func (AccountStatus) Type() protoreflect.EnumType {
- return &file_common_user_account_proto_enumTypes[0]
- }
- func (x AccountStatus) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use AccountStatus.Descriptor instead.
- func (AccountStatus) EnumDescriptor() ([]byte, []int) {
- return file_common_user_account_proto_rawDescGZIP(), []int{0}
- }
- type AccountType int32
- const (
- AccountType_ACCOUNT_TYPE_UNDEFINED AccountType = 0
- AccountType_ACCOUNT_TYPE_WXOPENID AccountType = 1
- )
- // Enum value maps for AccountType.
- var (
- AccountType_name = map[int32]string{
- 0: "ACCOUNT_TYPE_UNDEFINED",
- 1: "ACCOUNT_TYPE_WXOPENID",
- }
- AccountType_value = map[string]int32{
- "ACCOUNT_TYPE_UNDEFINED": 0,
- "ACCOUNT_TYPE_WXOPENID": 1,
- }
- )
- func (x AccountType) Enum() *AccountType {
- p := new(AccountType)
- *p = x
- return p
- }
- func (x AccountType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (AccountType) Descriptor() protoreflect.EnumDescriptor {
- return file_common_user_account_proto_enumTypes[1].Descriptor()
- }
- func (AccountType) Type() protoreflect.EnumType {
- return &file_common_user_account_proto_enumTypes[1]
- }
- func (x AccountType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use AccountType.Descriptor instead.
- func (AccountType) EnumDescriptor() ([]byte, []int) {
- return file_common_user_account_proto_rawDescGZIP(), []int{1}
- }
- type AccountBody struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Body *AccountBaseBody `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
- }
- func (x *AccountBody) Reset() {
- *x = AccountBody{}
- if protoimpl.UnsafeEnabled {
- mi := &file_common_user_account_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AccountBody) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AccountBody) ProtoMessage() {}
- func (x *AccountBody) ProtoReflect() protoreflect.Message {
- mi := &file_common_user_account_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use AccountBody.ProtoReflect.Descriptor instead.
- func (*AccountBody) Descriptor() ([]byte, []int) {
- return file_common_user_account_proto_rawDescGZIP(), []int{0}
- }
- func (x *AccountBody) GetId() uint32 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *AccountBody) GetBody() *AccountBaseBody {
- if x != nil {
- return x.Body
- }
- return nil
- }
- type AccountBaseBody struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Type AccountType `protobuf:"varint,2,opt,name=type,proto3,enum=user.AccountType" json:"type,omitempty"`
- Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
- Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
- Status AccountStatus `protobuf:"varint,5,opt,name=status,proto3,enum=user.AccountStatus" json:"status,omitempty"`
- }
- func (x *AccountBaseBody) Reset() {
- *x = AccountBaseBody{}
- if protoimpl.UnsafeEnabled {
- mi := &file_common_user_account_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AccountBaseBody) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AccountBaseBody) ProtoMessage() {}
- func (x *AccountBaseBody) ProtoReflect() protoreflect.Message {
- mi := &file_common_user_account_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use AccountBaseBody.ProtoReflect.Descriptor instead.
- func (*AccountBaseBody) Descriptor() ([]byte, []int) {
- return file_common_user_account_proto_rawDescGZIP(), []int{1}
- }
- func (x *AccountBaseBody) GetUserId() uint32 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
- func (x *AccountBaseBody) GetType() AccountType {
- if x != nil {
- return x.Type
- }
- return AccountType_ACCOUNT_TYPE_UNDEFINED
- }
- func (x *AccountBaseBody) GetAccount() string {
- if x != nil {
- return x.Account
- }
- return ""
- }
- func (x *AccountBaseBody) GetPassword() string {
- if x != nil {
- return x.Password
- }
- return ""
- }
- func (x *AccountBaseBody) GetStatus() AccountStatus {
- if x != nil {
- return x.Status
- }
- return AccountStatus_ACCOUNT_STATUS_UNDEFINED
- }
- var File_common_user_account_proto protoreflect.FileDescriptor
- var file_common_user_account_proto_rawDesc = []byte{
- 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x61, 0x63,
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x75, 0x73, 0x65,
- 0x72, 0x22, 0x48, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x6f, 0x64, 0x79,
- 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64,
- 0x12, 0x29, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15,
- 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x73,
- 0x65, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0xb4, 0x01, 0x0a, 0x0f,
- 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12,
- 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
- 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x63,
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
- 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73,
- 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73,
- 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,
- 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63,
- 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74,
- 0x75, 0x73, 0x2a, 0x66, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x74, 0x61,
- 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x53,
- 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10,
- 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41,
- 0x54, 0x55, 0x53, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1b, 0x0a,
- 0x17, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f,
- 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x44, 0x0a, 0x0b, 0x41, 0x63,
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x43, 0x43,
- 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49,
- 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54,
- 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x58, 0x4f, 0x50, 0x45, 0x4e, 0x49, 0x44, 0x10, 0x01,
- 0x42, 0x36, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x2c, 0x74, 0x74, 0x6d, 0x79,
- 0x6c, 0x69, 0x66, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x7a, 0x65, 0x75, 0x73, 0x7a, 0x68, 0x61,
- 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x75,
- 0x73, 0x65, 0x72, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_common_user_account_proto_rawDescOnce sync.Once
- file_common_user_account_proto_rawDescData = file_common_user_account_proto_rawDesc
- )
- func file_common_user_account_proto_rawDescGZIP() []byte {
- file_common_user_account_proto_rawDescOnce.Do(func() {
- file_common_user_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_user_account_proto_rawDescData)
- })
- return file_common_user_account_proto_rawDescData
- }
- var file_common_user_account_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
- var file_common_user_account_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
- var file_common_user_account_proto_goTypes = []interface{}{
- (AccountStatus)(0), // 0: user.AccountStatus
- (AccountType)(0), // 1: user.AccountType
- (*AccountBody)(nil), // 2: user.AccountBody
- (*AccountBaseBody)(nil), // 3: user.AccountBaseBody
- }
- var file_common_user_account_proto_depIdxs = []int32{
- 3, // 0: user.AccountBody.body:type_name -> user.AccountBaseBody
- 1, // 1: user.AccountBaseBody.type:type_name -> user.AccountType
- 0, // 2: user.AccountBaseBody.status:type_name -> user.AccountStatus
- 3, // [3:3] is the sub-list for method output_type
- 3, // [3:3] is the sub-list for method input_type
- 3, // [3:3] is the sub-list for extension type_name
- 3, // [3:3] is the sub-list for extension extendee
- 0, // [0:3] is the sub-list for field type_name
- }
- func init() { file_common_user_account_proto_init() }
- func file_common_user_account_proto_init() {
- if File_common_user_account_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_common_user_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AccountBody); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_common_user_account_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AccountBaseBody); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_common_user_account_proto_rawDesc,
- NumEnums: 2,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_common_user_account_proto_goTypes,
- DependencyIndexes: file_common_user_account_proto_depIdxs,
- EnumInfos: file_common_user_account_proto_enumTypes,
- MessageInfos: file_common_user_account_proto_msgTypes,
- }.Build()
- File_common_user_account_proto = out.File
- file_common_user_account_proto_rawDesc = nil
- file_common_user_account_proto_goTypes = nil
- file_common_user_account_proto_depIdxs = nil
- }
|