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