上传协议规范格式

This commit is contained in:
meixiongfeng 2022-06-16 16:17:40 +08:00
parent 58555cd808
commit c3ae56797a
6 changed files with 136 additions and 135 deletions

View File

@ -7,16 +7,16 @@ import (
) )
//参数校验 //参数校验
func (this *Api_Comp) DelUserMailReq_Check(session comm.IUserSession, req *pb.DelUserMailReq) (result map[string]interface{}, code pb.ErrorCode) { func (this *Api_Comp) DelUserMailReq_Check(session comm.IUserSession, req *pb.Mail_DelMail_Req) (result map[string]interface{}, code pb.ErrorCode) {
return return
} }
// 删除邮件 // 删除邮件
func (this *Api_Comp) DelUserMailReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.DelUserMailReq) (code pb.ErrorCode) { func (this *Api_Comp) DelUserMailReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_DelMail_Req) (code pb.ErrorCode) {
var err error var err error
mailinfo := make([]*pb.DB_MailData, 0) mailinfo := make([]*pb.DB_MailData, 0)
defer func() { defer func() {
session.SendMsg(string(this.module.GetType()), DelUserMailResp, &pb.DelUserMailResp{Mail: mailinfo}) session.SendMsg(string(this.module.GetType()), DelUserMailResp, &pb.Mail_DelMail_Resp{Mail: mailinfo})
}() }()
if session.GetUserId() == "" { if session.GetUserId() == "" {
code = pb.ErrorCode_NoLogin code = pb.ErrorCode_NoLogin

View File

@ -5,18 +5,18 @@ import (
"go_dreamfactory/pb" "go_dreamfactory/pb"
) )
func (this *Api_Comp) GetUserMailAttachmentReq_Check(session comm.IUserSession, req *pb.GetUserMailAttachmentReq) (result map[string]interface{}, code comm.ErrorCode) { func (this *Api_Comp) Mail_GetUserMailAttachment_Req_Check(session comm.IUserSession, req *pb.Mail_GetUserMailAttachment_Req) (result map[string]interface{}, code comm.ErrorCode) {
return return
} }
// 领取附件 // 领取附件
func (this *Api_Comp) GetUserMailAttachmentReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.GetUserMailAttachmentReq) (code pb.ErrorCode) { func (this *Api_Comp) Mail_GetUserMailAttachment_Req(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_GetUserMailAttachment_Req) (code pb.ErrorCode) {
var ( var (
mail *pb.DB_MailData mail *pb.DB_MailData
) )
defer func() { defer func() {
session.SendMsg(string(this.module.GetType()), GetUserMailAttachmentResp, &pb.GetUserMailAttachmentResp{Mail: mail}) session.SendMsg(string(this.module.GetType()), GetUserMailAttachmentResp, &pb.Mail_GetUserMailAttachment_Resp{Mail: mail})
}() }()
if session.GetUserId() == "" { if session.GetUserId() == "" {
code = pb.ErrorCode_NoLogin code = pb.ErrorCode_NoLogin

View File

@ -6,24 +6,24 @@ import (
"go_dreamfactory/pb" "go_dreamfactory/pb"
) )
func (this *Api_Comp) QueryUserMailReq_Check(session comm.IUserSession, req *pb.QueryUserMailReq) (result map[string]interface{}, code comm.ErrorCode) { func (this *Api_Comp) Mail_GetList_Req_Check(session comm.IUserSession, req *pb.Mail_GetList_Req) (result map[string]interface{}, code comm.ErrorCode) {
return return
} }
// 查看所有邮件信息 // 查看所有邮件信息
func (this *Api_Comp) QueryUserMailReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.QueryUserMailReq) (code pb.ErrorCode) { func (this *Api_Comp) Mail_GetList_Req(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_GetList_Req) (code pb.ErrorCode) {
var err error var err error
mailinfo := make([]*pb.DB_MailData, 0) mailinfo := make([]*pb.DB_MailData, 0)
defer func() { defer func() {
session.SendMsg(string(this.module.GetType()), QueryUserMailResp, &pb.QueryUserMailResp{Mails: mailinfo}) session.SendMsg(string(this.module.GetType()), QueryUserMailResp, &pb.Mail_GetList_Resp{Mails: mailinfo})
}() }()
if session.GetUserId() == "" { if session.GetUserId() == "" {
code = pb.ErrorCode_NoLogin code = pb.ErrorCode_NoLogin
return return
} }
if mailinfo, err = this.module.db_comp.Mail_QueryUserMail(session.GetUserId()); err != nil { if mailinfo, err = this.module.db_comp.Mail_QueryUserMail(session.GetUserId()); err != nil {
log.Errorf("QueryUserMailResp err:%v", err) log.Errorf("Mail_GetList_Resp err:%v", err)
code = pb.ErrorCode_CacheReadError code = pb.ErrorCode_CacheReadError
return return
} }

View File

@ -5,18 +5,18 @@ import (
"go_dreamfactory/pb" "go_dreamfactory/pb"
) )
func (this *Api_Comp) ReadUserMailReq_Check(session comm.IUserSession, req *pb.ReadUserMailReq) (result map[string]interface{}, code comm.ErrorCode) { func (this *Api_Comp) Mail_ReadMail_Req_Check(session comm.IUserSession, req *pb.Mail_ReadMail_Req) (result map[string]interface{}, code comm.ErrorCode) {
return return
} }
// 查看某一封邮件 // 查看某一封邮件
func (this *Api_Comp) ReadUserMailReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.ReadUserMailReq) (code pb.ErrorCode) { func (this *Api_Comp) Mail_ReadMail_Req(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_ReadMail_Req) (code pb.ErrorCode) {
var ( var (
err error err error
mail *pb.DB_MailData mail *pb.DB_MailData
) )
defer func() { defer func() {
session.SendMsg(string(this.module.GetType()), ReadUserMailResp, &pb.ReadUserMailResp{Mail: mail}) session.SendMsg(string(this.module.GetType()), ReadUserMailResp, &pb.Mail_ReadMail_Resp{Mail: mail})
}() }()
if session.GetUserId() == "" { if session.GetUserId() == "" {
code = pb.ErrorCode_NoLogin code = pb.ErrorCode_NoLogin

View File

@ -20,14 +20,14 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
) )
type QueryUserMailReq struct { type Mail_GetList_Req struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
} }
func (x *QueryUserMailReq) Reset() { func (x *Mail_GetList_Req) Reset() {
*x = QueryUserMailReq{} *x = Mail_GetList_Req{}
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 *QueryUserMailReq) Reset() {
} }
} }
func (x *QueryUserMailReq) String() string { func (x *Mail_GetList_Req) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*QueryUserMailReq) ProtoMessage() {} func (*Mail_GetList_Req) ProtoMessage() {}
func (x *QueryUserMailReq) ProtoReflect() protoreflect.Message { func (x *Mail_GetList_Req) 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,13 +53,13 @@ func (x *QueryUserMailReq) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use QueryUserMailReq.ProtoReflect.Descriptor instead. // Deprecated: Use Mail_GetList_Req.ProtoReflect.Descriptor instead.
func (*QueryUserMailReq) Descriptor() ([]byte, []int) { func (*Mail_GetList_Req) Descriptor() ([]byte, []int) {
return file_mail_mail_msg_proto_rawDescGZIP(), []int{0} return file_mail_mail_msg_proto_rawDescGZIP(), []int{0}
} }
// 查询邮件信息 // 查询邮件信息
type QueryUserMailResp struct { type Mail_GetList_Resp struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
@ -67,8 +67,8 @@ type QueryUserMailResp struct {
Mails []*DB_MailData `protobuf:"bytes,1,rep,name=Mails,proto3" json:"Mails"` Mails []*DB_MailData `protobuf:"bytes,1,rep,name=Mails,proto3" json:"Mails"`
} }
func (x *QueryUserMailResp) Reset() { func (x *Mail_GetList_Resp) Reset() {
*x = QueryUserMailResp{} *x = Mail_GetList_Resp{}
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 *QueryUserMailResp) Reset() {
} }
} }
func (x *QueryUserMailResp) String() string { func (x *Mail_GetList_Resp) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*QueryUserMailResp) ProtoMessage() {} func (*Mail_GetList_Resp) ProtoMessage() {}
func (x *QueryUserMailResp) ProtoReflect() protoreflect.Message { func (x *Mail_GetList_Resp) 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 *QueryUserMailResp) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use QueryUserMailResp.ProtoReflect.Descriptor instead. // Deprecated: Use Mail_GetList_Resp.ProtoReflect.Descriptor instead.
func (*QueryUserMailResp) Descriptor() ([]byte, []int) { func (*Mail_GetList_Resp) Descriptor() ([]byte, []int) {
return file_mail_mail_msg_proto_rawDescGZIP(), []int{1} return file_mail_mail_msg_proto_rawDescGZIP(), []int{1}
} }
func (x *QueryUserMailResp) GetMails() []*DB_MailData { func (x *Mail_GetList_Resp) GetMails() []*DB_MailData {
if x != nil { if x != nil {
return x.Mails return x.Mails
} }
@ -107,7 +107,7 @@ func (x *QueryUserMailResp) GetMails() []*DB_MailData {
} }
// 查看邮件 // 查看邮件
type ReadUserMailReq struct { type Mail_ReadMail_Req struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
@ -115,8 +115,8 @@ type ReadUserMailReq 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 *ReadUserMailReq) Reset() { func (x *Mail_ReadMail_Req) Reset() {
*x = ReadUserMailReq{} *x = Mail_ReadMail_Req{}
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 *ReadUserMailReq) Reset() {
} }
} }
func (x *ReadUserMailReq) String() string { func (x *Mail_ReadMail_Req) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*ReadUserMailReq) ProtoMessage() {} func (*Mail_ReadMail_Req) ProtoMessage() {}
func (x *ReadUserMailReq) ProtoReflect() protoreflect.Message { func (x *Mail_ReadMail_Req) 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,19 +142,19 @@ func (x *ReadUserMailReq) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use ReadUserMailReq.ProtoReflect.Descriptor instead. // Deprecated: Use Mail_ReadMail_Req.ProtoReflect.Descriptor instead.
func (*ReadUserMailReq) Descriptor() ([]byte, []int) { func (*Mail_ReadMail_Req) Descriptor() ([]byte, []int) {
return file_mail_mail_msg_proto_rawDescGZIP(), []int{2} return file_mail_mail_msg_proto_rawDescGZIP(), []int{2}
} }
func (x *ReadUserMailReq) GetObjID() string { func (x *Mail_ReadMail_Req) GetObjID() string {
if x != nil { if x != nil {
return x.ObjID return x.ObjID
} }
return "" return ""
} }
type ReadUserMailResp struct { type Mail_ReadMail_Resp struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
@ -162,8 +162,8 @@ type ReadUserMailResp struct {
Mail *DB_MailData `protobuf:"bytes,1,opt,name=Mail,proto3" json:"Mail"` Mail *DB_MailData `protobuf:"bytes,1,opt,name=Mail,proto3" json:"Mail"`
} }
func (x *ReadUserMailResp) Reset() { func (x *Mail_ReadMail_Resp) Reset() {
*x = ReadUserMailResp{} *x = Mail_ReadMail_Resp{}
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 *ReadUserMailResp) Reset() {
} }
} }
func (x *ReadUserMailResp) String() string { func (x *Mail_ReadMail_Resp) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*ReadUserMailResp) ProtoMessage() {} func (*Mail_ReadMail_Resp) ProtoMessage() {}
func (x *ReadUserMailResp) ProtoReflect() protoreflect.Message { func (x *Mail_ReadMail_Resp) 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 *ReadUserMailResp) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use ReadUserMailResp.ProtoReflect.Descriptor instead. // Deprecated: Use Mail_ReadMail_Resp.ProtoReflect.Descriptor instead.
func (*ReadUserMailResp) Descriptor() ([]byte, []int) { func (*Mail_ReadMail_Resp) Descriptor() ([]byte, []int) {
return file_mail_mail_msg_proto_rawDescGZIP(), []int{3} return file_mail_mail_msg_proto_rawDescGZIP(), []int{3}
} }
func (x *ReadUserMailResp) GetMail() *DB_MailData { func (x *Mail_ReadMail_Resp) GetMail() *DB_MailData {
if x != nil { if x != nil {
return x.Mail return x.Mail
} }
@ -202,7 +202,7 @@ func (x *ReadUserMailResp) GetMail() *DB_MailData {
} }
// 领取附件 // 领取附件
type GetUserMailAttachmentReq struct { type Mail_GetUserMailAttachment_Req struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
@ -210,8 +210,8 @@ type GetUserMailAttachmentReq 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 *GetUserMailAttachmentReq) Reset() { func (x *Mail_GetUserMailAttachment_Req) Reset() {
*x = GetUserMailAttachmentReq{} *x = Mail_GetUserMailAttachment_Req{}
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 *GetUserMailAttachmentReq) Reset() {
} }
} }
func (x *GetUserMailAttachmentReq) String() string { func (x *Mail_GetUserMailAttachment_Req) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*GetUserMailAttachmentReq) ProtoMessage() {} func (*Mail_GetUserMailAttachment_Req) ProtoMessage() {}
func (x *GetUserMailAttachmentReq) ProtoReflect() protoreflect.Message { func (x *Mail_GetUserMailAttachment_Req) 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,19 +237,19 @@ func (x *GetUserMailAttachmentReq) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use GetUserMailAttachmentReq.ProtoReflect.Descriptor instead. // Deprecated: Use Mail_GetUserMailAttachment_Req.ProtoReflect.Descriptor instead.
func (*GetUserMailAttachmentReq) Descriptor() ([]byte, []int) { func (*Mail_GetUserMailAttachment_Req) Descriptor() ([]byte, []int) {
return file_mail_mail_msg_proto_rawDescGZIP(), []int{4} return file_mail_mail_msg_proto_rawDescGZIP(), []int{4}
} }
func (x *GetUserMailAttachmentReq) GetObjID() string { func (x *Mail_GetUserMailAttachment_Req) GetObjID() string {
if x != nil { if x != nil {
return x.ObjID return x.ObjID
} }
return "" return ""
} }
type GetUserMailAttachmentResp struct { type Mail_GetUserMailAttachment_Resp struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
@ -257,8 +257,8 @@ type GetUserMailAttachmentResp struct {
Mail *DB_MailData `protobuf:"bytes,1,opt,name=Mail,proto3" json:"Mail"` Mail *DB_MailData `protobuf:"bytes,1,opt,name=Mail,proto3" json:"Mail"`
} }
func (x *GetUserMailAttachmentResp) Reset() { func (x *Mail_GetUserMailAttachment_Resp) Reset() {
*x = GetUserMailAttachmentResp{} *x = Mail_GetUserMailAttachment_Resp{}
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 *GetUserMailAttachmentResp) Reset() {
} }
} }
func (x *GetUserMailAttachmentResp) String() string { func (x *Mail_GetUserMailAttachment_Resp) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*GetUserMailAttachmentResp) ProtoMessage() {} func (*Mail_GetUserMailAttachment_Resp) ProtoMessage() {}
func (x *GetUserMailAttachmentResp) ProtoReflect() protoreflect.Message { func (x *Mail_GetUserMailAttachment_Resp) 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 *GetUserMailAttachmentResp) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use GetUserMailAttachmentResp.ProtoReflect.Descriptor instead. // Deprecated: Use Mail_GetUserMailAttachment_Resp.ProtoReflect.Descriptor instead.
func (*GetUserMailAttachmentResp) Descriptor() ([]byte, []int) { func (*Mail_GetUserMailAttachment_Resp) Descriptor() ([]byte, []int) {
return file_mail_mail_msg_proto_rawDescGZIP(), []int{5} return file_mail_mail_msg_proto_rawDescGZIP(), []int{5}
} }
func (x *GetUserMailAttachmentResp) GetMail() *DB_MailData { func (x *Mail_GetUserMailAttachment_Resp) GetMail() *DB_MailData {
if x != nil { if x != nil {
return x.Mail return x.Mail
} }
@ -297,7 +297,7 @@ func (x *GetUserMailAttachmentResp) GetMail() *DB_MailData {
} }
// 删除某个邮件 // 删除某个邮件
type DelUserMailReq struct { type Mail_DelMail_Req struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
@ -305,8 +305,8 @@ type DelUserMailReq 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 *DelUserMailReq) Reset() { func (x *Mail_DelMail_Req) Reset() {
*x = DelUserMailReq{} *x = Mail_DelMail_Req{}
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 *DelUserMailReq) Reset() {
} }
} }
func (x *DelUserMailReq) String() string { func (x *Mail_DelMail_Req) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*DelUserMailReq) ProtoMessage() {} func (*Mail_DelMail_Req) ProtoMessage() {}
func (x *DelUserMailReq) ProtoReflect() protoreflect.Message { func (x *Mail_DelMail_Req) 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,19 +332,19 @@ func (x *DelUserMailReq) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use DelUserMailReq.ProtoReflect.Descriptor instead. // Deprecated: Use Mail_DelMail_Req.ProtoReflect.Descriptor instead.
func (*DelUserMailReq) Descriptor() ([]byte, []int) { func (*Mail_DelMail_Req) Descriptor() ([]byte, []int) {
return file_mail_mail_msg_proto_rawDescGZIP(), []int{6} return file_mail_mail_msg_proto_rawDescGZIP(), []int{6}
} }
func (x *DelUserMailReq) GetObjID() string { func (x *Mail_DelMail_Req) GetObjID() string {
if x != nil { if x != nil {
return x.ObjID return x.ObjID
} }
return "" return ""
} }
type DelUserMailResp struct { type Mail_DelMail_Resp struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
@ -352,8 +352,8 @@ type DelUserMailResp struct {
Mail []*DB_MailData `protobuf:"bytes,1,rep,name=Mail,proto3" json:"Mail"` Mail []*DB_MailData `protobuf:"bytes,1,rep,name=Mail,proto3" json:"Mail"`
} }
func (x *DelUserMailResp) Reset() { func (x *Mail_DelMail_Resp) Reset() {
*x = DelUserMailResp{} *x = Mail_DelMail_Resp{}
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 *DelUserMailResp) Reset() {
} }
} }
func (x *DelUserMailResp) String() string { func (x *Mail_DelMail_Resp) String() string {
return protoimpl.X.MessageStringOf(x) return protoimpl.X.MessageStringOf(x)
} }
func (*DelUserMailResp) ProtoMessage() {} func (*Mail_DelMail_Resp) ProtoMessage() {}
func (x *DelUserMailResp) ProtoReflect() protoreflect.Message { func (x *Mail_DelMail_Resp) 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 *DelUserMailResp) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x) return mi.MessageOf(x)
} }
// Deprecated: Use DelUserMailResp.ProtoReflect.Descriptor instead. // Deprecated: Use Mail_DelMail_Resp.ProtoReflect.Descriptor instead.
func (*DelUserMailResp) Descriptor() ([]byte, []int) { func (*Mail_DelMail_Resp) Descriptor() ([]byte, []int) {
return file_mail_mail_msg_proto_rawDescGZIP(), []int{7} return file_mail_mail_msg_proto_rawDescGZIP(), []int{7}
} }
func (x *DelUserMailResp) GetMail() []*DB_MailData { func (x *Mail_DelMail_Resp) GetMail() []*DB_MailData {
if x != nil { if x != nil {
return x.Mail return x.Mail
} }
@ -396,32 +396,33 @@ 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, 0x51, 0x75, 0x65, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x12, 0x0a, 0x10, 0x4d, 0x61, 0x69,
0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x22, 0x37, 0x0a, 0x6c, 0x5f, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x5f, 0x52, 0x65, 0x71, 0x22, 0x37, 0x0a,
0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 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, 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, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52,
0x05, 0x4d, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x27, 0x0a, 0x0f, 0x52, 0x65, 0x61, 0x64, 0x55, 0x73, 0x05, 0x4d, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x29, 0x0a, 0x11, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x52,
0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x62, 0x6a, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f,
0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x22, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49,
0x34, 0x0a, 0x10, 0x52, 0x65, 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x44, 0x22, 0x36, 0x0a, 0x12, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x52, 0x65, 0x61, 0x64, 0x4d, 0x61,
0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x69, 0x6c, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18,
0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44,
0x04, 0x4d, 0x61, 0x69, 0x6c, 0x22, 0x30, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x61, 0x74, 0x61, 0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x22, 0x36, 0x0a, 0x1e, 0x4d, 0x61, 0x69,
0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x5f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74,
0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f,
0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x22, 0x3d, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x55, 0x73, 0x62, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49,
0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 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, 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, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x5f, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61,
0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x22, 0x26, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x55, 0x73, 0x65, 0x52, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x22, 0x28, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x44,
0x72, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x65, 0x6c, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x62,
0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44, 0x22, 0x33, 0x6a, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x44,
0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x22, 0x35, 0x0a, 0x11, 0x4d, 0x61, 0x69, 0x6c, 0x5f, 0x44, 0x65, 0x6c, 0x4d, 0x61, 0x69, 0x6c,
0x70, 0x12, 0x20, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x5f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x4d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20,
0x0c, 0x2e, 0x44, 0x42, 0x5f, 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 (
@ -438,21 +439,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{}{
(*QueryUserMailReq)(nil), // 0: QueryUserMailReq (*Mail_GetList_Req)(nil), // 0: Mail_GetList_Req
(*QueryUserMailResp)(nil), // 1: QueryUserMailResp (*Mail_GetList_Resp)(nil), // 1: Mail_GetList_Resp
(*ReadUserMailReq)(nil), // 2: ReadUserMailReq (*Mail_ReadMail_Req)(nil), // 2: Mail_ReadMail_Req
(*ReadUserMailResp)(nil), // 3: ReadUserMailResp (*Mail_ReadMail_Resp)(nil), // 3: Mail_ReadMail_Resp
(*GetUserMailAttachmentReq)(nil), // 4: GetUserMailAttachmentReq (*Mail_GetUserMailAttachment_Req)(nil), // 4: Mail_GetUserMailAttachment_Req
(*GetUserMailAttachmentResp)(nil), // 5: GetUserMailAttachmentResp (*Mail_GetUserMailAttachment_Resp)(nil), // 5: Mail_GetUserMailAttachment_Resp
(*DelUserMailReq)(nil), // 6: DelUserMailReq (*Mail_DelMail_Req)(nil), // 6: Mail_DelMail_Req
(*DelUserMailResp)(nil), // 7: DelUserMailResp (*Mail_DelMail_Resp)(nil), // 7: Mail_DelMail_Resp
(*DB_MailData)(nil), // 8: DB_MailData (*DB_MailData)(nil), // 8: DB_MailData
} }
var file_mail_mail_msg_proto_depIdxs = []int32{ var file_mail_mail_msg_proto_depIdxs = []int32{
8, // 0: QueryUserMailResp.Mails:type_name -> DB_MailData 8, // 0: Mail_GetList_Resp.Mails:type_name -> DB_MailData
8, // 1: ReadUserMailResp.Mail:type_name -> DB_MailData 8, // 1: Mail_ReadMail_Resp.Mail:type_name -> DB_MailData
8, // 2: GetUserMailAttachmentResp.Mail:type_name -> DB_MailData 8, // 2: Mail_GetUserMailAttachment_Resp.Mail:type_name -> DB_MailData
8, // 3: DelUserMailResp.Mail:type_name -> DB_MailData 8, // 3: Mail_DelMail_Resp.Mail:type_name -> DB_MailData
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
@ -468,7 +469,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.(*QueryUserMailReq); i { switch v := v.(*Mail_GetList_Req); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -480,7 +481,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.(*QueryUserMailResp); i { switch v := v.(*Mail_GetList_Resp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -492,7 +493,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.(*ReadUserMailReq); i { switch v := v.(*Mail_ReadMail_Req); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -504,7 +505,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.(*ReadUserMailResp); i { switch v := v.(*Mail_ReadMail_Resp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -516,7 +517,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.(*GetUserMailAttachmentReq); i { switch v := v.(*Mail_GetUserMailAttachment_Req); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -528,7 +529,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.(*GetUserMailAttachmentResp); i { switch v := v.(*Mail_GetUserMailAttachment_Resp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -540,7 +541,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.(*DelUserMailReq); i { switch v := v.(*Mail_DelMail_Req); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -552,7 +553,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.(*DelUserMailResp); i { switch v := v.(*Mail_DelMail_Resp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:

View File

@ -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 QueryUserMailReq { message Mail_GetList_Req {
} }
// //
message QueryUserMailResp { message Mail_GetList_Resp {
repeated DB_MailData Mails = 1; repeated DB_MailData Mails = 1;
} }
// //
message ReadUserMailReq { message Mail_ReadMail_Req {
string ObjID = 1; string ObjID = 1;
} }
message ReadUserMailResp { message Mail_ReadMail_Resp {
DB_MailData Mail = 1; DB_MailData Mail = 1;
} }
// //
message GetUserMailAttachmentReq { message Mail_GetUserMailAttachment_Req {
string ObjID = 1; string ObjID = 1;
} }
message GetUserMailAttachmentResp { message Mail_GetUserMailAttachment_Resp {
DB_MailData Mail = 1; DB_MailData Mail = 1;
} }
// //
message DelUserMailReq { message Mail_DelMail_Req {
string ObjID = 1; string ObjID = 1;
} }
message DelUserMailResp { message Mail_DelMail_Resp {
repeated DB_MailData Mail = 1; repeated DB_MailData Mail = 1;
} }