diff --git a/app/svc/svc_medium_agent.go b/app/svc/svc_medium_agent.go index 9c12c95..2fbc27d 100644 --- a/app/svc/svc_medium_agent.go +++ b/app/svc/svc_medium_agent.go @@ -24,7 +24,7 @@ func AgentBindMediumList(c *gin.Context) { //代理 查旗下 媒体 e.OutErr(c, err1.Code, err1.Error()) return } - var tmp model2.Agent + var tmp model.AgentList MasterDb(c).Where("id=?", req.Id).Get(&tmp) engine := db.Db agentWithMediumDb := implement.NewAgentWithMediumDb(engine) @@ -74,7 +74,7 @@ func MediumBindAgentList(c *gin.Context) { e.OutErr(c, err1.Code, err1.Error()) return } - var tmp model2.Medium + var tmp model.MediumList MasterDb(c).Where("id=?", req.Id).Get(&tmp) engine := db.Db agentWithMediumDb := implement.NewAgentWithMediumDb(engine)