协议名称修改
This commit is contained in:
parent
9c697977da
commit
f5c6ab50cd
@ -59,7 +59,11 @@ func (this *apiComp) StrengthenUpSkill(session comm.IUserSession, agrs map[strin
|
|||||||
}()
|
}()
|
||||||
var (
|
var (
|
||||||
tagHero int32 // 操作的英雄(configid)
|
tagHero int32 // 操作的英雄(configid)
|
||||||
|
tmpUpSkillID []int32 // 即将要升级的技能id
|
||||||
|
//probability []int32 // 即将升级技能的权重
|
||||||
)
|
)
|
||||||
|
tmpUpSkillID = make([]int32, 0)
|
||||||
|
//probability = make([]int32, 0)
|
||||||
tagHero = agrs["heroid"].(int32)
|
tagHero = agrs["heroid"].(int32)
|
||||||
log.Debugf("英雄:%d 技能升级", tagHero)
|
log.Debugf("英雄:%d 技能升级", tagHero)
|
||||||
config, err := this.moduleHero.configure.GetHeroSkillUpConfig()
|
config, err := this.moduleHero.configure.GetHeroSkillUpConfig()
|
||||||
@ -70,5 +74,19 @@ func (this *apiComp) StrengthenUpSkill(session comm.IUserSession, agrs map[strin
|
|||||||
for _, value := range config.GetDataList() {
|
for _, value := range config.GetDataList() {
|
||||||
log.Debugf("%d", value.Hid)
|
log.Debugf("%d", value.Hid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_hero, errr := this.moduleHero.modelHero.moduleHero.GetHero(session.GetUserId(), req.HeroObjID) // 查询目标卡是否存在
|
||||||
|
if errr != 0 {
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
for _, skill := range _hero.NormalSkill {
|
||||||
|
skillMaxLv := this.moduleHero.configure.GetHeroSkillMaxLvConfig(uint32(skill.SkillID))
|
||||||
|
if skill.SkillLv >= skillMaxLv { // 找到没有满级的技能id
|
||||||
|
tmpUpSkillID = append(tmpUpSkillID, skill.SkillID)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 获取权重
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ const (
|
|||||||
hero_levelup = "game_herolevelup.json" //英雄等级基础属性
|
hero_levelup = "game_herolevelup.json" //英雄等级基础属性
|
||||||
hero_exp = "game_heroexp.json" // 升级
|
hero_exp = "game_heroexp.json" // 升级
|
||||||
hero_skillup = "game_heroskilllevel.json" // 英雄技能升级
|
hero_skillup = "game_heroskilllevel.json" // 英雄技能升级
|
||||||
|
game_skillatk = "game_skillatk.json" // 英雄技能
|
||||||
)
|
)
|
||||||
|
|
||||||
///配置管理组件
|
///配置管理组件
|
||||||
@ -35,6 +36,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
|||||||
hero_levelup: cfg.NewGame_heroLevelup,
|
hero_levelup: cfg.NewGame_heroLevelup,
|
||||||
hero_exp: cfg.NewGame_heroExp,
|
hero_exp: cfg.NewGame_heroExp,
|
||||||
hero_skillup: cfg.NewGame_heroSkillLevel,
|
hero_skillup: cfg.NewGame_heroSkillLevel,
|
||||||
|
game_skillatk: cfg.NewGame_skillAtk,
|
||||||
})
|
})
|
||||||
|
|
||||||
return
|
return
|
||||||
@ -272,3 +274,15 @@ func (this *configureComp) GetHeroSkillUpConfig() (configure *cfg.Game_heroSkill
|
|||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取英雄技能最大等级
|
||||||
|
func (this *configureComp) GetHeroSkillMaxLvConfig(skillId uint32) int32 {
|
||||||
|
|
||||||
|
if v, err := this.GetConfigure(game_skillatk); err == nil {
|
||||||
|
if configure, ok := v.(*cfg.Game_skillAtk); ok {
|
||||||
|
return configure.Get(int32(skillId)).MaxLV
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
@ -7,16 +7,16 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
//参数校验
|
//参数校验
|
||||||
func (this *apiComp) DelMailCheck(session comm.IUserSession, req *pb.Mail_DelMail_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
func (this *apiComp) DelMailCheck(session comm.IUserSession, req *pb.MailDelMailReq) (result map[string]interface{}, code comm.ErrorCode) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除邮件
|
// 删除邮件
|
||||||
func (this *apiComp) DelMail(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_DelMail_Req) (code pb.ErrorCode) {
|
func (this *apiComp) DelMail(session comm.IUserSession, agrs map[string]interface{}, req *pb.MailDelMailReq) (code pb.ErrorCode) {
|
||||||
var err error
|
var err error
|
||||||
mailinfo := make([]*pb.DB_MailData, 0)
|
mailinfo := make([]*pb.DBMailData, 0)
|
||||||
defer func() {
|
defer func() {
|
||||||
session.SendMsg(string(this.module.GetType()), DelUserMailResp, &pb.Mail_DelMail_Resp{Mail: mailinfo})
|
session.SendMsg(string(this.module.GetType()), DelUserMailResp, &pb.MailDelMailResp{Mail: mailinfo})
|
||||||
}()
|
}()
|
||||||
if session.GetUserId() == "" {
|
if session.GetUserId() == "" {
|
||||||
code = pb.ErrorCode_NoLogin
|
code = pb.ErrorCode_NoLogin
|
||||||
|
@ -5,18 +5,18 @@ import (
|
|||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (this *apiComp) GetUserMailAttachmentCheck(session comm.IUserSession, req *pb.Mail_GetUserMailAttachment_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
func (this *apiComp) GetUserMailAttachmentCheck(session comm.IUserSession, req *pb.MailGetUserMailAttachmentReq) (result map[string]interface{}, code comm.ErrorCode) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 领取附件
|
// 领取附件
|
||||||
func (this *apiComp) GetUserMailAttachment(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_GetUserMailAttachment_Req) (code pb.ErrorCode) {
|
func (this *apiComp) GetUserMailAttachment(session comm.IUserSession, agrs map[string]interface{}, req *pb.MailGetUserMailAttachmentReq) (code pb.ErrorCode) {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
mail *pb.DB_MailData
|
mail *pb.DBMailData
|
||||||
)
|
)
|
||||||
defer func() {
|
defer func() {
|
||||||
session.SendMsg(string(this.module.GetType()), GetUserMailAttachmentResp, &pb.Mail_GetUserMailAttachment_Resp{Mail: mail})
|
session.SendMsg(string(this.module.GetType()), GetUserMailAttachmentResp, &pb.MailGetUserMailAttachmentResp{Mail: mail})
|
||||||
}()
|
}()
|
||||||
if session.GetUserId() == "" {
|
if session.GetUserId() == "" {
|
||||||
code = pb.ErrorCode_NoLogin
|
code = pb.ErrorCode_NoLogin
|
||||||
|
@ -6,17 +6,17 @@ import (
|
|||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (this *apiComp) GetListCheck(session comm.IUserSession, req *pb.Mail_GetList_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
func (this *apiComp) GetListCheck(session comm.IUserSession, req *pb.MailGetListReq) (result map[string]interface{}, code comm.ErrorCode) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查看所有邮件信息
|
// 查看所有邮件信息
|
||||||
func (this *apiComp) GetList(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_GetList_Req) (code pb.ErrorCode) {
|
func (this *apiComp) GetList(session comm.IUserSession, agrs map[string]interface{}, req *pb.MailGetListReq) (code pb.ErrorCode) {
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
mailinfo := make([]*pb.DB_MailData, 0)
|
mailinfo := make([]*pb.DBMailData, 0)
|
||||||
defer func() {
|
defer func() {
|
||||||
session.SendMsg(string(this.module.GetType()), QueryUserMailResp, &pb.Mail_GetList_Resp{Mails: mailinfo})
|
session.SendMsg(string(this.module.GetType()), QueryUserMailResp, &pb.MailGetListResp{Mails: mailinfo})
|
||||||
}()
|
}()
|
||||||
if session.GetUserId() == "" {
|
if session.GetUserId() == "" {
|
||||||
code = pb.ErrorCode_NoLogin
|
code = pb.ErrorCode_NoLogin
|
||||||
|
@ -5,18 +5,18 @@ import (
|
|||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (this *apiComp) ReadMailCheck(session comm.IUserSession, req *pb.Mail_ReadMail_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
func (this *apiComp) ReadMailCheck(session comm.IUserSession, req *pb.MailReadMailReq) (result map[string]interface{}, code comm.ErrorCode) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查看某一封邮件
|
// 查看某一封邮件
|
||||||
func (this *apiComp) ReadMail(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_ReadMail_Req) (code pb.ErrorCode) {
|
func (this *apiComp) ReadMail(session comm.IUserSession, agrs map[string]interface{}, req *pb.MailReadMailReq) (code pb.ErrorCode) {
|
||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
mail *pb.DB_MailData
|
mail *pb.DBMailData
|
||||||
)
|
)
|
||||||
defer func() {
|
defer func() {
|
||||||
session.SendMsg(string(this.module.GetType()), ReadUserMailResp, &pb.Mail_ReadMail_Resp{Mail: mail})
|
session.SendMsg(string(this.module.GetType()), ReadUserMailResp, &pb.MailReadMailResp{Mail: mail})
|
||||||
}()
|
}()
|
||||||
if session.GetUserId() == "" {
|
if session.GetUserId() == "" {
|
||||||
code = pb.ErrorCode_NoLogin
|
code = pb.ErrorCode_NoLogin
|
||||||
|
@ -32,11 +32,11 @@ func (this *modelMail) Init(service core.IService, module core.IModule, comp cor
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *modelMail) Mail_QueryUserMail(uId string) (mail []*pb.DB_MailData, err error) {
|
func (this *modelMail) Mail_QueryUserMail(uId string) (mail []*pb.DBMailData, err error) {
|
||||||
|
|
||||||
if _data, err := this.DB.Find(DB_MailTable, bson.M{"userid": uId}); err == nil {
|
if _data, err := this.DB.Find(DB_MailTable, bson.M{"userid": uId}); err == nil {
|
||||||
for _data.Next(context.TODO()) {
|
for _data.Next(context.TODO()) {
|
||||||
temp := &pb.DB_MailData{}
|
temp := &pb.DBMailData{}
|
||||||
if err = _data.Decode(temp); err == nil {
|
if err = _data.Decode(temp); err == nil {
|
||||||
mail = append(mail, temp)
|
mail = append(mail, temp)
|
||||||
}
|
}
|
||||||
@ -46,7 +46,7 @@ func (this *modelMail) Mail_QueryUserMail(uId string) (mail []*pb.DB_MailData, e
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 插入一封新的邮件
|
// 插入一封新的邮件
|
||||||
func (this *modelMail) Mail_InsertUserMail(mail *pb.DB_MailData) (err error) {
|
func (this *modelMail) Mail_InsertUserMail(mail *pb.DBMailData) (err error) {
|
||||||
|
|
||||||
mail.ObjId = primitive.NewObjectID().Hex()
|
mail.ObjId = primitive.NewObjectID().Hex()
|
||||||
mail.Check = false
|
mail.Check = false
|
||||||
@ -60,7 +60,7 @@ func (this *modelMail) Mail_InsertUserMail(mail *pb.DB_MailData) (err error) {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *modelMail) Mail_ReadOneMail(objId string) (mail *pb.DB_MailData, err error) {
|
func (this *modelMail) Mail_ReadOneMail(objId string) (mail *pb.DBMailData, err error) {
|
||||||
|
|
||||||
err = this.DB.FindOneAndUpdate(
|
err = this.DB.FindOneAndUpdate(
|
||||||
DB_MailTable,
|
DB_MailTable,
|
||||||
@ -78,7 +78,7 @@ func (this *modelMail) Mail_ReadOneMail(objId string) (mail *pb.DB_MailData, err
|
|||||||
func (this *modelMail) Mail_GetMailAttachment(objId string) (itmes []*pb.MailAttachment, err error) {
|
func (this *modelMail) Mail_GetMailAttachment(objId string) (itmes []*pb.MailAttachment, err error) {
|
||||||
|
|
||||||
obj := this.DB.FindOne(DB_MailTable, bson.M{"_id": objId})
|
obj := this.DB.FindOne(DB_MailTable, bson.M{"_id": objId})
|
||||||
var nd *pb.DB_MailData
|
var nd *pb.DBMailData
|
||||||
err = obj.Decode(&nd)
|
err = obj.Decode(&nd)
|
||||||
itmes = nd.GetItems()
|
itmes = nd.GetItems()
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ func (this *modelMail) Mail_GetMailAttachment(objId string) (itmes []*pb.MailAtt
|
|||||||
|
|
||||||
// 查看领取附件状态
|
// 查看领取附件状态
|
||||||
func (this *modelMail) Mail_GetMailAttachmentState(objId string) bool {
|
func (this *modelMail) Mail_GetMailAttachmentState(objId string) bool {
|
||||||
var nd *pb.DB_MailData
|
var nd *pb.DBMailData
|
||||||
err := this.DB.FindOne(DB_MailTable, bson.M{"_id": objId}).Decode(nd)
|
err := this.DB.FindOne(DB_MailTable, bson.M{"_id": objId}).Decode(nd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
@ -111,7 +111,7 @@ func (this *modelMail) Mail_UpdateMailAttachmentState(objId string) bool {
|
|||||||
|
|
||||||
// 删除一封邮件
|
// 删除一封邮件
|
||||||
func (this *modelMail) Mail_DelUserMail(objId string) bool {
|
func (this *modelMail) Mail_DelUserMail(objId string) bool {
|
||||||
var obj *pb.DB_MailData
|
var obj *pb.DBMailData
|
||||||
err := this.DB.FindOne(DB_MailTable, bson.M{"_id": objId}).Decode(obj)
|
err := this.DB.FindOne(DB_MailTable, bson.M{"_id": objId}).Decode(obj)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
|
@ -41,7 +41,7 @@ func (this *Mail) OnInstallComp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *Mail) CreateNewMail(uId string) {
|
func (this *Mail) CreateNewMail(uId string) {
|
||||||
mail := &pb.DB_MailData{
|
mail := &pb.DBMailData{
|
||||||
ObjId: primitive.NewObjectID().Hex(),
|
ObjId: primitive.NewObjectID().Hex(),
|
||||||
Uid: uId,
|
Uid: uId,
|
||||||
Title: "系统邮件",
|
Title: "系统邮件",
|
||||||
|
@ -75,7 +75,7 @@ func (x *MailAttachment) GetItemCount() uint32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
type DB_MailData struct {
|
type DBMailData struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
@ -91,8 +91,8 @@ type DB_MailData struct {
|
|||||||
Items []*MailAttachment `protobuf:"bytes,9,rep,name=Items,proto3" json:"Items"` // 附件
|
Items []*MailAttachment `protobuf:"bytes,9,rep,name=Items,proto3" json:"Items"` // 附件
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DB_MailData) Reset() {
|
func (x *DBMailData) Reset() {
|
||||||
*x = DB_MailData{}
|
*x = DBMailData{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_mail_mail_db_proto_msgTypes[1]
|
mi := &file_mail_mail_db_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -100,13 +100,13 @@ func (x *DB_MailData) Reset() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DB_MailData) String() string {
|
func (x *DBMailData) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*DB_MailData) ProtoMessage() {}
|
func (*DBMailData) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DB_MailData) ProtoReflect() protoreflect.Message {
|
func (x *DBMailData) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_mail_mail_db_proto_msgTypes[1]
|
mi := &file_mail_mail_db_proto_msgTypes[1]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -118,68 +118,68 @@ func (x *DB_MailData) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use DB_MailData.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DBMailData.ProtoReflect.Descriptor instead.
|
||||||
func (*DB_MailData) Descriptor() ([]byte, []int) {
|
func (*DBMailData) Descriptor() ([]byte, []int) {
|
||||||
return file_mail_mail_db_proto_rawDescGZIP(), []int{1}
|
return file_mail_mail_db_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DB_MailData) GetObjId() string {
|
func (x *DBMailData) GetObjId() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.ObjId
|
return x.ObjId
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DB_MailData) GetUid() string {
|
func (x *DBMailData) GetUid() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Uid
|
return x.Uid
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DB_MailData) GetTitle() string {
|
func (x *DBMailData) GetTitle() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Title
|
return x.Title
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DB_MailData) GetContex() string {
|
func (x *DBMailData) GetContex() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Contex
|
return x.Contex
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DB_MailData) GetCreateTime() uint64 {
|
func (x *DBMailData) GetCreateTime() uint64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.CreateTime
|
return x.CreateTime
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DB_MailData) GetDueTime() uint64 {
|
func (x *DBMailData) GetDueTime() uint64 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.DueTime
|
return x.DueTime
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DB_MailData) GetCheck() bool {
|
func (x *DBMailData) GetCheck() bool {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Check
|
return x.Check
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DB_MailData) GetReward() bool {
|
func (x *DBMailData) GetReward() bool {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Reward
|
return x.Reward
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DB_MailData) GetItems() []*MailAttachment {
|
func (x *DBMailData) GetItems() []*MailAttachment {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Items
|
return x.Items
|
||||||
}
|
}
|
||||||
@ -194,24 +194,23 @@ var file_mail_mail_db_proto_rawDesc = []byte{
|
|||||||
0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64,
|
0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x1c,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x1c,
|
||||||
0x0a, 0x09, 0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x0a, 0x09, 0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
0x0d, 0x52, 0x09, 0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xf2, 0x01, 0x0a,
|
0x0d, 0x52, 0x09, 0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xf1, 0x01, 0x0a,
|
||||||
0x0b, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05,
|
0x0a, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x4f,
|
||||||
0x4f, 0x62, 0x6a, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a,
|
0x62, 0x6a, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49,
|
||||||
0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
|
||||||
0x03, 0x55, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20,
|
0x55, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01,
|
||||||
0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6f,
|
0x28, 0x09, 0x52, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
|
||||||
0x6e, 0x74, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x6f, 0x6e, 0x74,
|
0x74, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x6f, 0x6e, 0x74, 0x65,
|
||||||
0x65, 0x78, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,
|
0x78, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18,
|
||||||
0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69,
|
0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d,
|
||||||
0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20,
|
0x65, 0x12, 0x18, 0x0a, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01,
|
||||||
0x01, 0x28, 0x04, 0x52, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
|
0x28, 0x04, 0x52, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x43,
|
||||||
0x43, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x43, 0x68, 0x65,
|
0x68, 0x65, 0x63, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x43, 0x68, 0x65, 0x63,
|
||||||
0x63, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01,
|
0x6b, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
|
||||||
0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x25, 0x0a, 0x05, 0x49, 0x74,
|
0x08, 0x52, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x25, 0x0a, 0x05, 0x49, 0x74, 0x65,
|
||||||
0x65, 0x6d, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x4d, 0x61, 0x69, 0x6c,
|
0x6d, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x4d, 0x61, 0x69, 0x6c, 0x41,
|
||||||
0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d,
|
0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73,
|
||||||
0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
0x33,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -229,10 +228,10 @@ func file_mail_mail_db_proto_rawDescGZIP() []byte {
|
|||||||
var file_mail_mail_db_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
var file_mail_mail_db_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||||
var file_mail_mail_db_proto_goTypes = []interface{}{
|
var file_mail_mail_db_proto_goTypes = []interface{}{
|
||||||
(*MailAttachment)(nil), // 0: MailAttachment
|
(*MailAttachment)(nil), // 0: MailAttachment
|
||||||
(*DB_MailData)(nil), // 1: DB_MailData
|
(*DBMailData)(nil), // 1: DBMailData
|
||||||
}
|
}
|
||||||
var file_mail_mail_db_proto_depIdxs = []int32{
|
var file_mail_mail_db_proto_depIdxs = []int32{
|
||||||
0, // 0: DB_MailData.Items:type_name -> MailAttachment
|
0, // 0: DBMailData.Items:type_name -> MailAttachment
|
||||||
1, // [1:1] is the sub-list for method output_type
|
1, // [1:1] is the sub-list for method output_type
|
||||||
1, // [1:1] is the sub-list for method input_type
|
1, // [1:1] is the sub-list for method input_type
|
||||||
1, // [1:1] is the sub-list for extension type_name
|
1, // [1:1] is the sub-list for extension type_name
|
||||||
@ -259,7 +258,7 @@ func file_mail_mail_db_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_mail_mail_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
file_mail_mail_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DB_MailData); i {
|
switch v := v.(*DBMailData); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -20,14 +20,14 @@ const (
|
|||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
)
|
)
|
||||||
|
|
||||||
type Mail_GetList_Req struct {
|
type MailGetListReq struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_GetList_Req) Reset() {
|
func (x *MailGetListReq) Reset() {
|
||||||
*x = Mail_GetList_Req{}
|
*x = MailGetListReq{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[0]
|
mi := &file_mail_mail_msg_proto_msgTypes[0]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -35,13 +35,13 @@ func (x *Mail_GetList_Req) Reset() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_GetList_Req) String() string {
|
func (x *MailGetListReq) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*Mail_GetList_Req) ProtoMessage() {}
|
func (*MailGetListReq) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *Mail_GetList_Req) ProtoReflect() protoreflect.Message {
|
func (x *MailGetListReq) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[0]
|
mi := &file_mail_mail_msg_proto_msgTypes[0]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -53,22 +53,22 @@ func (x *Mail_GetList_Req) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use Mail_GetList_Req.ProtoReflect.Descriptor instead.
|
// Deprecated: Use MailGetListReq.ProtoReflect.Descriptor instead.
|
||||||
func (*Mail_GetList_Req) Descriptor() ([]byte, []int) {
|
func (*MailGetListReq) Descriptor() ([]byte, []int) {
|
||||||
return file_mail_mail_msg_proto_rawDescGZIP(), []int{0}
|
return file_mail_mail_msg_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询邮件信息
|
// 查询邮件信息
|
||||||
type Mail_GetList_Resp struct {
|
type MailGetListResp struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Mails []*DB_MailData `protobuf:"bytes,1,rep,name=Mails,proto3" json:"Mails"`
|
Mails []*DBMailData `protobuf:"bytes,1,rep,name=Mails,proto3" json:"Mails"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_GetList_Resp) Reset() {
|
func (x *MailGetListResp) Reset() {
|
||||||
*x = Mail_GetList_Resp{}
|
*x = MailGetListResp{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[1]
|
mi := &file_mail_mail_msg_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -76,13 +76,13 @@ func (x *Mail_GetList_Resp) Reset() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_GetList_Resp) String() string {
|
func (x *MailGetListResp) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*Mail_GetList_Resp) ProtoMessage() {}
|
func (*MailGetListResp) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *Mail_GetList_Resp) ProtoReflect() protoreflect.Message {
|
func (x *MailGetListResp) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[1]
|
mi := &file_mail_mail_msg_proto_msgTypes[1]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -94,12 +94,12 @@ func (x *Mail_GetList_Resp) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use Mail_GetList_Resp.ProtoReflect.Descriptor instead.
|
// Deprecated: Use MailGetListResp.ProtoReflect.Descriptor instead.
|
||||||
func (*Mail_GetList_Resp) Descriptor() ([]byte, []int) {
|
func (*MailGetListResp) Descriptor() ([]byte, []int) {
|
||||||
return file_mail_mail_msg_proto_rawDescGZIP(), []int{1}
|
return file_mail_mail_msg_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_GetList_Resp) GetMails() []*DB_MailData {
|
func (x *MailGetListResp) GetMails() []*DBMailData {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Mails
|
return x.Mails
|
||||||
}
|
}
|
||||||
@ -107,7 +107,7 @@ func (x *Mail_GetList_Resp) GetMails() []*DB_MailData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 查看邮件
|
// 查看邮件
|
||||||
type Mail_ReadMail_Req struct {
|
type MailReadMailReq struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
@ -115,8 +115,8 @@ type Mail_ReadMail_Req struct {
|
|||||||
ObjID string `protobuf:"bytes,1,opt,name=ObjID,proto3" json:"ObjID"`
|
ObjID string `protobuf:"bytes,1,opt,name=ObjID,proto3" json:"ObjID"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_ReadMail_Req) Reset() {
|
func (x *MailReadMailReq) Reset() {
|
||||||
*x = Mail_ReadMail_Req{}
|
*x = MailReadMailReq{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[2]
|
mi := &file_mail_mail_msg_proto_msgTypes[2]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -124,13 +124,13 @@ func (x *Mail_ReadMail_Req) Reset() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_ReadMail_Req) String() string {
|
func (x *MailReadMailReq) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*Mail_ReadMail_Req) ProtoMessage() {}
|
func (*MailReadMailReq) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *Mail_ReadMail_Req) ProtoReflect() protoreflect.Message {
|
func (x *MailReadMailReq) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[2]
|
mi := &file_mail_mail_msg_proto_msgTypes[2]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -142,28 +142,28 @@ func (x *Mail_ReadMail_Req) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use Mail_ReadMail_Req.ProtoReflect.Descriptor instead.
|
// Deprecated: Use MailReadMailReq.ProtoReflect.Descriptor instead.
|
||||||
func (*Mail_ReadMail_Req) Descriptor() ([]byte, []int) {
|
func (*MailReadMailReq) Descriptor() ([]byte, []int) {
|
||||||
return file_mail_mail_msg_proto_rawDescGZIP(), []int{2}
|
return file_mail_mail_msg_proto_rawDescGZIP(), []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_ReadMail_Req) GetObjID() string {
|
func (x *MailReadMailReq) GetObjID() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.ObjID
|
return x.ObjID
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type Mail_ReadMail_Resp struct {
|
type MailReadMailResp struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Mail *DB_MailData `protobuf:"bytes,1,opt,name=Mail,proto3" json:"Mail"`
|
Mail *DBMailData `protobuf:"bytes,1,opt,name=Mail,proto3" json:"Mail"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_ReadMail_Resp) Reset() {
|
func (x *MailReadMailResp) Reset() {
|
||||||
*x = Mail_ReadMail_Resp{}
|
*x = MailReadMailResp{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[3]
|
mi := &file_mail_mail_msg_proto_msgTypes[3]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -171,13 +171,13 @@ func (x *Mail_ReadMail_Resp) Reset() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_ReadMail_Resp) String() string {
|
func (x *MailReadMailResp) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*Mail_ReadMail_Resp) ProtoMessage() {}
|
func (*MailReadMailResp) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *Mail_ReadMail_Resp) ProtoReflect() protoreflect.Message {
|
func (x *MailReadMailResp) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[3]
|
mi := &file_mail_mail_msg_proto_msgTypes[3]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -189,12 +189,12 @@ func (x *Mail_ReadMail_Resp) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use Mail_ReadMail_Resp.ProtoReflect.Descriptor instead.
|
// Deprecated: Use MailReadMailResp.ProtoReflect.Descriptor instead.
|
||||||
func (*Mail_ReadMail_Resp) Descriptor() ([]byte, []int) {
|
func (*MailReadMailResp) Descriptor() ([]byte, []int) {
|
||||||
return file_mail_mail_msg_proto_rawDescGZIP(), []int{3}
|
return file_mail_mail_msg_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_ReadMail_Resp) GetMail() *DB_MailData {
|
func (x *MailReadMailResp) GetMail() *DBMailData {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Mail
|
return x.Mail
|
||||||
}
|
}
|
||||||
@ -202,7 +202,7 @@ func (x *Mail_ReadMail_Resp) GetMail() *DB_MailData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 领取附件
|
// 领取附件
|
||||||
type Mail_GetUserMailAttachment_Req struct {
|
type MailGetUserMailAttachmentReq struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
@ -210,8 +210,8 @@ type Mail_GetUserMailAttachment_Req struct {
|
|||||||
ObjID string `protobuf:"bytes,1,opt,name=ObjID,proto3" json:"ObjID"`
|
ObjID string `protobuf:"bytes,1,opt,name=ObjID,proto3" json:"ObjID"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_GetUserMailAttachment_Req) Reset() {
|
func (x *MailGetUserMailAttachmentReq) Reset() {
|
||||||
*x = Mail_GetUserMailAttachment_Req{}
|
*x = MailGetUserMailAttachmentReq{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[4]
|
mi := &file_mail_mail_msg_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -219,13 +219,13 @@ func (x *Mail_GetUserMailAttachment_Req) Reset() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_GetUserMailAttachment_Req) String() string {
|
func (x *MailGetUserMailAttachmentReq) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*Mail_GetUserMailAttachment_Req) ProtoMessage() {}
|
func (*MailGetUserMailAttachmentReq) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *Mail_GetUserMailAttachment_Req) ProtoReflect() protoreflect.Message {
|
func (x *MailGetUserMailAttachmentReq) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[4]
|
mi := &file_mail_mail_msg_proto_msgTypes[4]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -237,28 +237,28 @@ func (x *Mail_GetUserMailAttachment_Req) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use Mail_GetUserMailAttachment_Req.ProtoReflect.Descriptor instead.
|
// Deprecated: Use MailGetUserMailAttachmentReq.ProtoReflect.Descriptor instead.
|
||||||
func (*Mail_GetUserMailAttachment_Req) Descriptor() ([]byte, []int) {
|
func (*MailGetUserMailAttachmentReq) Descriptor() ([]byte, []int) {
|
||||||
return file_mail_mail_msg_proto_rawDescGZIP(), []int{4}
|
return file_mail_mail_msg_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_GetUserMailAttachment_Req) GetObjID() string {
|
func (x *MailGetUserMailAttachmentReq) GetObjID() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.ObjID
|
return x.ObjID
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type Mail_GetUserMailAttachment_Resp struct {
|
type MailGetUserMailAttachmentResp struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Mail *DB_MailData `protobuf:"bytes,1,opt,name=Mail,proto3" json:"Mail"`
|
Mail *DBMailData `protobuf:"bytes,1,opt,name=Mail,proto3" json:"Mail"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_GetUserMailAttachment_Resp) Reset() {
|
func (x *MailGetUserMailAttachmentResp) Reset() {
|
||||||
*x = Mail_GetUserMailAttachment_Resp{}
|
*x = MailGetUserMailAttachmentResp{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[5]
|
mi := &file_mail_mail_msg_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -266,13 +266,13 @@ func (x *Mail_GetUserMailAttachment_Resp) Reset() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_GetUserMailAttachment_Resp) String() string {
|
func (x *MailGetUserMailAttachmentResp) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*Mail_GetUserMailAttachment_Resp) ProtoMessage() {}
|
func (*MailGetUserMailAttachmentResp) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *Mail_GetUserMailAttachment_Resp) ProtoReflect() protoreflect.Message {
|
func (x *MailGetUserMailAttachmentResp) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[5]
|
mi := &file_mail_mail_msg_proto_msgTypes[5]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -284,12 +284,12 @@ func (x *Mail_GetUserMailAttachment_Resp) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use Mail_GetUserMailAttachment_Resp.ProtoReflect.Descriptor instead.
|
// Deprecated: Use MailGetUserMailAttachmentResp.ProtoReflect.Descriptor instead.
|
||||||
func (*Mail_GetUserMailAttachment_Resp) Descriptor() ([]byte, []int) {
|
func (*MailGetUserMailAttachmentResp) Descriptor() ([]byte, []int) {
|
||||||
return file_mail_mail_msg_proto_rawDescGZIP(), []int{5}
|
return file_mail_mail_msg_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_GetUserMailAttachment_Resp) GetMail() *DB_MailData {
|
func (x *MailGetUserMailAttachmentResp) GetMail() *DBMailData {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Mail
|
return x.Mail
|
||||||
}
|
}
|
||||||
@ -297,7 +297,7 @@ func (x *Mail_GetUserMailAttachment_Resp) GetMail() *DB_MailData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 删除某个邮件
|
// 删除某个邮件
|
||||||
type Mail_DelMail_Req struct {
|
type MailDelMailReq struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
@ -305,8 +305,8 @@ type Mail_DelMail_Req struct {
|
|||||||
ObjID string `protobuf:"bytes,1,opt,name=ObjID,proto3" json:"ObjID"`
|
ObjID string `protobuf:"bytes,1,opt,name=ObjID,proto3" json:"ObjID"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_DelMail_Req) Reset() {
|
func (x *MailDelMailReq) Reset() {
|
||||||
*x = Mail_DelMail_Req{}
|
*x = MailDelMailReq{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[6]
|
mi := &file_mail_mail_msg_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -314,13 +314,13 @@ func (x *Mail_DelMail_Req) Reset() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_DelMail_Req) String() string {
|
func (x *MailDelMailReq) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*Mail_DelMail_Req) ProtoMessage() {}
|
func (*MailDelMailReq) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *Mail_DelMail_Req) ProtoReflect() protoreflect.Message {
|
func (x *MailDelMailReq) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[6]
|
mi := &file_mail_mail_msg_proto_msgTypes[6]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -332,28 +332,28 @@ func (x *Mail_DelMail_Req) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use Mail_DelMail_Req.ProtoReflect.Descriptor instead.
|
// Deprecated: Use MailDelMailReq.ProtoReflect.Descriptor instead.
|
||||||
func (*Mail_DelMail_Req) Descriptor() ([]byte, []int) {
|
func (*MailDelMailReq) Descriptor() ([]byte, []int) {
|
||||||
return file_mail_mail_msg_proto_rawDescGZIP(), []int{6}
|
return file_mail_mail_msg_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_DelMail_Req) GetObjID() string {
|
func (x *MailDelMailReq) GetObjID() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.ObjID
|
return x.ObjID
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type Mail_DelMail_Resp struct {
|
type MailDelMailResp struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
Mail []*DB_MailData `protobuf:"bytes,1,rep,name=Mail,proto3" json:"Mail"`
|
Mail []*DBMailData `protobuf:"bytes,1,rep,name=Mail,proto3" json:"Mail"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_DelMail_Resp) Reset() {
|
func (x *MailDelMailResp) Reset() {
|
||||||
*x = Mail_DelMail_Resp{}
|
*x = MailDelMailResp{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[7]
|
mi := &file_mail_mail_msg_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -361,13 +361,13 @@ func (x *Mail_DelMail_Resp) Reset() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_DelMail_Resp) String() string {
|
func (x *MailDelMailResp) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*Mail_DelMail_Resp) ProtoMessage() {}
|
func (*MailDelMailResp) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *Mail_DelMail_Resp) ProtoReflect() protoreflect.Message {
|
func (x *MailDelMailResp) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_mail_mail_msg_proto_msgTypes[7]
|
mi := &file_mail_mail_msg_proto_msgTypes[7]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -379,12 +379,12 @@ func (x *Mail_DelMail_Resp) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use Mail_DelMail_Resp.ProtoReflect.Descriptor instead.
|
// Deprecated: Use MailDelMailResp.ProtoReflect.Descriptor instead.
|
||||||
func (*Mail_DelMail_Resp) Descriptor() ([]byte, []int) {
|
func (*MailDelMailResp) Descriptor() ([]byte, []int) {
|
||||||
return file_mail_mail_msg_proto_rawDescGZIP(), []int{7}
|
return file_mail_mail_msg_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Mail_DelMail_Resp) GetMail() []*DB_MailData {
|
func (x *MailDelMailResp) GetMail() []*DBMailData {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Mail
|
return x.Mail
|
||||||
}
|
}
|
||||||
@ -396,33 +396,32 @@ var File_mail_mail_msg_proto protoreflect.FileDescriptor
|
|||||||
var file_mail_mail_msg_proto_rawDesc = []byte{
|
var file_mail_mail_msg_proto_rawDesc = []byte{
|
||||||
0x0a, 0x13, 0x6d, 0x61, 0x69, 0x6c, 0x2f, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x73, 0x67, 0x2e,
|
0x0a, 0x13, 0x6d, 0x61, 0x69, 0x6c, 0x2f, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x73, 0x67, 0x2e,
|
||||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x6d, 0x61, 0x69, 0x6c, 0x2f, 0x6d, 0x61, 0x69, 0x6c,
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x6d, 0x61, 0x69, 0x6c, 0x2f, 0x6d, 0x61, 0x69, 0x6c,
|
||||||
0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x12, 0x0a, 0x10, 0x4d, 0x61, 0x69,
|
0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x10, 0x0a, 0x0e, 0x4d, 0x61, 0x69,
|
||||||
0x6c, 0x5f, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x5f, 0x52, 0x65, 0x71, 0x22, 0x37, 0x0a,
|
0x6c, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x34, 0x0a, 0x0f, 0x4d,
|
||||||
0x11, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x5f, 0x52, 0x65,
|
0x61, 0x69, 0x6c, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21,
|
||||||
0x73, 0x70, 0x12, 0x22, 0x0a, 0x05, 0x4d, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
0x0a, 0x05, 0x4d, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e,
|
||||||
0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52,
|
0x44, 0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x4d, 0x61, 0x69, 0x6c,
|
||||||
0x05, 0x4d, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x29, 0x0a, 0x11, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x52,
|
0x73, 0x22, 0x27, 0x0a, 0x0f, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x69,
|
||||||
0x65, 0x61, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f,
|
0x6c, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20,
|
||||||
0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49,
|
0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x22, 0x33, 0x0a, 0x10, 0x4d, 0x61,
|
||||||
0x44, 0x22, 0x36, 0x0a, 0x12, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x52, 0x65, 0x61, 0x64, 0x4d, 0x61,
|
0x69, 0x6c, 0x52, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f,
|
||||||
0x69, 0x6c, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18,
|
0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44,
|
0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x22,
|
||||||
0x61, 0x74, 0x61, 0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x22, 0x36, 0x0a, 0x1e, 0x4d, 0x61, 0x69,
|
0x34, 0x0a, 0x1c, 0x4d, 0x61, 0x69, 0x6c, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61,
|
||||||
0x6c, 0x5f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74,
|
0x69, 0x6c, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12,
|
||||||
0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f,
|
0x14, 0x0a, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
||||||
0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49,
|
0x4f, 0x62, 0x6a, 0x49, 0x44, 0x22, 0x40, 0x0a, 0x1d, 0x4d, 0x61, 0x69, 0x6c, 0x47, 0x65, 0x74,
|
||||||
0x44, 0x22, 0x43, 0x0a, 0x1f, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,
|
0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65,
|
||||||
0x72, 0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x5f,
|
0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01,
|
||||||
0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01,
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74,
|
||||||
0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61,
|
0x61, 0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x22, 0x26, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x44,
|
||||||
0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x22, 0x28, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x44,
|
0x65, 0x6c, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x62, 0x6a,
|
||||||
0x65, 0x6c, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x62,
|
0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x22,
|
||||||
0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44,
|
0x32, 0x0a, 0x0f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x65, 0x6c, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65,
|
||||||
0x22, 0x35, 0x0a, 0x11, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x44, 0x65, 0x6c, 0x4d, 0x61, 0x69, 0x6c,
|
0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
||||||
0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20,
|
0x32, 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x4d,
|
||||||
0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74,
|
0x61, 0x69, 0x6c, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||||
0x61, 0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62,
|
0x74, 0x6f, 0x33,
|
||||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -439,21 +438,21 @@ func file_mail_mail_msg_proto_rawDescGZIP() []byte {
|
|||||||
|
|
||||||
var file_mail_mail_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
var file_mail_mail_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||||
var file_mail_mail_msg_proto_goTypes = []interface{}{
|
var file_mail_mail_msg_proto_goTypes = []interface{}{
|
||||||
(*Mail_GetList_Req)(nil), // 0: Mail_GetList_Req
|
(*MailGetListReq)(nil), // 0: MailGetListReq
|
||||||
(*Mail_GetList_Resp)(nil), // 1: Mail_GetList_Resp
|
(*MailGetListResp)(nil), // 1: MailGetListResp
|
||||||
(*Mail_ReadMail_Req)(nil), // 2: Mail_ReadMail_Req
|
(*MailReadMailReq)(nil), // 2: MailReadMailReq
|
||||||
(*Mail_ReadMail_Resp)(nil), // 3: Mail_ReadMail_Resp
|
(*MailReadMailResp)(nil), // 3: MailReadMailResp
|
||||||
(*Mail_GetUserMailAttachment_Req)(nil), // 4: Mail_GetUserMailAttachment_Req
|
(*MailGetUserMailAttachmentReq)(nil), // 4: MailGetUserMailAttachmentReq
|
||||||
(*Mail_GetUserMailAttachment_Resp)(nil), // 5: Mail_GetUserMailAttachment_Resp
|
(*MailGetUserMailAttachmentResp)(nil), // 5: MailGetUserMailAttachmentResp
|
||||||
(*Mail_DelMail_Req)(nil), // 6: Mail_DelMail_Req
|
(*MailDelMailReq)(nil), // 6: MailDelMailReq
|
||||||
(*Mail_DelMail_Resp)(nil), // 7: Mail_DelMail_Resp
|
(*MailDelMailResp)(nil), // 7: MailDelMailResp
|
||||||
(*DB_MailData)(nil), // 8: DB_MailData
|
(*DBMailData)(nil), // 8: DBMailData
|
||||||
}
|
}
|
||||||
var file_mail_mail_msg_proto_depIdxs = []int32{
|
var file_mail_mail_msg_proto_depIdxs = []int32{
|
||||||
8, // 0: Mail_GetList_Resp.Mails:type_name -> DB_MailData
|
8, // 0: MailGetListResp.Mails:type_name -> DBMailData
|
||||||
8, // 1: Mail_ReadMail_Resp.Mail:type_name -> DB_MailData
|
8, // 1: MailReadMailResp.Mail:type_name -> DBMailData
|
||||||
8, // 2: Mail_GetUserMailAttachment_Resp.Mail:type_name -> DB_MailData
|
8, // 2: MailGetUserMailAttachmentResp.Mail:type_name -> DBMailData
|
||||||
8, // 3: Mail_DelMail_Resp.Mail:type_name -> DB_MailData
|
8, // 3: MailDelMailResp.Mail:type_name -> DBMailData
|
||||||
4, // [4:4] is the sub-list for method output_type
|
4, // [4:4] is the sub-list for method output_type
|
||||||
4, // [4:4] is the sub-list for method input_type
|
4, // [4:4] is the sub-list for method input_type
|
||||||
4, // [4:4] is the sub-list for extension type_name
|
4, // [4:4] is the sub-list for extension type_name
|
||||||
@ -469,7 +468,7 @@ func file_mail_mail_msg_proto_init() {
|
|||||||
file_mail_mail_db_proto_init()
|
file_mail_mail_db_proto_init()
|
||||||
if !protoimpl.UnsafeEnabled {
|
if !protoimpl.UnsafeEnabled {
|
||||||
file_mail_mail_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
file_mail_mail_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*Mail_GetList_Req); i {
|
switch v := v.(*MailGetListReq); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -481,7 +480,7 @@ func file_mail_mail_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_mail_mail_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
file_mail_mail_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*Mail_GetList_Resp); i {
|
switch v := v.(*MailGetListResp); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -493,7 +492,7 @@ func file_mail_mail_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_mail_mail_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
file_mail_mail_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*Mail_ReadMail_Req); i {
|
switch v := v.(*MailReadMailReq); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -505,7 +504,7 @@ func file_mail_mail_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_mail_mail_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
file_mail_mail_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*Mail_ReadMail_Resp); i {
|
switch v := v.(*MailReadMailResp); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -517,7 +516,7 @@ func file_mail_mail_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_mail_mail_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
file_mail_mail_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*Mail_GetUserMailAttachment_Req); i {
|
switch v := v.(*MailGetUserMailAttachmentReq); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -529,7 +528,7 @@ func file_mail_mail_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_mail_mail_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
file_mail_mail_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*Mail_GetUserMailAttachment_Resp); i {
|
switch v := v.(*MailGetUserMailAttachmentResp); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -541,7 +540,7 @@ func file_mail_mail_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_mail_mail_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
file_mail_mail_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*Mail_DelMail_Req); i {
|
switch v := v.(*MailDelMailReq); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -553,7 +552,7 @@ func file_mail_mail_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_mail_mail_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
file_mail_mail_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*Mail_DelMail_Resp); i {
|
switch v := v.(*MailDelMailResp); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -11,7 +11,7 @@ message MailAttachment { // 附件
|
|||||||
uint32 ItemCount = 2; // 数量
|
uint32 ItemCount = 2; // 数量
|
||||||
}
|
}
|
||||||
|
|
||||||
message DB_MailData {
|
message DBMailData {
|
||||||
string ObjId = 1; // @go_tags(`bson:"_id"`) ID
|
string ObjId = 1; // @go_tags(`bson:"_id"`) ID
|
||||||
string Uid = 2;
|
string Uid = 2;
|
||||||
string Title = 3; // 邮件标题
|
string Title = 3; // 邮件标题
|
||||||
|
@ -2,38 +2,38 @@ syntax = "proto3";
|
|||||||
option go_package = ".;pb";
|
option go_package = ".;pb";
|
||||||
import "mail/mail_db.proto";
|
import "mail/mail_db.proto";
|
||||||
|
|
||||||
message Mail_GetList_Req {
|
message MailGetListReq {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询邮件信息
|
// 查询邮件信息
|
||||||
message Mail_GetList_Resp {
|
message MailGetListResp {
|
||||||
repeated DB_MailData Mails = 1;
|
repeated DBMailData Mails = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查看邮件
|
// 查看邮件
|
||||||
message Mail_ReadMail_Req {
|
message MailReadMailReq {
|
||||||
string ObjID = 1;
|
string ObjID = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Mail_ReadMail_Resp {
|
message MailReadMailResp {
|
||||||
DB_MailData Mail = 1;
|
DBMailData Mail = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 领取附件
|
// 领取附件
|
||||||
message Mail_GetUserMailAttachment_Req {
|
message MailGetUserMailAttachmentReq {
|
||||||
string ObjID = 1;
|
string ObjID = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Mail_GetUserMailAttachment_Resp {
|
message MailGetUserMailAttachmentResp {
|
||||||
DB_MailData Mail = 1;
|
DBMailData Mail = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除某个邮件
|
// 删除某个邮件
|
||||||
message Mail_DelMail_Req {
|
message MailDelMailReq {
|
||||||
string ObjID = 1;
|
string ObjID = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Mail_DelMail_Resp {
|
message MailDelMailResp {
|
||||||
repeated DB_MailData Mail = 1;
|
repeated DBMailData Mail = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user