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 ApiUpsertZoneSession(ctx *gin.Context) { req := ctx.MustGet("client_req").(*zonesessionproto.ApiUpsertReq) ec := service.DefaultService.ApiUpsertZoneSession(ctx, req) if ec != errcode.ErrCodeZoneSessionSrvOk { logger.Error("ApiUpsertZoneSession fail, req: %v, ec: %v", util.ToJson(req), ec) ReplyErrCodeMsg(ctx, ec) return } ReplyOk(ctx, nil) }