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: 17 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_model_friend_v2_friend_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BlackInfo

type BlackInfo struct {
	Ex          string `protobuf:"bytes,1,opt,name=ex,proto3" json:"ex,omitempty"`                   //扩展字段
	FaceURL     string `protobuf:"bytes,2,opt,name=faceURL,proto3" json:"faceURL,omitempty"`         //头像
	Gender      int32  `protobuf:"varint,3,opt,name=gender,proto3" json:"gender,omitempty"`          //性别
	Nickname    string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"`       //昵称
	BlackUserID string `protobuf:"bytes,5,opt,name=blackUserID,proto3" json:"blackUserID,omitempty"` // 被拉黑的用户id
	Code        string `protobuf:"bytes,6,opt,name=code,proto3" json:"code,omitempty"`               // 用户的编码
	Message     string `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"`         // 简介
	CreatedAt   int64  `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"`    //拉黑时间
	OwnerUserID string `protobuf:"bytes,9,opt,name=ownerUserID,proto3" json:"ownerUserID,omitempty"` // 所属用户id
	// contains filtered or unexported fields
}

拉黑用户信息

func (*BlackInfo) Descriptor deprecated

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

Deprecated: Use BlackInfo.ProtoReflect.Descriptor instead.

func (*BlackInfo) GetBlackUserID

func (x *BlackInfo) GetBlackUserID() string

func (*BlackInfo) GetCode

func (x *BlackInfo) GetCode() string

func (*BlackInfo) GetCreatedAt

func (x *BlackInfo) GetCreatedAt() int64

func (*BlackInfo) GetEx

func (x *BlackInfo) GetEx() string

func (*BlackInfo) GetFaceURL

func (x *BlackInfo) GetFaceURL() string

func (*BlackInfo) GetGender

func (x *BlackInfo) GetGender() int32

func (*BlackInfo) GetMessage

func (x *BlackInfo) GetMessage() string

func (*BlackInfo) GetNickname

func (x *BlackInfo) GetNickname() string

func (*BlackInfo) GetOwnerUserID

func (x *BlackInfo) GetOwnerUserID() string

func (*BlackInfo) ProtoMessage

func (*BlackInfo) ProtoMessage()

func (*BlackInfo) ProtoReflect

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

func (*BlackInfo) Reset

func (x *BlackInfo) Reset()

func (*BlackInfo) String

func (x *BlackInfo) String() string

func (*BlackInfo) Validate

func (m *BlackInfo) Validate() error

Validate checks the field values on BlackInfo 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 (*BlackInfo) ValidateAll

func (m *BlackInfo) ValidateAll() error

ValidateAll checks the field values on BlackInfo 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 BlackInfoMultiError, or nil if none found.

type BlackInfoMultiError

type BlackInfoMultiError []error

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

func (BlackInfoMultiError) AllErrors

func (m BlackInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlackInfoMultiError) Error

func (m BlackInfoMultiError) Error() string

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

type BlackInfoValidationError

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

BlackInfoValidationError is the validation error returned by BlackInfo.Validate if the designated constraints aren't met.

func (BlackInfoValidationError) Cause

func (e BlackInfoValidationError) Cause() error

Cause function returns cause value.

func (BlackInfoValidationError) Error

func (e BlackInfoValidationError) Error() string

Error satisfies the builtin error interface

func (BlackInfoValidationError) ErrorName

func (e BlackInfoValidationError) ErrorName() string

ErrorName returns error name.

func (BlackInfoValidationError) Field

func (e BlackInfoValidationError) Field() string

Field function returns field value.

func (BlackInfoValidationError) Key

Key function returns key value.

func (BlackInfoValidationError) Reason

func (e BlackInfoValidationError) Reason() string

Reason function returns reason value.

type FriendInfo

