v2

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 18 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_model_user_v2_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type OnlineStatus

type OnlineStatus struct {
	Status      string  `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`                   // 在线状态 1:在线 2:离线 3:隐身
	UserId      string  `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`                   // 用户id
	PlatformIds []int32 `protobuf:"varint,3,rep,packed,name=platformIds,proto3" json:"platformIds,omitempty"` // 在线平台
	// contains filtered or unexported fields
}

func (*OnlineStatus) Descriptor deprecated

func (*OnlineStatus) Descriptor() ([]byte, []int)

Deprecated: Use OnlineStatus.ProtoReflect.Descriptor instead.

func (*OnlineStatus) GetPlatformIds

func (x *OnlineStatus) GetPlatformIds() []int32

func (*OnlineStatus) GetStatus

func (x *OnlineStatus) GetStatus() string

func (*OnlineStatus) GetUserId

func (x *OnlineStatus) GetUserId() string

func (*OnlineStatus) ProtoMessage

func (*OnlineStatus) ProtoMessage()

func (*OnlineStatus) ProtoReflect

func (x *OnlineStatus) ProtoReflect() protoreflect.Message

func (*OnlineStatus) Reset

func (x *OnlineStatus) Reset()

func (*OnlineStatus) String

func (x *OnlineStatus) String() string

func (*OnlineStatus) Validate

func (m *OnlineStatus) Validate() error

Validate checks the field values on OnlineStatus with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*OnlineStatus) ValidateAll

func (m *OnlineStatus) ValidateAll() error

ValidateAll checks the field values on OnlineStatus with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OnlineStatusMultiError, or nil if none found.

type OnlineStatusMultiError

type OnlineStatusMultiError []error

OnlineStatusMultiError is an error wrapping multiple validation errors returned by OnlineStatus.ValidateAll() if the designated constraints aren't met.

func (OnlineStatusMultiError) AllErrors

func (m OnlineStatusMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OnlineStatusMultiError) Error

