协议名称修改

This commit is contained in:
meixiongfeng 2022-06-29 10:39:29 +08:00
parent 9c697977da
commit f5c6ab50cd
12 changed files with 229 additions and 199 deletions

View File

@ -58,8 +58,12 @@ func (this *apiComp) StrengthenUpSkill(session comm.IUserSession, agrs map[strin
}
}()
var (
tagHero int32 // 操作的英雄configid
tagHero int32 // 操作的英雄configid
tmpUpSkillID []int32 // 即将要升级的技能id
//probability []int32 // 即将升级技能的权重
)
tmpUpSkillID = make([]int32, 0)
//probability = make([]int32, 0)
tagHero = agrs["heroid"].(int32)
log.Debugf("英雄:%d 技能升级", tagHero)
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() {
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
}

View File

@ -16,6 +16,7 @@ const (
hero_levelup = "game_herolevelup.json" //英雄等级基础属性
hero_exp = "game_heroexp.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_exp: cfg.NewGame_heroExp,
hero_skillup: cfg.NewGame_heroSkillLevel,
game_skillatk: cfg.NewGame_skillAtk,
})
return
@ -272,3 +274,15 @@ func (this *configureComp) GetHeroSkillUpConfig() (configure *cfg.Game_heroSkill
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
}

View File

