|
|
@@ -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) |
|
|
|