From 7489763fa93f7ba08c3066fcfa4857f916653ce1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 13 Apr 2024 12:12:07 +0800 Subject: [PATCH] 1 --- server/mailserver/common/types.go | 6 ------ server/mailserver/mail/mailmgr.go | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/server/mailserver/common/types.go b/server/mailserver/common/types.go index 47084a0b..145271d5 100644 --- a/server/mailserver/common/types.go +++ b/server/mailserver/common/types.go @@ -1,7 +1,6 @@ package common import ( - "github.com/gin-gonic/gin" ) type App interface { @@ -18,9 +17,4 @@ type PlayerMgr interface{ } type MailMgr interface{ - CaGetMailList(*gin.Context) - CaMarkMail(*gin.Context) - CaGetUnreadMailCnt(*gin.Context) - CaGetAttachment(*gin.Context) - CaDeleteMails(*gin.Context) } diff --git a/server/mailserver/mail/mailmgr.go b/server/mailserver/mail/mailmgr.go index f15c810f..ede5250f 100644 --- a/server/mailserver/mail/mailmgr.go +++ b/server/mailserver/mail/mailmgr.go @@ -1,6 +1,8 @@ package mail import ( + "main/common" + "github.com/gin-gonic/gin" ) type MailMgr struct { @@ -20,3 +22,23 @@ func (this *MailMgr) FetchMailFromDB() { func (this *MailMgr) LoadFromDB() { } + +func (this *MailMgr) caGetMailList(common.Player, *gin.Context) { + +} + +func (this *MailMgr) caMarkMail(common.Player, *gin.Context) { + +} + +func (this *MailMgr) caGetUnreadMailCnt(common.Player, *gin.Context) { + +} + +func (this *MailMgr) caGetAttachment(common.Player, *gin.Context) { + +} + +func (this *MailMgr) caDeleteMails(common.Player, *gin.Context) { + +}