package controller import ( "service/api/errcode" vericodeproto "service/api/proto/vericode/proto" "service/app/mix/service" "service/bizcommon/util" "service/library/logger" "github.com/gin-gonic/gin" ) func OpSendVeriCode(ctx *gin.Context) { req := ctx.MustGet("client_req").(*vericodeproto.OpSendReq) ec := service.DefaultService.OpSendVeriCode(ctx, req) if ec != errcode.ErrCodeLoginSrvOk { logger.Error("OpSendVeriCode fail, req: %v, ec: %v", util.ToJson(req), ec) ReplyErrorMsg(ctx, "server error") return } ReplyOk(ctx, nil) }