@ -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
}
// 删除邮件
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
mailinfo := make([]*pb.DB_MailData, 0)
mailinfo := make([]*pb.DBMailData, 0)
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() == "" {
code = pb.ErrorCode_NoLogin

View File

@ -5,18 +5,18 @@ import (
"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
}
// 领取附件
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 (
mail *pb.DB_MailData
mail *pb.DBMailData
)
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() == "" {
code = pb.ErrorCode_NoLogin

View File

@ -6,17 +6,17 @@ import (
"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
}
// 查看所有邮件信息
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
mailinfo := make([]*pb.DB_MailData, 0)
mailinfo := make([]*pb.DBMailData, 0)
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() == "" {
code = pb.ErrorCode_NoLogin

View File

@ -5,18 +5,18 @@ import (
"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
}
// 查看某一封邮件
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 (
err error
mail *pb.DB_MailData
mail *pb.DBMailData
)
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() == "" {
code = pb.ErrorCode_NoLogin

View File

@ -32,11 +32,11 @@ func (this *modelMail) Init(service core.IService, module core.IModule, comp cor
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 {
for _data.Next(context.TODO()) {
temp := &pb.DB_MailData{}
temp := &pb.DBMailData{}
if err = _data.Decode(temp); err == nil {
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.Check = false
@ -60,7 +60,7 @@ func (this *modelMail) Mail_InsertUserMail(mail *pb.DB_MailData) (err error) {
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(
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) {
obj := this.DB.FindOne(DB_MailTable, bson.M{"_id": objId})
var nd *pb.DB_MailData
var nd *pb.DBMailData
err = obj.Decode(&nd)
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 {
var nd *pb.DB_MailData
var nd *pb.DBMailData
err := this.DB.FindOne(DB_MailTable, bson.M{"_id": objId}).Decode(nd)
if err != nil {
return false
@ -111,7 +111,7 @@ func (this *modelMail) Mail_UpdateMailAttachmentState(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)
if err != nil {
return false

View File

@ -41,7 +41,7 @@ func (this *Mail) OnInstallComp() {
}
func (this *Mail) CreateNewMail(uId string) {
mail := &pb.DB_MailData{
mail := &pb.DBMailData{
ObjId: primitive.NewObjectID().Hex(),
Uid: uId,
Title: "系统邮件",

View File

@ -75,7 +75,7 @@ func (x *MailAttachment) GetItemCount() uint32 {
return 0
}
type DB_MailData struct {
type DBMailData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@ -91,8 +91,8 @@ type DB_MailData struct {
Items []*MailAttachment `protobuf:"bytes,9,rep,name=Items,proto3" json:"Items"` // 附件
}
func (x *DB_MailData) Reset() {
*x = DB_MailData{}
func (x *DBMailData) Reset() {
*x = DBMailData{}
if protoimpl.UnsafeEnabled {
mi := &file_mail_mail_db_proto_msgTypes[1]
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)
}
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]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -118,68 +118,68 @@ func (x *DB_MailData) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use DB_MailData.ProtoReflect.Descriptor instead.
func (*DB_MailData) Descriptor() ([]byte, []int) {
// Deprecated: Use DBMailData.ProtoReflect.Descriptor instead.
func (*DBMailData) Descriptor() ([]byte, []int) {
return file_mail_mail_db_proto_rawDescGZIP(), []int{1}
}
func (x *DB_MailData) GetObjId() string {
func (x *DBMailData) GetObjId() string {
if x != nil {
return x.ObjId
}
return ""
}
func (x *DB_MailData) GetUid() string {
func (x *DBMailData) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *DB_MailData) GetTitle() string {
func (x *DBMailData) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *DB_MailData) GetContex() string {
func (x *DBMailData) GetContex() string {
if x != nil {
return x.Contex
}
return ""
}
func (x *DB_MailData) GetCreateTime() uint64 {
func (x *DBMailData) GetCreateTime() uint64 {
if x != nil {
return x.CreateTime
}
return 0
}
func (x *DB_MailData) GetDueTime() uint64 {
func (x *DBMailData) GetDueTime() uint64 {
if x != nil {
return x.DueTime
}
return 0
}
func (x *DB_MailData) GetCheck() bool {
func (x *DBMailData) GetCheck() bool {
if x != nil {
return x.Check
}
return false
}
func (x *DB_MailData) GetReward() bool {
func (x *DBMailData) GetReward() bool {
if x != nil {
return x.Reward
}
return false
}
func (x *DB_MailData) GetItems() []*MailAttachment {
func (x *DBMailData) GetItems() []*MailAttachment {
if x != nil {
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,
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,
0x0d, 0x52, 0x09, 0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xf2, 0x01, 0x0a,
0x0b, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05,
0x4f, 0x62, 0x6a, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a,
0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x03, 0x55, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6f,
0x6e, 0x74, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x6f, 0x6e, 0x74,
0x65, 0x78, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,
0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69,
0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20,
0x01, 0x28, 0x04, 0x52, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
0x43, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x43, 0x68, 0x65,
0x63, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01,
0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x25, 0x0a, 0x05, 0x49, 0x74,
0x65, 0x6d, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x4d, 0x61, 0x69, 0x6c,
0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d,
0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
0x0d, 0x52, 0x09, 0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xf1, 0x01, 0x0a,
0x0a, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x4f,
0x62, 0x6a, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49,
0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
0x55, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
0x74, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x6f, 0x6e, 0x74, 0x65,
0x78, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18,
0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d,
0x65, 0x12, 0x18, 0x0a, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01,
0x28, 0x04, 0x52, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x43,
0x68, 0x65, 0x63, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x43, 0x68, 0x65, 0x63,
0x6b, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
0x08, 0x52, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x25, 0x0a, 0x05, 0x49, 0x74, 0x65,
0x6d, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x4d, 0x61, 0x69, 0x6c, 0x41,
0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73,
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
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_goTypes = []interface{}{
(*MailAttachment)(nil), // 0: MailAttachment
(*DB_MailData)(nil), // 1: DB_MailData
(*DBMailData)(nil), // 1: DBMailData
}
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 input_type
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{} {
switch v := v.(*DB_MailData); i {
switch v := v.(*DBMailData); i {
case 0:
return &v.state
case 1:

View File

@ -20,14 +20,14 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Mail_GetList_Req struct {
type MailGetListReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *Mail_GetList_Req) Reset() {
*x = Mail_GetList_Req{}
func (x *MailGetListReq) Reset() {
*x = MailGetListReq{}
if protoimpl.UnsafeEnabled {
mi := &file_mail_mail_msg_proto_msgTypes[0]
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)
}
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]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -53,22 +53,22 @@ func (x *Mail_GetList_Req) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use Mail_GetList_Req.ProtoReflect.Descriptor instead.
func (*Mail_GetList_Req) Descriptor() ([]byte, []int) {
// Deprecated: Use MailGetListReq.ProtoReflect.Descriptor instead.
func (*MailGetListReq) Descriptor() ([]byte, []int) {
return file_mail_mail_msg_proto_rawDescGZIP(), []int{0}
}
// 查询邮件信息
type Mail_GetList_Resp struct {
type MailGetListResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
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() {
*x = Mail_GetList_Resp{}
func (x *MailGetListResp) Reset() {
*x = MailGetListResp{}
if protoimpl.UnsafeEnabled {
mi := &file_mail_mail_msg_proto_msgTypes[1]
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)
}
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]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -94,12 +94,12 @@ func (x *Mail_GetList_Resp) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use Mail_GetList_Resp.ProtoReflect.Descriptor instead.
func (*Mail_GetList_Resp) Descriptor() ([]byte, []int) {
// Deprecated: Use MailGetListResp.ProtoReflect.Descriptor instead.
func (*MailGetListResp) Descriptor() ([]byte, []int) {
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 {
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
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@ -115,8 +115,8 @@ type Mail_ReadMail_Req struct {
ObjID string `protobuf:"bytes,1,opt,name=ObjID,proto3" json:"ObjID"`
}
func (x *Mail_ReadMail_Req) Reset() {
*x = Mail_ReadMail_Req{}
func (x *MailReadMailReq) Reset() {
*x = MailReadMailReq{}
if protoimpl.UnsafeEnabled {
mi := &file_mail_mail_msg_proto_msgTypes[2]
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)
}
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]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -142,28 +142,28 @@ func (x *Mail_ReadMail_Req) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use Mail_ReadMail_Req.ProtoReflect.Descriptor instead.
func (*Mail_ReadMail_Req) Descriptor() ([]byte, []int) {
// Deprecated: Use MailReadMailReq.ProtoReflect.Descriptor instead.
func (*MailReadMailReq) Descriptor() ([]byte, []int) {
return file_mail_mail_msg_proto_rawDescGZIP(), []int{2}
}
func (x *Mail_ReadMail_Req) GetObjID() string {
func (x *MailReadMailReq) GetObjID() string {
if x != nil {
return x.ObjID
}
return ""
}
type Mail_ReadMail_Resp struct {
type MailReadMailResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
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() {
*x = Mail_ReadMail_Resp{}
func (x *MailReadMailResp) Reset() {
*x = MailReadMailResp{}
if protoimpl.UnsafeEnabled {
mi := &file_mail_mail_msg_proto_msgTypes[3]
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)
}
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]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -189,12 +189,12 @@ func (x *Mail_ReadMail_Resp) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use Mail_ReadMail_Resp.ProtoReflect.Descriptor instead.
func (*Mail_ReadMail_Resp) Descriptor() ([]byte, []int) {
// Deprecated: Use MailReadMailResp.ProtoReflect.Descriptor instead.
func (*MailReadMailResp) Descriptor() ([]byte, []int) {
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 {
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
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@ -210,8 +210,8 @@ type Mail_GetUserMailAttachment_Req struct {
ObjID string `protobuf:"bytes,1,opt,name=ObjID,proto3" json:"ObjID"`
}
func (x *Mail_GetUserMailAttachment_Req) Reset() {
*x = Mail_GetUserMailAttachment_Req{}
func (x *MailGetUserMailAttachmentReq) Reset() {
*x = MailGetUserMailAttachmentReq{}
if protoimpl.UnsafeEnabled {
mi := &file_mail_mail_msg_proto_msgTypes[4]
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)
}
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]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -237,28 +237,28 @@ func (x *Mail_GetUserMailAttachment_Req) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use Mail_GetUserMailAttachment_Req.ProtoReflect.Descriptor instead.
func (*Mail_GetUserMailAttachment_Req) Descriptor() ([]byte, []int) {
// Deprecated: Use MailGetUserMailAttachmentReq.ProtoReflect.Descriptor instead.
func (*MailGetUserMailAttachmentReq) Descriptor() ([]byte, []int) {
return file_mail_mail_msg_proto_rawDescGZIP(), []int{4}
}
func (x *Mail_GetUserMailAttachment_Req) GetObjID() string {
func (x *MailGetUserMailAttachmentReq) GetObjID() string {
if x != nil {
return x.ObjID
}
return ""
}
type Mail_GetUserMailAttachment_Resp struct {
type MailGetUserMailAttachmentResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
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() {
*x = Mail_GetUserMailAttachment_Resp{}
func (x *MailGetUserMailAttachmentResp) Reset() {
*x = MailGetUserMailAttachmentResp{}
if protoimpl.UnsafeEnabled {
mi := &file_mail_mail_msg_proto_msgTypes[5]
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)
}
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]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -284,12 +284,12 @@ func (x *Mail_GetUserMailAttachment_Resp) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use Mail_GetUserMailAttachment_Resp.ProtoReflect.Descriptor instead.
func (*Mail_GetUserMailAttachment_Resp) Descriptor() ([]byte, []int) {
// Deprecated: Use MailGetUserMailAttachmentResp.ProtoReflect.Descriptor instead.
func (*MailGetUserMailAttachmentResp) Descriptor() ([]byte, []int) {
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 {
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
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@ -305,8 +305,8 @@ type Mail_DelMail_Req struct {
ObjID string `protobuf:"bytes,1,opt,name=ObjID,proto3" json:"ObjID"`
}
func (x *Mail_DelMail_Req) Reset() {
*x = Mail_DelMail_Req{}
func (x *MailDelMailReq) Reset() {
*x = MailDelMailReq{}
if protoimpl.UnsafeEnabled {
mi := &file_mail_mail_msg_proto_msgTypes[6]
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)
}
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]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -332,28 +332,28 @@ func (x *Mail_DelMail_Req) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use Mail_DelMail_Req.ProtoReflect.Descriptor instead.
func (*Mail_DelMail_Req) Descriptor() ([]byte, []int) {
// Deprecated: Use MailDelMailReq.ProtoReflect.Descriptor instead.
func (*MailDelMailReq) Descriptor() ([]byte, []int) {
return file_mail_mail_msg_proto_rawDescGZIP(), []int{6}
}
func (x *Mail_DelMail_Req) GetObjID() string {
func (x *MailDelMailReq) GetObjID() string {
if x != nil {
return x.ObjID
}
return ""
}
type Mail_DelMail_Resp struct {
type MailDelMailResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
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() {
*x = Mail_DelMail_Resp{}
func (x *MailDelMailResp) Reset() {
*x = MailDelMailResp{}
if protoimpl.UnsafeEnabled {
mi := &file_mail_mail_msg_proto_msgTypes[7]
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)
}
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]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -379,12 +379,12 @@ func (x *Mail_DelMail_Resp) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use Mail_DelMail_Resp.ProtoReflect.Descriptor instead.
func (*Mail_DelMail_Resp) Descriptor() ([]byte, []int) {
// Deprecated: Use MailDelMailResp.ProtoReflect.Descriptor instead.
func (*MailDelMailResp) Descriptor() ([]byte, []int) {
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 {
return x.Mail
}
@ -396,33 +396,32 @@ var File_mail_mail_msg_proto protoreflect.FileDescriptor
var file_mail_mail_msg_proto_rawDesc = []byte{
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,
0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x12, 0x0a, 0x10, 0x4d, 0x61, 0x69,
0x6c, 0x5f, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x5f, 0x52, 0x65, 0x71, 0x22, 0x37, 0x0a,
0x11, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x5f, 0x52, 0x65,
0x73, 0x70, 0x12, 0x22, 0x0a, 0x05, 0x4d, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52,
0x05, 0x4d, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x29, 0x0a, 0x11, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x52,
0x65, 0x61, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f,
0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49,
0x44, 0x22, 0x36, 0x0a, 0x12, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x52, 0x65, 0x61, 0x64, 0x4d, 0x61,
0x69, 0x6c, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44,
0x61, 0x74, 0x61, 0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x22, 0x36, 0x0a, 0x1e, 0x4d, 0x61, 0x69,
0x6c, 0x5f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74,
0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f,
0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49,
0x44, 0x22, 0x43, 0x0a, 0x1f, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,
0x72, 0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x5f,
0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61,
0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x22, 0x28, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x44,
0x65, 0x6c, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x62,
0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44,
0x22, 0x35, 0x0a, 0x11, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x44, 0x65, 0x6c, 0x4d, 0x61, 0x69, 0x6c,
0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74,
0x61, 0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x10, 0x0a, 0x0e, 0x4d, 0x61, 0x69,
0x6c, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x34, 0x0a, 0x0f, 0x4d,
0x61, 0x69, 0x6c, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21,
0x0a, 0x05, 0x4d, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e,
0x44, 0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x4d, 0x61, 0x69, 0x6c,
0x73, 0x22, 0x27, 0x0a, 0x0f, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x69,
0x6c, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x22, 0x33, 0x0a, 0x10, 0x4d, 0x61,
0x69, 0x6c, 0x52, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f,
0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44,
0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x22,
0x34, 0x0a, 0x1c, 0x4d, 0x61, 0x69, 0x6c, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61,
0x69, 0x6c, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12,
0x14, 0x0a, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x4f, 0x62, 0x6a, 0x49, 0x44, 0x22, 0x40, 0x0a, 0x1d, 0x4d, 0x61, 0x69, 0x6c, 0x47, 0x65, 0x74,
0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65,
0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74,
0x61, 0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x22, 0x26, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x44,
0x65, 0x6c, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x62, 0x6a,
0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x22,
0x32, 0x0a, 0x0f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x65, 0x6c, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65,
0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x4d,
0x61, 0x69, 0x6c, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
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_goTypes = []interface{}{
(*Mail_GetList_Req)(nil), // 0: Mail_GetList_Req
(*Mail_GetList_Resp)(nil), // 1: Mail_GetList_Resp
(*Mail_ReadMail_Req)(nil), // 2: Mail_ReadMail_Req
(*Mail_ReadMail_Resp)(nil), // 3: Mail_ReadMail_Resp
(*Mail_GetUserMailAttachment_Req)(nil), // 4: Mail_GetUserMailAttachment_Req
(*Mail_GetUserMailAttachment_Resp)(nil), // 5: Mail_GetUserMailAttachment_Resp
(*Mail_DelMail_Req)(nil), // 6: Mail_DelMail_Req
(*Mail_DelMail_Resp)(nil), // 7: Mail_DelMail_Resp
(*DB_MailData)(nil), // 8: DB_MailData
(*MailGetListReq)(nil), // 0: MailGetListReq
(*MailGetListResp)(nil), // 1: MailGetListResp
(*MailReadMailReq)(nil), // 2: MailReadMailReq
(*MailReadMailResp)(nil), // 3: MailReadMailResp
(*MailGetUserMailAttachmentReq)(nil), // 4: MailGetUserMailAttachmentReq
(*MailGetUserMailAttachmentResp)(nil), // 5: MailGetUserMailAttachmentResp
(*MailDelMailReq)(nil), // 6: MailDelMailReq
(*MailDelMailResp)(nil), // 7: MailDelMailResp
(*DBMailData)(nil), // 8: DBMailData
}
var file_mail_mail_msg_proto_depIdxs = []int32{
8, // 0: Mail_GetList_Resp.Mails:type_name -> DB_MailData
8, // 1: Mail_ReadMail_Resp.Mail:type_name -> DB_MailData
8, // 2: Mail_GetUserMailAttachment_Resp.Mail:type_name -> DB_MailData
8, // 3: Mail_DelMail_Resp.Mail:type_name -> DB_MailData
8, // 0: MailGetListResp.Mails:type_name -> DBMailData
8, // 1: MailReadMailResp.Mail:type_name -> DBMailData
8, // 2: MailGetUserMailAttachmentResp.Mail:type_name -> DBMailData
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 input_type
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()
if !protoimpl.UnsafeEnabled {
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:
return &v.state
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{} {
switch v := v.(*Mail_GetList_Resp); i {
switch v := v.(*MailGetListResp); i {
case 0:
return &v.state
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{} {
switch v := v.(*Mail_ReadMail_Req); i {
switch v := v.(*MailReadMailReq); i {
case 0:
return &v.state
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{} {
switch v := v.(*Mail_ReadMail_Resp); i {
switch v := v.(*MailReadMailResp); i {
case 0:
return &v.state
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{} {
switch v := v.(*Mail_GetUserMailAttachment_Req); i {
switch v := v.(*MailGetUserMailAttachmentReq); i {
case 0:
return &v.state
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{} {
switch v := v.(*Mail_GetUserMailAttachment_Resp); i {
switch v := v.(*MailGetUserMailAttachmentResp); i {
case 0:
return &v.state
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{} {
switch v := v.(*Mail_DelMail_Req); i {
switch v := v.(*MailDelMailReq); i {
case 0:
return &v.state
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{} {
switch v := v.(*Mail_DelMail_Resp); i {
switch v := v.(*MailDelMailResp); i {
case 0:
return &v.state
case 1:

View File

@ -11,7 +11,7 @@ message MailAttachment { // 附件
uint32 ItemCount = 2; //
}
message DB_MailData {
message DBMailData {
string ObjId = 1; // @go_tags(`bson:"_id"`) ID
string Uid = 2;
string Title = 3; //

View File

@ -2,38 +2,38 @@ syntax = "proto3";
option go_package = ".;pb";
import "mail/mail_db.proto";
message Mail_GetList_Req {
message MailGetListReq {
}
//
message Mail_GetList_Resp {
repeated DB_MailData Mails = 1;
message MailGetListResp {
repeated DBMailData Mails = 1;
}
//
message Mail_ReadMail_Req {
message MailReadMailReq {
string ObjID = 1;
}
message Mail_ReadMail_Resp {
DB_MailData Mail = 1;
message MailReadMailResp {
DBMailData Mail = 1;
}
//
message Mail_GetUserMailAttachment_Req {
message MailGetUserMailAttachmentReq {
string ObjID = 1;
}
message Mail_GetUserMailAttachment_Resp {
DB_MailData Mail = 1;
message MailGetUserMailAttachmentResp {
DBMailData Mail = 1;
}
//
message Mail_DelMail_Req {
message MailDelMailReq {
string ObjID = 1;
}
message Mail_DelMail_Resp {
repeated DB_MailData Mail = 1;
message MailDelMailResp {
repeated DBMailData Mail = 1;
}