25 lines
444 B
Go
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)
|
|
}
|