aozhiwei bd71f93c53 1
2024-02-12 13:24:46 +08:00

24 lines
601 B
Go

package controller
import (
"f5"
"main/middleware"
)
type ControllerMgr struct {
}
func (this* ControllerMgr) Init() {
f5.GetApp().GetGinEngine().Use(middleware.CaForward, middleware.CaAuth)
f5.GetApp().RegisterCaHandle("Mail", "getMailList", mail_getMail)
f5.GetApp().RegisterCaHandle("Mail", "markMail", mail_markMail)
f5.GetApp().RegisterCaHandle("Mail", "getUnreadMailCnt", mail_getUnreadMailCnt)
f5.GetApp().RegisterCaHandle("Mail", "getAttachment", mail_getAttachment)
f5.GetApp().RegisterCaHandle("Mail", "deleteMails", mail_deleteMails)
}
func (this* ControllerMgr) UnInit() {
}