client/golnag/passport/account.pb.go

566 lines
18 KiB
Go
Raw Normal View History

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: account.proto
package passport
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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 GetFullReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一标识
Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` // 帐号
Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` // 手机号码 必填
Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // 验证码
Rights string `protobuf:"bytes,5,opt,name=rights,proto3" json:"rights,omitempty"` // 权限
Nickname string `protobuf:"bytes,6,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
Avatar string `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"` // 头像
Birthday string `protobuf:"bytes,8,opt,name=birthday,proto3" json:"birthday,omitempty"` // 生日
Sex int32 `protobuf:"varint,9,opt,name=sex,proto3" json:"sex,omitempty"` // 性别1为男性2为女性
Country int32 `protobuf:"varint,10,opt,name=country,proto3" json:"country,omitempty"` // 国家
Province int32 `protobuf:"varint,11,opt,name=province,proto3" json:"province,omitempty"` // 省
City int32 `protobuf:"varint,12,opt,name=city,proto3" json:"city,omitempty"` // 市
Area int32 `protobuf:"varint,13,opt,name=area,proto3" json:"area,omitempty"` // 区
Sign string `protobuf:"bytes,14,opt,name=sign,proto3" json:"sign,omitempty"` // 签名
Cover string `protobuf:"bytes,15,opt,name=cover,proto3" json:"cover,omitempty"` // 背景&封面
Score int32 `protobuf:"varint,16,opt,name=score,proto3" json:"score,omitempty"` // 积分
Level int32 `protobuf:"varint,17,opt,name=level,proto3" json:"level,omitempty"` // 等级
Verify map[string]bool `protobuf:"bytes,18,rep,name=verify,proto3" json:"verify,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` // 数据
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetFullReply) Reset() {
*x = GetFullReply{}
mi := &file_account_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetFullReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetFullReply) ProtoMessage() {}
func (x *GetFullReply) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetFullReply.ProtoReflect.Descriptor instead.
func (*GetFullReply) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{0}
}
func (x *GetFullReply) GetIdentity() string {
if x != nil {
return x.Identity
}
return ""
}
func (x *GetFullReply) GetAccount() string {
if x != nil {
return x.Account
}
return ""
}
func (x *GetFullReply) GetPhone() string {
if x != nil {
return x.Phone
}
return ""
}
func (x *GetFullReply) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *GetFullReply) GetRights() string {
if x != nil {
return x.Rights
}
return ""
}
func (x *GetFullReply) GetNickname() string {
if x != nil {
return x.Nickname
}
return ""
}
func (x *GetFullReply) GetAvatar() string {
if x != nil {
return x.Avatar
}
return ""
}
func (x *GetFullReply) GetBirthday() string {
if x != nil {
return x.Birthday
}
return ""
}
func (x *GetFullReply) GetSex() int32 {
if x != nil {
return x.Sex
}
return 0
}
func (x *GetFullReply) GetCountry() int32 {
if x != nil {
return x.Country
}
return 0
}
func (x *GetFullReply) GetProvince() int32 {
if x != nil {
return x.Province
}
return 0
}
func (x *GetFullReply) GetCity() int32 {
if x != nil {
return x.City
}
return 0
}
func (x *GetFullReply) GetArea() int32 {
if x != nil {
return x.Area
}
return 0
}
func (x *GetFullReply) GetSign() string {
if x != nil {
return x.Sign
}
return ""
}
func (x *GetFullReply) GetCover() string {
if x != nil {
return x.Cover
}
return ""
}
func (x *GetFullReply) GetScore() int32 {
if x != nil {
return x.Score
}
return 0
}
func (x *GetFullReply) GetLevel() int32 {
if x != nil {
return x.Level
}
return 0
}
func (x *GetFullReply) GetVerify() map[string]bool {
if x != nil {
return x.Verify
}
return nil
}
type SetDataRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` //昵称
Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"` //头像
Birthday string `protobuf:"bytes,3,opt,name=birthday,proto3" json:"birthday,omitempty"` //生日
Sex int32 `protobuf:"varint,4,opt,name=sex,proto3" json:"sex,omitempty"` //性别1为男性2为女性
Province int32 `protobuf:"varint,5,opt,name=province,proto3" json:"province,omitempty"` //省
City int32 `protobuf:"varint,6,opt,name=city,proto3" json:"city,omitempty"` //市
Area int32 `protobuf:"varint,7,opt,name=area,proto3" json:"area,omitempty"` //区
Sign string `protobuf:"bytes,8,opt,name=sign,proto3" json:"sign,omitempty"` //签名
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetDataRequest) Reset() {
*x = SetDataRequest{}
mi := &file_account_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetDataRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetDataRequest) ProtoMessage() {}
func (x *SetDataRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetDataRequest.ProtoReflect.Descriptor instead.
func (*SetDataRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{1}
}
func (x *SetDataRequest) GetNickname() string {
if x != nil {
return x.Nickname
}
return ""
}
func (x *SetDataRequest) GetAvatar() string {
if x != nil {
return x.Avatar
}
return ""
}
func (x *SetDataRequest) GetBirthday() string {
if x != nil {
return x.Birthday
}
return ""
}
func (x *SetDataRequest) GetSex() int32 {
if x != nil {
return x.Sex
}
return 0
}
func (x *SetDataRequest) GetProvince() int32 {
if x != nil {
return x.Province
}
return 0
}
func (x *SetDataRequest) GetCity() int32 {
if x != nil {
return x.City
}
return 0
}
func (x *SetDataRequest) GetArea() int32 {
if x != nil {
return x.Area
}
return 0
}
func (x *SetDataRequest) GetSign() string {
if x != nil {
return x.Sign
}
return ""
}
type SetPasswordRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
OldPassword string `protobuf:"bytes,3,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` // 旧密码
NewPassword string `protobuf:"bytes,4,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` // 新密码
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetPasswordRequest) Reset() {
*x = SetPasswordRequest{}
mi := &file_account_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetPasswordRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetPasswordRequest) ProtoMessage() {}
func (x *SetPasswordRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetPasswordRequest.ProtoReflect.Descriptor instead.
func (*SetPasswordRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{2}
}
func (x *SetPasswordRequest) GetOldPassword() string {
if x != nil {
return x.OldPassword
}
return ""
}
func (x *SetPasswordRequest) GetNewPassword() string {
if x != nil {
return x.NewPassword
}
return ""
}
type StatisticsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Field []string `protobuf:"bytes,1,rep,name=field,proto3" json:"field,omitempty"` //要获取的统计数据字段。
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StatisticsRequest) Reset() {
*x = StatisticsRequest{}
mi := &file_account_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StatisticsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StatisticsRequest) ProtoMessage() {}
func (x *StatisticsRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StatisticsRequest.ProtoReflect.Descriptor instead.
func (*StatisticsRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{3}
}
func (x *StatisticsRequest) GetField() []string {
if x != nil {
return x.Field
}
return nil
}
type StatisticsReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Data map[string]int64 `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` //数据以Map格式输出
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StatisticsReply) Reset() {
*x = StatisticsReply{}
mi := &file_account_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StatisticsReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StatisticsReply) ProtoMessage() {}
func (x *StatisticsReply) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StatisticsReply.ProtoReflect.Descriptor instead.
func (*StatisticsReply) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{4}
}
func (x *StatisticsReply) GetData() map[string]int64 {
if x != nil {
return x.Data
}
return nil
}
var File_account_proto protoreflect.FileDescriptor
const file_account_proto_rawDesc = "" +
"\n" +
"\raccount.proto\x12\bpassport\x1a\fblocks.proto\"\x95\x04\n" +
"\fGetFullReply\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
"\aaccount\x18\x02 \x01(\tR\aaccount\x12\x14\n" +
"\x05phone\x18\x03 \x01(\tR\x05phone\x12\x14\n" +
"\x05email\x18\x04 \x01(\tR\x05email\x12\x16\n" +
"\x06rights\x18\x05 \x01(\tR\x06rights\x12\x1a\n" +
"\bnickname\x18\x06 \x01(\tR\bnickname\x12\x16\n" +
"\x06avatar\x18\a \x01(\tR\x06avatar\x12\x1a\n" +
"\bbirthday\x18\b \x01(\tR\bbirthday\x12\x10\n" +
"\x03sex\x18\t \x01(\x05R\x03sex\x12\x18\n" +
"\acountry\x18\n" +
" \x01(\x05R\acountry\x12\x1a\n" +
"\bprovince\x18\v \x01(\x05R\bprovince\x12\x12\n" +
"\x04city\x18\f \x01(\x05R\x04city\x12\x12\n" +
"\x04area\x18\r \x01(\x05R\x04area\x12\x12\n" +
"\x04sign\x18\x0e \x01(\tR\x04sign\x12\x14\n" +
"\x05cover\x18\x0f \x01(\tR\x05cover\x12\x14\n" +
"\x05score\x18\x10 \x01(\x05R\x05score\x12\x14\n" +
"\x05level\x18\x11 \x01(\x05R\x05level\x12:\n" +
"\x06verify\x18\x12 \x03(\v2\".passport.GetFullReply.VerifyEntryR\x06verify\x1a9\n" +
"\vVerifyEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\bR\x05value:\x028\x01\"\xca\x01\n" +
"\x0eSetDataRequest\x12\x1a\n" +
"\bnickname\x18\x01 \x01(\tR\bnickname\x12\x16\n" +
"\x06avatar\x18\x02 \x01(\tR\x06avatar\x12\x1a\n" +
"\bbirthday\x18\x03 \x01(\tR\bbirthday\x12\x10\n" +
"\x03sex\x18\x04 \x01(\x05R\x03sex\x12\x1a\n" +
"\bprovince\x18\x05 \x01(\x05R\bprovince\x12\x12\n" +
"\x04city\x18\x06 \x01(\x05R\x04city\x12\x12\n" +
"\x04area\x18\a \x01(\x05R\x04area\x12\x12\n" +
"\x04sign\x18\b \x01(\tR\x04sign\"Z\n" +
"\x12SetPasswordRequest\x12!\n" +
"\fold_password\x18\x03 \x01(\tR\voldPassword\x12!\n" +
"\fnew_password\x18\x04 \x01(\tR\vnewPassword\")\n" +
"\x11StatisticsRequest\x12\x14\n" +
"\x05field\x18\x01 \x03(\tR\x05field\"\x83\x01\n" +
"\x0fStatisticsReply\x127\n" +
"\x04Data\x18\x01 \x03(\v2#.passport.StatisticsReply.DataEntryR\x04Data\x1a7\n" +
"\tDataEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\x03R\x05value:\x028\x012\x87\x02\n" +
"\aAccount\x120\n" +
"\x03Get\x12\x0f.passport.Empty\x1a\x16.passport.GetFullReply\"\x00\x12<\n" +
"\aSetData\x12\x18.passport.SetDataRequest\x1a\x15.passport.StatusReply\"\x00\x12D\n" +
"\vSetPassword\x12\x1c.passport.SetPasswordRequest\x1a\x15.passport.StatusReply\"\x00\x12F\n" +
"\n" +
"Statistics\x12\x1b.passport.StatisticsRequest\x1a\x19.passport.StatisticsReply\"\x00B\fZ\n" +
".;passportb\x06proto3"
var (
file_account_proto_rawDescOnce sync.Once
file_account_proto_rawDescData []byte
)
func file_account_proto_rawDescGZIP() []byte {
file_account_proto_rawDescOnce.Do(func() {
file_account_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_account_proto_rawDesc), len(file_account_proto_rawDesc)))
})
return file_account_proto_rawDescData
}
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_account_proto_goTypes = []any{
(*GetFullReply)(nil), // 0: passport.GetFullReply
(*SetDataRequest)(nil), // 1: passport.SetDataRequest
(*SetPasswordRequest)(nil), // 2: passport.SetPasswordRequest
(*StatisticsRequest)(nil), // 3: passport.StatisticsRequest
(*StatisticsReply)(nil), // 4: passport.StatisticsReply
nil, // 5: passport.GetFullReply.VerifyEntry
nil, // 6: passport.StatisticsReply.DataEntry
(*Empty)(nil), // 7: passport.Empty
(*StatusReply)(nil), // 8: passport.StatusReply
}
var file_account_proto_depIdxs = []int32{
5, // 0: passport.GetFullReply.verify:type_name -> passport.GetFullReply.VerifyEntry
6, // 1: passport.StatisticsReply.Data:type_name -> passport.StatisticsReply.DataEntry
7, // 2: passport.Account.Get:input_type -> passport.Empty
1, // 3: passport.Account.SetData:input_type -> passport.SetDataRequest
2, // 4: passport.Account.SetPassword:input_type -> passport.SetPasswordRequest
3, // 5: passport.Account.Statistics:input_type -> passport.StatisticsRequest
0, // 6: passport.Account.Get:output_type -> passport.GetFullReply
8, // 7: passport.Account.SetData:output_type -> passport.StatusReply
8, // 8: passport.Account.SetPassword:output_type -> passport.StatusReply
4, // 9: passport.Account.Statistics:output_type -> passport.StatisticsReply
6, // [6:10] is the sub-list for method output_type
2, // [2:6] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_account_proto_init() }
func file_account_proto_init() {
if File_account_proto != nil {
return
}
file_blocks_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_account_proto_rawDesc), len(file_account_proto_rawDesc)),
NumEnums: 0,
NumMessages: 7,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_account_proto_goTypes,
DependencyIndexes: file_account_proto_depIdxs,
MessageInfos: file_account_proto_msgTypes,
}.Build()
File_account_proto = out.File
file_account_proto_goTypes = nil
file_account_proto_depIdxs = nil
}