|
@@ -0,0 +1,20 @@
|
|
|
|
|
+import { get, post } from '../http/http.js'
|
|
|
|
|
+
|
|
|
|
|
+const prefix = "dawn/api/v1/"
|
|
|
|
|
+
|
|
|
|
|
+const apiReport = {
|
|
|
|
|
+ getGroupOptions(params) {
|
|
|
|
|
+ return get('report-mgmt/groups', params)
|
|
|
|
|
+ },
|
|
|
|
|
+ getReportTypeOptions() {
|
|
|
|
|
+ return get(prefix + 'report-types')
|
|
|
|
|
+ },
|
|
|
|
|
+ generateReport(params) {
|
|
|
|
|
+ return post(prefix + 'generate', params)
|
|
|
|
|
+ },
|
|
|
|
|
+ getReportsPages(params) {
|
|
|
|
|
+ return post(prefix + 'report-pages', params)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export default apiReport
|