1
This commit is contained in:
parent
bd71f93c53
commit
860711a093
@ -11,7 +11,7 @@ type ControllerMgr struct {
|
|||||||
|
|
||||||
func (this* ControllerMgr) Init() {
|
func (this* ControllerMgr) Init() {
|
||||||
f5.GetApp().GetGinEngine().Use(middleware.CaForward, middleware.CaAuth)
|
f5.GetApp().GetGinEngine().Use(middleware.CaForward, middleware.CaAuth)
|
||||||
f5.GetApp().RegisterCaHandle("Mail", "getMailList", mail_getMail)
|
f5.GetApp().RegisterCaHandle("Mail", "getMailList", mail_getMailList)
|
||||||
f5.GetApp().RegisterCaHandle("Mail", "markMail", mail_markMail)
|
f5.GetApp().RegisterCaHandle("Mail", "markMail", mail_markMail)
|
||||||
f5.GetApp().RegisterCaHandle("Mail", "getUnreadMailCnt", mail_getUnreadMailCnt)
|
f5.GetApp().RegisterCaHandle("Mail", "getUnreadMailCnt", mail_getUnreadMailCnt)
|
||||||
f5.GetApp().RegisterCaHandle("Mail", "getAttachment", mail_getAttachment)
|
f5.GetApp().RegisterCaHandle("Mail", "getAttachment", mail_getAttachment)
|
||||||
|
@ -3,15 +3,17 @@ package controller
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
"main/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
func mail_getMail(c *gin.Context) {
|
func mail_getMailList(c *gin.Context) {
|
||||||
|
hum := c.MustGet("player").(common.Player)
|
||||||
var msg struct {
|
var msg struct {
|
||||||
ErrCode int32 `json:"errcode"`
|
ErrCode int32 `json:"errcode"`
|
||||||
ErrMsg string `json:"errmsg"`
|
ErrMsg string `json:"errmsg"`
|
||||||
}
|
}
|
||||||
msg.ErrCode = 0
|
msg.ErrCode = 0
|
||||||
msg.ErrMsg = ""
|
msg.ErrMsg = hum.GetAccountId()
|
||||||
c.JSON(http.StatusOK, msg)
|
c.JSON(http.StatusOK, msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user