mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
修复上游保存失败问题
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user