func (m OnlineStatusMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OnlineStatusValidationError

type OnlineStatusValidationError struct {
	// contains filtered or unexported fields
}

OnlineStatusValidationError is the validation error returned by OnlineStatus.Validate if the designated constraints aren't met.

func (OnlineStatusValidationError) Cause

Cause function returns cause value.

func (OnlineStatusValidationError) Error

Error satisfies the builtin error interface

func (OnlineStatusValidationError) ErrorName

func (e OnlineStatusValidationError) ErrorName() string

ErrorName returns error name.

func (OnlineStatusValidationError) Field

Field function returns field value.

func (OnlineStatusValidationError) Key

Key function returns key value.

func (OnlineStatusValidationError) Reason

Reason function returns reason value.

type UserProfile

type UserProfile struct {
	UserId     string                 `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`           // 用户 id
	FaceURL    string                 `protobuf:"bytes,2,opt,name=faceURL,proto3" json:"faceURL,omitempty"`         // 头像
	Nickname   string                 `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`       // 昵称
	Account    string                 `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"`         // 账号
	Phone      string                 `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"`             //  电话
	Code       string                 `protobuf:"bytes,6,opt,name=code,proto3" json:"code,omitempty"`               // 码
	Gender     int32                  `protobuf:"varint,7,opt,name=gender,proto3" json:"gender,omitempty"`          // 性别 1:女 2:男
	Message    string                 `protobuf:"bytes,8,opt,name=message,proto3" json:"message,omitempty"`         // 简介
	ShareCode  string                 `protobuf:"bytes,9,opt,name=shareCode,proto3" json:"shareCode,omitempty"`     // 分享码
	LastLogin  *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=lastLogin,proto3" json:"lastLogin,omitempty"`    // 最后上线时间
	CreatedAt  *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=createdAt,proto3" json:"createdAt,omitempty"`    // 创建时间
	UpdatedAt  *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`    // 更新时间
	Email      string                 `protobuf:"bytes,13,opt,name=email,proto3" json:"email,omitempty"`            // 邮箱
	Birth      int64                  `protobuf:"varint,14,opt,name=birth,proto3" json:"birth,omitempty"`           // 生日
	FullName   string                 `protobuf:"bytes,16,opt,name=fullName,proto3" json:"fullName,omitempty"`      //实名
	PersonId   string                 `protobuf:"bytes,17,opt,name=personId,proto3" json:"personId,omitempty"`      //身份证号
	IsGenerate uint32                 `protobuf:"varint,18,opt,name=isGenerate,proto3" json:"isGenerate,omitempty"` //是否生成账号
	TenantId   string                 `protobuf:"bytes,19,opt,name=tenantId,proto3" json:"tenantId,omitempty"`      //租户id
	Options    map[string]int32       ``                                                                            //用户配置项开关为主
	/* 157-byte string literal not displayed */
	AccountType int32 `protobuf:"varint,21,opt,name=accountType,proto3" json:"accountType,omitempty"` //账号类型
	// contains filtered or unexported fields
}

func (*UserProfile) Descriptor deprecated

func (*UserProfile) Descriptor() ([]byte, []int)

Deprecated: Use UserProfile.ProtoReflect.Descriptor instead.

func (*UserProfile) GetAccount

func (x *UserProfile) GetAccount() string

func (*UserProfile) GetAccountType

func (x *UserProfile) GetAccountType() int32

func (*UserProfile) GetBirth

func (x *UserProfile) GetBirth() int64

func (*UserProfile) GetCode

func (x *UserProfile) GetCode() string

func (*UserProfile) GetCreatedAt

func (x *UserProfile) GetCreatedAt() *timestamppb.Timestamp

func (*UserProfile) GetEmail

func (x *UserProfile) GetEmail() string

func (*UserProfile) GetFaceURL

func (x *UserProfile) GetFaceURL() string

func (*UserProfile) GetFullName

func (x *UserProfile) GetFullName() string

func (*UserProfile) GetGender

func (x *UserProfile) GetGender() int32

func (*UserProfile) GetIsGenerate

func (x *UserProfile) GetIsGenerate() uint32

func (*UserProfile) GetLastLogin

func (x *UserProfile) GetLastLogin() *timestamppb.Timestamp

func (*UserProfile) GetMessage

func (x *UserProfile) GetMessage() string

func (*UserProfile) GetNickname

func (x *UserProfile) GetNickname() string

func (*UserProfile) GetOptions

func (x *UserProfile) GetOptions() map[string]int32

func (*UserProfile) GetPersonId

func (x *UserProfile) GetPersonId() string

func (*UserProfile) GetPhone

func (x *UserProfile) GetPhone() string

func (*UserProfile) GetShareCode

func (x *UserProfile) GetShareCode() string

func (*UserProfile) GetTenantId

func (x *UserProfile) GetTenantId() string

func (*UserProfile) GetUpdatedAt

func (x *UserProfile) GetUpdatedAt() *timestamppb.Timestamp

func (*UserProfile) GetUserId

func (x *UserProfile) GetUserId() string

func (*UserProfile) ProtoMessage

func (*UserProfile) ProtoMessage()

func (*UserProfile) ProtoReflect

func (x *UserProfile) ProtoReflect() protoreflect.Message

func (*UserProfile) Reset

func (x *UserProfile) Reset()

func (*UserProfile) String

func (x *UserProfile) String() string

func (*UserProfile) Validate

func (m *UserProfile) Validate() error

Validate checks the field values on UserProfile with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserProfile) ValidateAll

func (m *UserProfile) ValidateAll() error

ValidateAll checks the field values on UserProfile with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserProfileMultiError, or nil if none found.

type UserProfileMultiError

type UserProfileMultiError []error

UserProfileMultiError is an error wrapping multiple validation errors returned by UserProfile.ValidateAll() if the designated constraints aren't met.

func (UserProfileMultiError) AllErrors

func (m UserProfileMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserProfileMultiError) Error

func (m UserProfileMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserProfileValidationError

type UserProfileValidationError struct {
	// contains filtered or unexported fields
}

UserProfileValidationError is the validation error returned by UserProfile.Validate if the designated constraints aren't met.

func (UserProfileValidationError) Cause

Cause function returns cause value.

func (UserProfileValidationError) Error

Error satisfies the builtin error interface

func (UserProfileValidationError) ErrorName

func (e UserProfileValidationError) ErrorName() string

ErrorName returns error name.

func (UserProfileValidationError) Field

Field function returns field value.

func (UserProfileValidationError) Key

Key function returns key value.

func (UserProfileValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL