|
|
@@ -813,6 +813,36 @@ func SelfSupportForSchoolArrearsOrdList(c *gin.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
func SelfSupportForSchoolBlackList(c *gin.Context) { |
|
|
|
var req md.SelfSupportForSchoolBlackListReq |
|
|
|
err := c.ShouldBindJSON(&req) |
|
|
|
if err != nil { |
|
|
|
err = validate.HandleValidateErr(err) |
|
|
|
err1 := err.(e.E) |
|
|
|
e.OutErr(c, err1.Code, err1.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
selfSupportForSchoolInfoDb := db.SelfSupportForSchoolInfoDb{} |
|
|
|
selfSupportForSchoolInfoDb.Set(req.EnterpriseId) |
|
|
|
info, err := selfSupportForSchoolInfoDb.GetSelfSupportForSchoolInfo() |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
err, resp := svc.CurlAlipayPlanetEcocampusApiRosterPageQueryBlackList(md2.CurlAlipayPlanetEcocampusApiRosterPageQueryBlackList{ |
|
|
|
SchoolCode: info.SchoolCode, |
|
|
|
PageNo: req.Page, |
|
|
|
PageSize: req.Limit, |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
e.OutErr(c, e.ERR, err.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
e.OutSuc(c, resp, nil) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
func SelfSupportForSchoolArrearsOrdDebtRepay(c *gin.Context) { |
|
|
|
var req md.SelfSupportForSchoolArrearsOrdDebtRepayReq |
|
|
|
err := c.ShouldBindJSON(&req) |
|
|
|