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 ApiSendVeriCode(ctx *gin.Context) { req := ctx.MustGet("client_req").(*vericodeproto.ApiSendReq) ec := service.DefaultService.ApiSendVeriCode(ctx, req) if ec != errcode.ErrCodeLoginSrvOk { logger.Error("ApiSendVeriCode fail, req: %v, ec: %v", util.ToJson(req), ec) ReplyErrorMsg(ctx, "server error") return } ReplyOk(ctx, nil) }