type FriendInfo struct {
	OwnerUserID    string `protobuf:"bytes,1,opt,name=ownerUserID,proto3" json:"ownerUserID,omitempty"`         //本人uid
	FriendUserID   string `protobuf:"bytes,2,opt,name=friendUserID,proto3" json:"friendUserID,omitempty"`       //朋友uid
	Nickname       string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`               //好友昵称
	Phone          string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`                     //好友手机号
	FaceURL        string `protobuf:"bytes,5,opt,name=faceURL,proto3" json:"faceURL,omitempty"`                 //好友头像
	OperatorUserID string `protobuf:"bytes,6,opt,name=operatorUserID,proto3" json:"operatorUserID,omitempty"`   //操作的id
	Remark         string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"`                   // 好友备注
	CreatedAt      int64  `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"`            // 好友添加时间
	Message        string `protobuf:"bytes,9,opt,name=message,proto3" json:"message,omitempty"`                 //好友签名
	Code           string `protobuf:"bytes,10,opt,name=code,proto3" json:"code,omitempty"`                      //用户ID
	Email          string `protobuf:"bytes,11,opt,name=email,proto3" json:"email,omitempty"`                    //邮箱
	Birth          int64  `protobuf:"varint,12,opt,name=birth,proto3" json:"birth,omitempty"`                   //好友生日
	Gender         int32  `protobuf:"varint,13,opt,name=gender,proto3" json:"gender,omitempty"`                 //性别
	AddSource      int32  `protobuf:"varint,14,opt,name=addSource,proto3" json:"addSource,omitempty"`           //  添加来源
	Ex             string `protobuf:"bytes,15,opt,name=ex,proto3" json:"ex,omitempty"`                          //扩展字段
	BackgroundUrl  string `protobuf:"bytes,16,opt,name=backgroundUrl,proto3" json:"backgroundUrl,omitempty"`    //背景图片
	NotPeersFriend int32  `protobuf:"varint,17,opt,name=notPeersFriend,proto3" json:"notPeersFriend,omitempty"` //关系断开
	IsComplete     int32  `protobuf:"varint,18,opt,name=isComplete,proto3" json:"isComplete,omitempty"`         //同步完成" json:"isComplete"`
	IsDestroyMsg   int32  `protobuf:"varint,19,opt,name=IsDestroyMsg,proto3" json:"IsDestroyMsg,omitempty"`     //阅后即焚开关
	UpdateAt       int64  `protobuf:"varint,20,opt,name=updateAt,proto3" json:"updateAt,omitempty"`             //更新时间
	// contains filtered or unexported fields
}

好友信息

func (*FriendInfo) Descriptor deprecated

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

Deprecated: Use FriendInfo.ProtoReflect.Descriptor instead.

func (*FriendInfo) GetAddSource

func (x *FriendInfo) GetAddSource() int32

func (*FriendInfo) GetBackgroundUrl

func (x *FriendInfo) GetBackgroundUrl() string

func (*FriendInfo) GetBirth

func (x *FriendInfo) GetBirth() int64

func (*FriendInfo) GetCode

func (x *FriendInfo) GetCode() string

func (*FriendInfo) GetCreatedAt

func (x *FriendInfo) GetCreatedAt() int64

func (*FriendInfo) GetEmail

func (x *FriendInfo) GetEmail() string

func (*FriendInfo) GetEx

func (x *FriendInfo) GetEx() string

func (*FriendInfo) GetFaceURL

func (x *FriendInfo) GetFaceURL() string

func (*FriendInfo) GetFriendUserID

func (x *FriendInfo) GetFriendUserID() string

func (*FriendInfo) GetGender

func (x *FriendInfo) GetGender() int32

func (*FriendInfo) GetIsComplete

func (x *FriendInfo) GetIsComplete() int32

func (*FriendInfo) GetIsDestroyMsg

func (x *FriendInfo) GetIsDestroyMsg() int32

func (*FriendInfo) GetMessage

func (x *FriendInfo) GetMessage() string

func (*FriendInfo) GetNickname

func (x *FriendInfo) GetNickname() string

func (*FriendInfo) GetNotPeersFriend

func (x *FriendInfo) GetNotPeersFriend() int32

func (*FriendInfo) GetOperatorUserID

func (x *FriendInfo) GetOperatorUserID() string

func (*FriendInfo) GetOwnerUserID

func (x *FriendInfo) GetOwnerUserID() string

func (*FriendInfo) GetPhone

func (x *FriendInfo) GetPhone() string

func (*FriendInfo) GetRemark

func (x *FriendInfo) GetRemark() string

func (*FriendInfo) GetUpdateAt

func (x *FriendInfo) GetUpdateAt() int64

func (*FriendInfo) ProtoMessage

func (*FriendInfo) ProtoMessage()

func (*FriendInfo) ProtoReflect

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

func (*FriendInfo) Reset

func (x *FriendInfo) Reset()

func (*FriendInfo) String

func (x *FriendInfo) String() string

func (*FriendInfo) Validate

func (m *FriendInfo) Validate() error

Validate checks the field values on FriendInfo 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 (*FriendInfo) ValidateAll

func (m *FriendInfo) ValidateAll() error

ValidateAll checks the field values on FriendInfo 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 FriendInfoMultiError, or nil if none found.

type FriendInfoMultiError

type FriendInfoMultiError []error

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

func (FriendInfoMultiError) AllErrors

func (m FriendInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FriendInfoMultiError) Error

func (m FriendInfoMultiError) Error() string

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

type FriendInfoValidationError

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

FriendInfoValidationError is the validation error returned by FriendInfo.Validate if the designated constraints aren't met.

func (FriendInfoValidationError) Cause

func (e FriendInfoValidationError) Cause() error

Cause function returns cause value.

func (FriendInfoValidationError) Error

Error satisfies the builtin error interface

func (FriendInfoValidationError) ErrorName

func (e FriendInfoValidationError) ErrorName() string

ErrorName returns error name.

func (FriendInfoValidationError) Field

Field function returns field value.

func (FriendInfoValidationError) Key

Key function returns key value.

func (FriendInfoValidationError) Reason

func (e FriendInfoValidationError) Reason() string

Reason function returns reason value.

type FriendRequest

