|
@@ -24,6 +24,10 @@ type ReportResp[T any] struct {
|
|
|
Msg string
|
|
|
ErrMsg string
|
|
|
}
|
|
|
+type ReportDetailResp struct {
|
|
|
+ Report *models.ReportDetail `description:"报告"`
|
|
|
+ Status int `description:"报告状态"`
|
|
|
+}
|
|
|
|
|
|
func GetReportList(chartPermissionId, level, rangeType, currentIndex, pageSize int) (resp *ReportResp[ReportList], err error) {
|
|
|
url := utils.ETA_MINI_BRIDGE_URL + "/report/list?"
|
|
@@ -66,7 +70,7 @@ func GetReportList(chartPermissionId, level, rangeType, currentIndex, pageSize i
|
|
|
|
|
|
}
|
|
|
|
|
|
-func GetReportDetail(reportId, userId int) (resp *ReportResp[models.ReportDetail], err error) {
|
|
|
+func GetReportDetail(reportId, userId int) (resp *ReportResp[ReportDetailResp], err error) {
|
|
|
url := utils.ETA_MINI_BRIDGE_URL + "/report/detail?"
|
|
|
url += fmt.Sprintf("ReportId=%d&UserId=%d", reportId, userId)
|
|
|
fmt.Println(url)
|