package controller import ( "service/api/errcode" appconfigproto "service/api/proto/app_config/proto" "service/app/mix/service" "service/bizcommon/util" "service/library/logger" "github.com/gin-gonic/gin" ) func ApiGetAppConfigListByKey(ctx *gin.Context) { req := ctx.MustGet("client_req").(*appconfigproto.ApiListByKeyReq) appconfig, ec := service.DefaultService.ApiGetAppConfigListByKey(ctx, req) if ec != errcode.ErrCodeAppConfigSrvOk { logger.Error("ApiGetAppConfigListByKey fail, req: %v, ec: %v", util.ToJson(req), ec) ReplyErrCodeMsg(ctx, ec) return } data := &appconfigproto.ApiListByKeyData{ AppConfig: appconfig, } ReplyOk(ctx, data) }