24 lines
581 B
Go
24 lines
581 B
Go
|
package controller
|
||
|
|
||
|
import (
|
||
|
"service/api/errcode"
|
||
|
zonesessionproto "service/api/proto/zonesession/proto"
|
||
|
"service/app/mix/service"
|
||
|
"service/bizcommon/util"
|
||
|
"service/library/logger"
|
||
|
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
func ApiUpdateZoneSession(ctx *gin.Context) {
|
||
|
req := ctx.MustGet("client_req").(*zonesessionproto.ApiUpdateReq)
|
||
|
ec := service.DefaultService.ApiUpdateZoneSession(ctx, req)
|
||
|
if ec != errcode.ErrCodeZoneSessionSrvOk {
|
||
|
logger.Error("ApiUpdateZoneSession fail, req: %v, ec: %v", util.ToJson(req), ec)
|
||
|
ReplyErrCodeMsg(ctx, ec)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
ReplyOk(ctx, nil)
|
||
|
}
|