上传协议规范格式
This commit is contained in:
parent
58555cd808
commit
c3ae56797a
@ -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
|
||||
}
|
||||
|
||||
// 删除邮件
|
||||
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
|
||||
mailinfo := make([]*pb.DB_MailData, 0)
|
||||
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() == "" {
|
||||
code = pb.ErrorCode_NoLogin
|
||||
|
@ -5,18 +5,18 @@ import (
|
||||
"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
|
||||
}
|
||||
|
||||
// 领取附件
|
||||
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 (
|
||||
mail *pb.DB_MailData
|
||||
)
|
||||
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() == "" {
|
||||
code = pb.ErrorCode_NoLogin
|
||||
|
@ -6,24 +6,24 @@ import (
|
||||
"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
|
||||
}
|
||||
|
||||
// 查看所有邮件信息
|
||||
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
|
||||
mailinfo := make([]*pb.DB_MailData, 0)
|
||||
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() == "" {
|
||||
code = pb.ErrorCode_NoLogin
|
||||
return
|
||||
}
|
||||
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
|
||||
return
|
||||
}
|
||||
|
@ -5,18 +5,18 @@ import (
|
||||
"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
|
||||
}
|
||||
|
||||
// 查看某一封邮件
|
||||
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 (
|
||||
err error
|
||||
mail *pb.DB_MailData
|
||||
)
|
||||
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() == "" {
|
||||
code = pb.ErrorCode_NoLogin
|
||||
|
@ -20,14 +20,14 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type QueryUserMailReq struct {
|
||||
type Mail_GetList_Req struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *QueryUserMailReq) Reset() {
|
||||
*x = QueryUserMailReq{}
|
||||
func (x *Mail_GetList_Req) Reset() {
|
||||
*x = Mail_GetList_Req{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_mail_mail_msg_proto_msgTypes[0]
|
||||
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)
|
||||
}
|
||||
|
||||
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]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -53,13 +53,13 @@ func (x *QueryUserMailReq) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use QueryUserMailReq.ProtoReflect.Descriptor instead.
|
||||
func (*QueryUserMailReq) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Mail_GetList_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Mail_GetList_Req) Descriptor() ([]byte, []int) {
|
||||
return file_mail_mail_msg_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
// 查询邮件信息
|
||||
type QueryUserMailResp struct {
|
||||
type Mail_GetList_Resp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@ -67,8 +67,8 @@ type QueryUserMailResp struct {
|
||||
Mails []*DB_MailData `protobuf:"bytes,1,rep,name=Mails,proto3" json:"Mails"`
|
||||
}
|
||||
|
||||
func (x *QueryUserMailResp) Reset() {
|
||||
*x = QueryUserMailResp{}
|
||||
func (x *Mail_GetList_Resp) Reset() {
|
||||
*x = Mail_GetList_Resp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_mail_mail_msg_proto_msgTypes[1]
|
||||
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)
|
||||
}
|
||||
|
||||
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]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -94,12 +94,12 @@ func (x *QueryUserMailResp) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use QueryUserMailResp.ProtoReflect.Descriptor instead.
|
||||
func (*QueryUserMailResp) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Mail_GetList_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Mail_GetList_Resp) Descriptor() ([]byte, []int) {
|
||||
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 {
|
||||
return x.Mails
|
||||
}
|
||||
@ -107,7 +107,7 @@ func (x *QueryUserMailResp) GetMails() []*DB_MailData {
|
||||
}
|
||||
|
||||
// 查看邮件
|
||||
type ReadUserMailReq struct {
|
||||
type Mail_ReadMail_Req struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@ -115,8 +115,8 @@ type ReadUserMailReq struct {
|
||||
ObjID string `protobuf:"bytes,1,opt,name=ObjID,proto3" json:"ObjID"`
|
||||
}
|
||||
|
||||
func (x *ReadUserMailReq) Reset() {
|
||||
*x = ReadUserMailReq{}
|
||||
func (x *Mail_ReadMail_Req) Reset() {
|
||||
*x = Mail_ReadMail_Req{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_mail_mail_msg_proto_msgTypes[2]
|
||||
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)
|
||||
}
|
||||
|
||||
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]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -142,19 +142,19 @@ func (x *ReadUserMailReq) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ReadUserMailReq.ProtoReflect.Descriptor instead.
|
||||
func (*ReadUserMailReq) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Mail_ReadMail_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Mail_ReadMail_Req) Descriptor() ([]byte, []int) {
|
||||
return file_mail_mail_msg_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *ReadUserMailReq) GetObjID() string {
|
||||
func (x *Mail_ReadMail_Req) GetObjID() string {
|
||||
if x != nil {
|
||||
return x.ObjID
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ReadUserMailResp struct {
|
||||
type Mail_ReadMail_Resp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@ -162,8 +162,8 @@ type ReadUserMailResp struct {
|
||||
Mail *DB_MailData `protobuf:"bytes,1,opt,name=Mail,proto3" json:"Mail"`
|
||||
}
|
||||
|
||||
func (x *ReadUserMailResp) Reset() {
|
||||
*x = ReadUserMailResp{}
|
||||
func (x *Mail_ReadMail_Resp) Reset() {
|
||||
*x = Mail_ReadMail_Resp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_mail_mail_msg_proto_msgTypes[3]
|
||||
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)
|
||||
}
|
||||
|
||||
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]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -189,12 +189,12 @@ func (x *ReadUserMailResp) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ReadUserMailResp.ProtoReflect.Descriptor instead.
|
||||
func (*ReadUserMailResp) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Mail_ReadMail_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Mail_ReadMail_Resp) Descriptor() ([]byte, []int) {
|
||||
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 {
|
||||
return x.Mail
|
||||
}
|
||||
@ -202,7 +202,7 @@ func (x *ReadUserMailResp) GetMail() *DB_MailData {
|
||||
}
|
||||
|
||||
// 领取附件
|
||||
type GetUserMailAttachmentReq struct {
|
||||
type Mail_GetUserMailAttachment_Req struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@ -210,8 +210,8 @@ type GetUserMailAttachmentReq struct {
|
||||
ObjID string `protobuf:"bytes,1,opt,name=ObjID,proto3" json:"ObjID"`
|
||||
}
|
||||
|
||||
func (x *GetUserMailAttachmentReq) Reset() {
|
||||
*x = GetUserMailAttachmentReq{}
|
||||
func (x *Mail_GetUserMailAttachment_Req) Reset() {
|
||||
*x = Mail_GetUserMailAttachment_Req{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_mail_mail_msg_proto_msgTypes[4]
|
||||
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)
|
||||
}
|
||||
|
||||
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]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -237,19 +237,19 @@ func (x *GetUserMailAttachmentReq) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetUserMailAttachmentReq.ProtoReflect.Descriptor instead.
|
||||
func (*GetUserMailAttachmentReq) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Mail_GetUserMailAttachment_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Mail_GetUserMailAttachment_Req) Descriptor() ([]byte, []int) {
|
||||
return file_mail_mail_msg_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *GetUserMailAttachmentReq) GetObjID() string {
|
||||
func (x *Mail_GetUserMailAttachment_Req) GetObjID() string {
|
||||
if x != nil {
|
||||
return x.ObjID
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GetUserMailAttachmentResp struct {
|
||||
type Mail_GetUserMailAttachment_Resp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@ -257,8 +257,8 @@ type GetUserMailAttachmentResp struct {
|
||||
Mail *DB_MailData `protobuf:"bytes,1,opt,name=Mail,proto3" json:"Mail"`
|
||||
}
|
||||
|
||||
func (x *GetUserMailAttachmentResp) Reset() {
|
||||
*x = GetUserMailAttachmentResp{}
|
||||
func (x *Mail_GetUserMailAttachment_Resp) Reset() {
|
||||
*x = Mail_GetUserMailAttachment_Resp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_mail_mail_msg_proto_msgTypes[5]
|
||||
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)
|
||||
}
|
||||
|
||||
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]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -284,12 +284,12 @@ func (x *GetUserMailAttachmentResp) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetUserMailAttachmentResp.ProtoReflect.Descriptor instead.
|
||||
func (*GetUserMailAttachmentResp) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Mail_GetUserMailAttachment_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Mail_GetUserMailAttachment_Resp) Descriptor() ([]byte, []int) {
|
||||
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 {
|
||||
return x.Mail
|
||||
}
|
||||
@ -297,7 +297,7 @@ func (x *GetUserMailAttachmentResp) GetMail() *DB_MailData {
|
||||
}
|
||||
|
||||
// 删除某个邮件
|
||||
type DelUserMailReq struct {
|
||||
type Mail_DelMail_Req struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@ -305,8 +305,8 @@ type DelUserMailReq struct {
|
||||
ObjID string `protobuf:"bytes,1,opt,name=ObjID,proto3" json:"ObjID"`
|
||||
}
|
||||
|
||||
func (x *DelUserMailReq) Reset() {
|
||||
*x = DelUserMailReq{}
|
||||
func (x *Mail_DelMail_Req) Reset() {
|
||||
*x = Mail_DelMail_Req{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_mail_mail_msg_proto_msgTypes[6]
|
||||
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)
|
||||
}
|
||||
|
||||
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]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -332,19 +332,19 @@ func (x *DelUserMailReq) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DelUserMailReq.ProtoReflect.Descriptor instead.
|
||||
func (*DelUserMailReq) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Mail_DelMail_Req.ProtoReflect.Descriptor instead.
|
||||
func (*Mail_DelMail_Req) Descriptor() ([]byte, []int) {
|
||||
return file_mail_mail_msg_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *DelUserMailReq) GetObjID() string {
|
||||
func (x *Mail_DelMail_Req) GetObjID() string {
|
||||
if x != nil {
|
||||
return x.ObjID
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type DelUserMailResp struct {
|
||||
type Mail_DelMail_Resp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@ -352,8 +352,8 @@ type DelUserMailResp struct {
|
||||
Mail []*DB_MailData `protobuf:"bytes,1,rep,name=Mail,proto3" json:"Mail"`
|
||||
}
|
||||
|
||||
func (x *DelUserMailResp) Reset() {
|
||||
*x = DelUserMailResp{}
|
||||
func (x *Mail_DelMail_Resp) Reset() {
|
||||
*x = Mail_DelMail_Resp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_mail_mail_msg_proto_msgTypes[7]
|
||||
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)
|
||||
}
|
||||
|
||||
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]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@ -379,12 +379,12 @@ func (x *DelUserMailResp) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use DelUserMailResp.ProtoReflect.Descriptor instead.
|
||||
func (*DelUserMailResp) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use Mail_DelMail_Resp.ProtoReflect.Descriptor instead.
|
||||
func (*Mail_DelMail_Resp) Descriptor() ([]byte, []int) {
|
||||
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 {
|
||||
return x.Mail
|
||||
}
|
||||
@ -396,32 +396,33 @@ 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, 0x51, 0x75, 0x65,
|
||||
0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x22, 0x37, 0x0a,
|
||||
0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x52, 0x65,
|
||||
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, 0x27, 0x0a, 0x0f, 0x52, 0x65, 0x61, 0x64, 0x55, 0x73,
|
||||
0x65, 0x72, 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,
|
||||
0x34, 0x0a, 0x10, 0x52, 0x65, 0x61, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 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, 0x30, 0x0a, 0x18, 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, 0x3d, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x55, 0x73,
|
||||
0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74,
|
||||
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, 0x26, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x55, 0x73, 0x65,
|
||||
0x72, 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, 0x0f, 0x44, 0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x69, 0x6c, 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,
|
||||
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,
|
||||
}
|
||||
|
||||
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_goTypes = []interface{}{
|
||||
(*QueryUserMailReq)(nil), // 0: QueryUserMailReq
|
||||
(*QueryUserMailResp)(nil), // 1: QueryUserMailResp
|
||||
(*ReadUserMailReq)(nil), // 2: ReadUserMailReq
|
||||
(*ReadUserMailResp)(nil), // 3: ReadUserMailResp
|
||||
(*GetUserMailAttachmentReq)(nil), // 4: GetUserMailAttachmentReq
|
||||
(*GetUserMailAttachmentResp)(nil), // 5: GetUserMailAttachmentResp
|
||||
(*DelUserMailReq)(nil), // 6: DelUserMailReq
|
||||
(*DelUserMailResp)(nil), // 7: DelUserMailResp
|
||||
(*DB_MailData)(nil), // 8: DB_MailData
|
||||
(*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
|
||||
}
|
||||
var file_mail_mail_msg_proto_depIdxs = []int32{
|
||||
8, // 0: QueryUserMailResp.Mails:type_name -> DB_MailData
|
||||
8, // 1: ReadUserMailResp.Mail:type_name -> DB_MailData
|
||||
8, // 2: GetUserMailAttachmentResp.Mail:type_name -> DB_MailData
|
||||
8, // 3: DelUserMailResp.Mail:type_name -> DB_MailData
|
||||
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
|
||||
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
|
||||
@ -468,7 +469,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.(*QueryUserMailReq); i {
|
||||
switch v := v.(*Mail_GetList_Req); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
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{} {
|
||||
switch v := v.(*QueryUserMailResp); i {
|
||||
switch v := v.(*Mail_GetList_Resp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
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{} {
|
||||
switch v := v.(*ReadUserMailReq); i {
|
||||
switch v := v.(*Mail_ReadMail_Req); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
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{} {
|
||||
switch v := v.(*ReadUserMailResp); i {
|
||||
switch v := v.(*Mail_ReadMail_Resp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
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{} {
|
||||
switch v := v.(*GetUserMailAttachmentReq); i {
|
||||
switch v := v.(*Mail_GetUserMailAttachment_Req); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
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{} {
|
||||
switch v := v.(*GetUserMailAttachmentResp); i {
|
||||
switch v := v.(*Mail_GetUserMailAttachment_Resp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
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{} {
|
||||
switch v := v.(*DelUserMailReq); i {
|
||||
switch v := v.(*Mail_DelMail_Req); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
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{} {
|
||||
switch v := v.(*DelUserMailResp); i {
|
||||
switch v := v.(*Mail_DelMail_Resp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
|
@ -2,38 +2,38 @@ syntax = "proto3";
|
||||
option go_package = ".;pb";
|
||||
import "mail/mail_db.proto";
|
||||
|
||||
message QueryUserMailReq {
|
||||
message Mail_GetList_Req {
|
||||
|
||||
}
|
||||
|
||||
// 查询邮件信息
|
||||
message QueryUserMailResp {
|
||||
message Mail_GetList_Resp {
|
||||
repeated DB_MailData Mails = 1;
|
||||
}
|
||||
|
||||
// 查看邮件
|
||||
message ReadUserMailReq {
|
||||
message Mail_ReadMail_Req {
|
||||
string ObjID = 1;
|
||||
}
|
||||
|
||||
message ReadUserMailResp {
|
||||
message Mail_ReadMail_Resp {
|
||||
DB_MailData Mail = 1;
|
||||
}
|
||||
|
||||
// 领取附件
|
||||
message GetUserMailAttachmentReq {
|
||||
message Mail_GetUserMailAttachment_Req {
|
||||
string ObjID = 1;
|
||||
}
|
||||
|
||||
message GetUserMailAttachmentResp {
|
||||
message Mail_GetUserMailAttachment_Resp {
|
||||
DB_MailData Mail = 1;
|
||||
}
|
||||
|
||||
// 删除某个邮件
|
||||
message DelUserMailReq {
|
||||
message Mail_DelMail_Req {
|
||||
string ObjID = 1;
|
||||
}
|
||||
|
||||
message DelUserMailResp {
|
||||
message Mail_DelMail_Resp {
|
||||
repeated DB_MailData Mail = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user