mail

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmailType_name = map[int32]string{
		0:  "NORMAL",
		1:  "COLLECT",
		2:  "RECYCLE",
		3:  "SYSTEM",
		4:  "POSTCARD",
		5:  "NOTEPAPER",
		9:  "GMPersonal",
		10: "GMSpecial",
	}
	EmailType_value = map[string]int32{
		"NORMAL":     0,
		"COLLECT":    1,
		"RECYCLE":    2,
		"SYSTEM":     3,
		"POSTCARD":   4,
		"NOTEPAPER":  5,
		"GMPersonal": 9,
		"GMSpecial":  10,
	}
)

Enum value maps for EmailType.

View Source
var (
	EmailStatus_name = map[int32]string{
		0: "INIT",
		1: "READ",
		2: "ACCEPTED",
	}
	EmailStatus_value = map[string]int32{
		"INIT":     0,
		"READ":     1,
		"ACCEPTED": 2,
	}
)

Enum value maps for EmailStatus.

Functions

This section is empty.

Types

type EmailStatus

type EmailStatus int32
const (
	EmailStatus_INIT     EmailStatus = 0 // 初始状态
	EmailStatus_READ     EmailStatus = 1 // 已读
	EmailStatus_ACCEPTED EmailStatus = 2 // 已受理
)

func (EmailStatus) Descriptor

func (EmailStatus) Enum

func (x EmailStatus) Enum() *EmailStatus

func (EmailStatus) EnumDescriptor deprecated

