aozhiwei 5d1b42b237 1
2024-05-25 11:38:28 +08:00

25 lines
444 B
Go

package controller
import (
. "main/global"
"github.com/gin-gonic/gin"
)
type Stat struct {
}
func (this *Stat) caUpdateSession(c *gin.Context) {
accountId := c.DefaultQuery("account_id", "")
sessionId := c.DefaultQuery("session_id", "")
GetSessionMgr().UpdateSession(accountId, sessionId);
rspObj := struct {
ErrCode int32 `json:"errcode"`
ErrMsg string `json:"errmsg"`
}{
ErrCode: 0,
ErrMsg: "",
}
c.JSON(200, rspObj)
}