service/app/mix/controller/veriCode_op.go

25 lines
546 B
Go
Raw Normal View History

2023-12-21 22:17:40 +08:00
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)
2023-12-30 19:28:50 +08:00
ReplyErrCodeMsg(ctx, ec)
2023-12-21 22:17:40 +08:00
return
}
ReplyOk(ctx, nil)
}