diff --git a/controller/upstream/iml.go b/controller/upstream/iml.go index ac16a361..0bce956c 100644 --- a/controller/upstream/iml.go +++ b/controller/upstream/iml.go @@ -22,6 +22,6 @@ func (i *imlUpstreamController) Get(ctx *gin.Context, serviceId string) (upstrea return i.upstreamModule.Get(ctx, serviceId) } -func (i *imlUpstreamController) Save(ctx *gin.Context, serviceId string, upstream *upstream_dto.UpstreamConfig) (upstream_dto.UpstreamConfig, error) { - return i.upstreamModule.Save(ctx, serviceId, *upstream) +func (i *imlUpstreamController) Save(ctx *gin.Context, serviceId string, upstream *upstream_dto.Upstream) (upstream_dto.UpstreamConfig, error) { + return i.upstreamModule.Save(ctx, serviceId, upstream) } diff --git a/controller/upstream/upstream.go b/controller/upstream/upstream.go index 10ce9698..9db799dd 100644 --- a/controller/upstream/upstream.go +++ b/controller/upstream/upstream.go @@ -2,16 +2,16 @@ package upstream import ( "reflect" - + "github.com/eolinker/go-common/autowire" - + upstream_dto "github.com/APIParkLab/APIPark/module/upstream/dto" "github.com/gin-gonic/gin" ) type IUpstreamController interface { Get(ctx *gin.Context, serviceId string) (upstream_dto.UpstreamConfig, error) - Save(ctx *gin.Context, serviceId string, upstream *upstream_dto.UpstreamConfig) (upstream_dto.UpstreamConfig, error) + Save(ctx *gin.Context, serviceId string, upstream *upstream_dto.Upstream) (upstream_dto.UpstreamConfig, error) } func init() {