func (EmailStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use EmailStatus.Descriptor instead.

func (EmailStatus) Number

func (x EmailStatus) Number() protoreflect.EnumNumber

func (EmailStatus) String

func (x EmailStatus) String() string

func (EmailStatus) Type

type EmailType

type EmailType int32
const (
	EmailType_NORMAL     EmailType = 0
	EmailType_COLLECT    EmailType = 1
	EmailType_RECYCLE    EmailType = 2
	EmailType_SYSTEM     EmailType = 3
	EmailType_POSTCARD   EmailType = 4  // 明信片
	EmailType_NOTEPAPER  EmailType = 5  // 信纸
	EmailType_GMPersonal EmailType = 9  // gm 给个人发的邮件
	EmailType_GMSpecial  EmailType = 10 // gm特殊邮件(双包并行邮件模板)
)

func (EmailType) Descriptor

func (EmailType) Descriptor() protoreflect.EnumDescriptor

func (EmailType) Enum

func (x EmailType) Enum() *EmailType

func (EmailType) EnumDescriptor deprecated

func (EmailType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EmailType.Descriptor instead.

func (EmailType) Number

func (x EmailType) Number() protoreflect.EnumNumber

func (EmailType) String

func (x EmailType) String() string

func (EmailType) Type

type GoodsInfo

type GoodsInfo struct {
	ItemId uint32 `protobuf:"varint,1,opt,name=ItemId,proto3" json:"ItemId,omitempty"`
	Num    int32  `protobuf:"varint,2,opt,name=Num,proto3" json:"Num,omitempty"`
	Expire int64  `protobuf:"varint,3,opt,name=Expire,proto3" json:"Expire,omitempty"` // 过期时间
	// contains filtered or unexported fields
}

func (*GoodsInfo) Descriptor deprecated

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

Deprecated: Use GoodsInfo.ProtoReflect.Descriptor instead.

func (*GoodsInfo) GetExpire

func (x *GoodsInfo) GetExpire() int64

func (*GoodsInfo) GetItemId

func (x *GoodsInfo) GetItemId() uint32

func (*GoodsInfo) GetNum

func (x *GoodsInfo) GetNum() int32

func (*GoodsInfo) ProtoMessage

func (*GoodsInfo) ProtoMessage()

func (*GoodsInfo) ProtoReflect

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

func (*GoodsInfo) Reset

func (x *GoodsInfo) Reset()

func (*GoodsInfo) String

func (x *GoodsInfo) String() string

func (*GoodsInfo) Validate

func (m *GoodsInfo) Validate() error

Validate checks the field values on GoodsInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GoodsInfoValidationError

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

GoodsInfoValidationError is the validation error returned by GoodsInfo.Validate if the designated constraints aren't met.

func (GoodsInfoValidationError) Cause

func (e GoodsInfoValidationError) Cause() error

Cause function returns cause value.

func (GoodsInfoValidationError) Error

func (e GoodsInfoValidationError) Error() string

Error satisfies the builtin error interface

func (GoodsInfoValidationError) ErrorName

func (e GoodsInfoValidationError) ErrorName() string

ErrorName returns error name.

func (GoodsInfoValidationError) Field

func (e GoodsInfoValidationError) Field() string

Field function returns field value.

func (GoodsInfoValidationError) Key

Key function returns key value.

func (GoodsInfoValidationError) Reason

func (e GoodsInfoValidationError) Reason() string

Reason function returns reason value.

type Letter

type Letter struct {
	Uuid            uint64 `protobuf:"varint,1,opt,name=uuid,proto3" json:"uuid,omitempty"`                        // 唯一ID
	Msg             string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`                           // 发信息
	Nick            string `protobuf:"bytes,3,opt,name=nick,proto3" json:"nick,omitempty"`                         // 发送人昵称
	Tm              int64  `protobuf:"varint,4,opt,name=tm,proto3" json:"tm,omitempty"`                            // 发时间
	Response        string `protobuf:"bytes,5,opt,name=response,proto3" json:"response,omitempty"`                 // 回信息
	ResponseTm      int64  `protobuf:"varint,6,opt,name=responseTm,proto3" json:"responseTm,omitempty"`            // 回时间
	SenderId        uint64 `protobuf:"varint,7,opt,name=senderId,proto3" json:"senderId,omitempty"`                // 发送人playerID
	IsRead          bool   `protobuf:"varint,8,opt,name=isRead,proto3" json:"isRead,omitempty"`                    // 是否已读
	IsAddFriend     bool   `protobuf:"varint,9,opt,name=isAddFriend,proto3" json:"isAddFriend,omitempty"`          // 是否加好友
	DealFriendState uint32 `protobuf:"varint,10,opt,name=dealFriendState,proto3" json:"dealFriendState,omitempty"` //处理好友请求信息的状态  0:未处理  1:已同意  2:已拒绝
	// contains filtered or unexported fields
}

func (*Letter) Descriptor deprecated

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

Deprecated: Use Letter.ProtoReflect.Descriptor instead.

func (*Letter) GetDealFriendState

func (x *Letter) GetDealFriendState() uint32

func (*Letter) GetIsAddFriend

func (x *Letter) GetIsAddFriend() bool

func (*Letter) GetIsRead

func (x *Letter) GetIsRead() bool

func (*Letter) GetMsg

func (x *Letter) GetMsg() string

func (*Letter) GetNick

func (x *Letter) GetNick() string

func (*Letter) GetResponse

func (x *Letter) GetResponse() string

func (*Letter) GetResponseTm

func (x *Letter) GetResponseTm() int64

func (*Letter) GetSenderId

func (x *Letter) GetSenderId() uint64

func (*Letter) GetTm

func (x *Letter) GetTm() int64

func (*Letter) GetUuid

func (x *Letter) GetUuid() uint64

func (*Letter) ProtoMessage

func (*Letter) ProtoMessage()

func (*Letter) ProtoReflect

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

func (*Letter) Reset

func (x *Letter) Reset()

func (*Letter) String

func (x *Letter) String() string

func (*Letter) Validate

func (m *Letter) Validate() error

Validate checks the field values on Letter with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type LetterValidationError

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

LetterValidationError is the validation error returned by Letter.Validate if the designated constraints aren't met.

func (LetterValidationError) Cause

func (e LetterValidationError) Cause() error

Cause function returns cause value.

func (LetterValidationError) Error

func (e LetterValidationError) Error() string

Error satisfies the builtin error interface

func (LetterValidationError) ErrorName

func (e LetterValidationError) ErrorName() string

ErrorName returns error name.

func (LetterValidationError) Field

func (e LetterValidationError) Field() string

Field function returns field value.

func (LetterValidationError) Key

func (e LetterValidationError) Key() bool

Key function returns key value.

func (LetterValidationError) Reason

func (e LetterValidationError) Reason() string

Reason function returns reason value.

type MailInfo

type MailInfo struct {
	MUuid          uint64       `protobuf:"varint,1,opt,name=mUuid,proto3" json:"mUuid,omitempty"`
	MailId         uint32       `protobuf:"varint,2,opt,name=mailId,proto3" json:"mailId,omitempty"` // 对就mail表ID
	Sender         uint64       `protobuf:"varint,3,opt,name=sender,proto3" json:"sender,omitempty"`
	MType          EmailType    `protobuf:"varint,4,opt,name=mType,proto3,enum=mail.EmailType" json:"mType,omitempty"`
	Status         EmailStatus  `protobuf:"varint,5,opt,name=status,proto3,enum=mail.EmailStatus" json:"status,omitempty"`
	SenderNickName string       `protobuf:"bytes,6,opt,name=senderNickName,proto3" json:"senderNickName,omitempty"`
	Content        string       `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"`
	Goods          []*GoodsInfo `protobuf:"bytes,8,rep,name=goods,proto3" json:"goods,omitempty"`
	Decorator      []string     `protobuf:"bytes,9,rep,name=decorator,proto3" json:"decorator,omitempty"` // 装饰
	Mtime          int64        `protobuf:"varint,10,opt,name=mtime,proto3" json:"mtime,omitempty"`
	Color          []float32    `protobuf:"fixed32,11,rep,packed,name=color,proto3" json:"color,omitempty"`
	Template       uint32       `protobuf:"varint,12,opt,name=template,proto3" json:"template,omitempty"`    // 模板
	Paster         []uint32     `protobuf:"varint,13,rep,packed,name=paster,proto3" json:"paster,omitempty"` // 贴纸
	Topic          string       `protobuf:"bytes,14,opt,name=topic,proto3" json:"topic,omitempty"`
	SenderHead     uint32       `protobuf:"varint,15,opt,name=senderHead,proto3" json:"senderHead,omitempty"`
	Headline       string       `protobuf:"bytes,16,opt,name=headline,proto3" json:"headline,omitempty"` // 标题
	Version        string       `protobuf:"bytes,17,opt,name=version,proto3" json:"version,omitempty"`   // 版本号
	Url            string       `protobuf:"bytes,18,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*MailInfo) Descriptor deprecated

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

Deprecated: Use MailInfo.ProtoReflect.Descriptor instead.

func (*MailInfo) GetColor

func (x *MailInfo) GetColor() []float32

func (*MailInfo) GetContent

func (x *MailInfo) GetContent() string

func (*MailInfo) GetDecorator

func (x *MailInfo) GetDecorator() []string

func (*MailInfo) GetGoods

func (x *MailInfo) GetGoods() []*GoodsInfo

func (*MailInfo) GetHeadline

func (x *MailInfo) GetHeadline() string

func (*MailInfo) GetMType

func (x *MailInfo) GetMType() EmailType

func (*MailInfo) GetMUuid

func (x *MailInfo) GetMUuid() uint64

func (*MailInfo) GetMailId

func (x *MailInfo) GetMailId() uint32

func (*MailInfo) GetMtime

func (x *MailInfo) GetMtime() int64

func (*MailInfo) GetPaster

func (x *MailInfo) GetPaster() []uint32

func (*MailInfo) GetSender

func (x *MailInfo) GetSender() uint64

func (*MailInfo) GetSenderHead

func (x *MailInfo) GetSenderHead() uint32

func (*MailInfo) GetSenderNickName

func (x *MailInfo) GetSenderNickName() string

func (*MailInfo) GetStatus

func (x *MailInfo) GetStatus() EmailStatus

func (*MailInfo) GetTemplate

func (x *MailInfo) GetTemplate() uint32

func (*MailInfo) GetTopic

func (x *MailInfo) GetTopic() string

func (*MailInfo) GetUrl

func (x *MailInfo) GetUrl() string

func (*MailInfo) GetVersion

func (x *MailInfo) GetVersion() string

func (*MailInfo) ProtoMessage

func (*MailInfo) ProtoMessage()

func (*MailInfo) ProtoReflect

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

func (*MailInfo) Reset

func (x *MailInfo) Reset()

func (*MailInfo) String

func (x *MailInfo) String() string

func (*MailInfo) Validate

func (m *MailInfo) Validate() error

Validate checks the field values on MailInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type MailInfoValidationError

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

MailInfoValidationError is the validation error returned by MailInfo.Validate if the designated constraints aren't met.

func (MailInfoValidationError) Cause

func (e MailInfoValidationError) Cause() error

Cause function returns cause value.

func (MailInfoValidationError) Error

func (e MailInfoValidationError) Error() string

Error satisfies the builtin error interface

func (MailInfoValidationError) ErrorName

func (e MailInfoValidationError) ErrorName() string

ErrorName returns error name.

func (MailInfoValidationError) Field

func (e MailInfoValidationError) Field() string

Field function returns field value.

func (MailInfoValidationError) Key

func (e MailInfoValidationError) Key() bool

Key function returns key value.

func (MailInfoValidationError) Reason

func (e MailInfoValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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