package controller import ( "service/api/errcode" "service/api/message/response" hvyogoproto "service/api/proto/hvyogo/proto" "service/app/mix/service" "service/bizcommon/util" "service/library/logger" "github.com/gin-gonic/gin" ) func ExtAgreeCallback(ctx *gin.Context) { req := ctx.MustGet("client_req").(*hvyogoproto.ExtAgreeCallbackReq) // 存入数据 ec := service.DefaultService.SaveAgreeCallback(ctx, req) if ec != errcode.ErrCodeWorkerIdSrvOk { logger.Error("SaveAgreeCallback fail, req: %v, ec: %v", util.ToJson(req), ec) response.ReplyErrCodeMsg(ctx, ec) return } response.ReplyOk(ctx, nil) }