Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
ef5f831319
@ -12,12 +12,11 @@ func (this *Api_Comp) DelUserMailReq_Check(session comm.IUserSession, req *pb.De
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 删除邮件
|
// 删除邮件
|
||||||
func (this *Api_Comp) DelUserMailReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.DelUserMailReq) (err error) {
|
func (this *Api_Comp) DelUserMailReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.DelUserMailReq) (code pb.ErrorCode) {
|
||||||
|
var err error
|
||||||
code := pb.ErrorCode_Success
|
|
||||||
mailinfo := make([]*pb.DB_MailData, 0)
|
mailinfo := make([]*pb.DB_MailData, 0)
|
||||||
defer func() {
|
defer func() {
|
||||||
session.SendMsg(string(this.module.GetType()), DelUserMailResp, code, &pb.DelUserMailResp{Mail: mailinfo})
|
session.SendMsg(string(this.module.GetType()), DelUserMailResp, &pb.DelUserMailResp{Mail: mailinfo})
|
||||||
}()
|
}()
|
||||||
if session.GetUserId() == "" {
|
if session.GetUserId() == "" {
|
||||||
code = pb.ErrorCode_NoLogin
|
code = pb.ErrorCode_NoLogin
|
||||||
|
@ -10,14 +10,13 @@ func (this *Api_Comp) GetUserMailAttachmentReq_Check(session comm.IUserSession,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 领取附件
|
// 领取附件
|
||||||
func (this *Api_Comp) GetUserMailAttachmentReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.GetUserMailAttachmentReq) (err error) {
|
func (this *Api_Comp) GetUserMailAttachmentReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.GetUserMailAttachmentReq) (code pb.ErrorCode) {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
code pb.ErrorCode
|
|
||||||
mail *pb.DB_MailData
|
mail *pb.DB_MailData
|
||||||
)
|
)
|
||||||
defer func() {
|
defer func() {
|
||||||
session.SendMsg(string(this.module.GetType()), GetUserMailAttachmentResp, code, &pb.GetUserMailAttachmentResp{Mail: mail})
|
session.SendMsg(string(this.module.GetType()), GetUserMailAttachmentResp, &pb.GetUserMailAttachmentResp{Mail: mail})
|
||||||
}()
|
}()
|
||||||
if session.GetUserId() == "" {
|
if session.GetUserId() == "" {
|
||||||
code = pb.ErrorCode_NoLogin
|
code = pb.ErrorCode_NoLogin
|
||||||
|
@ -11,12 +11,12 @@ func (this *Api_Comp) QueryUserMailReq_Check(session comm.IUserSession, req *pb.
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 查看所有邮件信息
|
// 查看所有邮件信息
|
||||||
func (this *Api_Comp) QueryUserMailReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.QueryUserMailReq) (err error) {
|
func (this *Api_Comp) QueryUserMailReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.QueryUserMailReq) (code pb.ErrorCode) {
|
||||||
|
|
||||||
code := pb.ErrorCode_Success
|
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, code, &pb.QueryUserMailResp{Mails: mailinfo})
|
session.SendMsg(string(this.module.GetType()), QueryUserMailResp, &pb.QueryUserMailResp{Mails: mailinfo})
|
||||||
}()
|
}()
|
||||||
if session.GetUserId() == "" {
|
if session.GetUserId() == "" {
|
||||||
code = pb.ErrorCode_NoLogin
|
code = pb.ErrorCode_NoLogin
|
||||||
|
@ -10,13 +10,13 @@ func (this *Api_Comp) ReadUserMailReq_Check(session comm.IUserSession, req *pb.R
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 查看某一封邮件
|
// 查看某一封邮件
|
||||||
func (this *Api_Comp) ReadUserMailReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.ReadUserMailReq) (err error) {
|
func (this *Api_Comp) ReadUserMailReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.ReadUserMailReq) (code pb.ErrorCode) {
|
||||||
var (
|
var (
|
||||||
code pb.ErrorCode
|
err error
|
||||||
mail *pb.DB_MailData
|
mail *pb.DB_MailData
|
||||||
)
|
)
|
||||||
defer func() {
|
defer func() {
|
||||||
session.SendMsg(string(this.module.GetType()), ReadUserMailResp, code, &pb.ReadUserMailResp{Mail: mail})
|
session.SendMsg(string(this.module.GetType()), ReadUserMailResp, &pb.ReadUserMailResp{Mail: mail})
|
||||||
}()
|
}()
|
||||||
if session.GetUserId() == "" {
|
if session.GetUserId() == "" {
|
||||||
code = pb.ErrorCode_NoLogin
|
code = pb.ErrorCode_NoLogin
|
||||||
|
Loading…
Reference in New Issue
Block a user