type FriendRequest struct {
	FromUserID    string `protobuf:"bytes,1,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"`        //来源的用户id
	ToUserID      string `protobuf:"bytes,8,opt,name=toUserID,proto3" json:"toUserID,omitempty"`            //接收方的用户id
	Nickname      string `protobuf:"bytes,9,opt,name=nickname,proto3" json:"nickname,omitempty"`            //接收方的用户昵称
	FaceURL       string `protobuf:"bytes,10,opt,name=faceURL,proto3" json:"faceURL,omitempty"`             //接收方的头像
	Code          string `protobuf:"bytes,11,opt,name=code,proto3" json:"code,omitempty"`                   //接收方的code
	Message       string `protobuf:"bytes,12,opt,name=message,proto3" json:"message,omitempty"`             // 接收方的个性签名
	Phone         string `protobuf:"bytes,13,opt,name=phone,proto3" json:"phone,omitempty"`                 // 接收方的手机号
	Gender        int32  `protobuf:"varint,14,opt,name=gender,proto3" json:"gender,omitempty"`              // 接收方的性别
	HandleResult  int32  `protobuf:"varint,15,opt,name=handleResult,proto3" json:"handleResult,omitempty"`  //处理结果 0:待处理1:同意2;拒绝
	ReqMsg        string `protobuf:"bytes,16,opt,name=reqMsg,proto3" json:"reqMsg,omitempty"`               //请求的消息
	CreateTime    int64  `protobuf:"varint,17,opt,name=createTime,proto3" json:"createTime,omitempty"`      //发起时间
	HandlerUserID string `protobuf:"bytes,18,opt,name=handlerUserID,proto3" json:"handlerUserID,omitempty"` //处理用户id
	HandleMsg     string `protobuf:"bytes,19,opt,name=handleMsg,proto3" json:"handleMsg,omitempty"`         //处理备注
	HandleTime    int64  `protobuf:"varint,20,opt,name=handleTime,proto3" json:"handleTime,omitempty"`      //处理时间
	Ex            string `protobuf:"bytes,21,opt,name=ex,proto3" json:"ex,omitempty"`                       //扩展字段
	// contains filtered or unexported fields
}

好友请求

func (*FriendRequest) Descriptor deprecated

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

Deprecated: Use FriendRequest.ProtoReflect.Descriptor instead.

func (*FriendRequest) GetCode

func (x *FriendRequest) GetCode() string

func (*FriendRequest) GetCreateTime

func (x *FriendRequest) GetCreateTime() int64

func (*FriendRequest) GetEx

func (x *FriendRequest) GetEx() string

func (*FriendRequest) GetFaceURL

func (x *FriendRequest) GetFaceURL() string

func (*FriendRequest) GetFromUserID

func (x *FriendRequest) GetFromUserID() string

func (*FriendRequest) GetGender

func (x *FriendRequest) GetGender() int32

func (*FriendRequest) GetHandleMsg

func (x *FriendRequest) GetHandleMsg() string

func (*FriendRequest) GetHandleResult

func (x *FriendRequest) GetHandleResult() int32

func (*FriendRequest) GetHandleTime

func (x *FriendRequest) GetHandleTime() int64

func (*FriendRequest) GetHandlerUserID

func (x *FriendRequest) GetHandlerUserID() string

func (*FriendRequest) GetMessage

func (x *FriendRequest) GetMessage() string

func (*FriendRequest) GetNickname

func (x *FriendRequest) GetNickname() string

func (*FriendRequest) GetPhone

func (x *FriendRequest) GetPhone() string

func (*FriendRequest) GetReqMsg

func (x *FriendRequest) GetReqMsg() string

func (*FriendRequest) GetToUserID

func (x *FriendRequest) GetToUserID() string

func (*FriendRequest) ProtoMessage

func (*FriendRequest) ProtoMessage()

func (*FriendRequest) ProtoReflect

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

func (*FriendRequest) Reset

func (x *FriendRequest) Reset()

func (*FriendRequest) String

func (x *FriendRequest) String() string

func (*FriendRequest) Validate

func (m *FriendRequest) Validate() error

Validate checks the field values on FriendRequest 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 (*FriendRequest) ValidateAll

func (m *FriendRequest) ValidateAll() error

ValidateAll checks the field values on FriendRequest 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 FriendRequestMultiError, or nil if none found.

type FriendRequestMultiError

type FriendRequestMultiError []error

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

func (FriendRequestMultiError) AllErrors

func (m FriendRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FriendRequestMultiError) Error

func (m FriendRequestMultiError) Error() string

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

type FriendRequestValidationError

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

FriendRequestValidationError is the validation error returned by FriendRequest.Validate if the designated constraints aren't met.

func (FriendRequestValidationError) Cause

Cause function returns cause value.

func (FriendRequestValidationError) Error

Error satisfies the builtin error interface

func (FriendRequestValidationError) ErrorName

func (e FriendRequestValidationError) ErrorName() string

ErrorName returns error name.

func (FriendRequestValidationError) Field

Field function returns field value.

func (FriendRequestValidationError) Key

Key function returns key value.

func (FriendRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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