|
|
@@ -83,7 +83,10 @@ func DataCenterOriginalDataDel(c *gin.Context, req md.DataCenterOriginalDataComm |
|
|
|
func OriginalDataMoreApplication(c *gin.Context, req md.DataCenterOriginalDataMoreApplicationReq) md.DataCenterOriginalDataMoreApplicationRes { |
|
|
|
engine := MasterDb(c) |
|
|
|
NewAppletApplicationAdSpaceListDb := implement2.NewAppletApplicationAdSpaceListDb(engine) |
|
|
|
MediumList, total, _ := NewAppletApplicationAdSpaceListDb.FindAppletApplicationAdSpaceList(req.Name, "", "", "", 0, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
|
user := GetUser(c) |
|
|
|
appId := GetAppletIdByAdminId(c, user.AdmId, req.Name, "", "") |
|
|
|
|
|
|
|
MediumList, total, _ := NewAppletApplicationAdSpaceListDb.FindAppletApplicationAdSpaceList(req.Name, "", "", "", appId, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) |
|
|
|
data := make([]md.DataCenterOriginalDataMoreApplicationData, 0) |
|
|
|
if len(MediumList) > 0 { |
|
|
|
for _, v := range MediumList { |
|
|
@@ -109,7 +112,9 @@ func OriginalDataMoreApplication(c *gin.Context, req md.DataCenterOriginalDataMo |
|
|
|
func OriginalDataOneApplication(c *gin.Context) { |
|
|
|
list := make([]md.DataCenterOriginalDataOneApplicationData, 0) |
|
|
|
NewAppletApplicationDb := implement2.NewAppletApplicationDb(MasterDb(c)) |
|
|
|
applicationList, _ := NewAppletApplicationDb.FindAllAppletApplicationList() |
|
|
|
user := GetUser(c) |
|
|
|
appId := GetAppletIdByAdminId(c, user.AdmId, "", "", "") |
|
|
|
applicationList, _ := NewAppletApplicationDb.FindAllAppletApplicationListByMediumId(appId) |
|
|
|
for _, v := range applicationList { |
|
|
|
tmp := md.DataCenterOriginalDataOneApplicationData{ |
|
|
|
Id: utils.IntToStr(v.Id), |
|
|
|