‘suhuihui’ 7 months ago
commit
abc701f390
1 changed files with 34 additions and 0 deletions
  1. 34 0
      snowy-admin-web/src/api/biz/qyRecordApi.js

+ 34 - 0
snowy-admin-web/src/api/biz/qyRecordApi.js

@@ -0,0 +1,34 @@
+import { baseRequest } from '@/utils/request'
+
+const request = (url, ...arg) => baseRequest(`/biz/qyrecord/` + url, ...arg)
+
+/**
+ * 企业资质备案Api接口管理器
+ *
+ * @author hgx
+ * @date  2024/07/04 16:52
+ **/
+export default {
+	// 获取企业资质备案分页
+	qyRecordPage(data) {
+		return request('page', data, 'get')
+	},
+	// 提交企业资质备案表单 edit为true时为编辑,默认为新增
+	qyRecordSubmitForm(data, edit = false) {
+		return request(edit ? 'edit' : 'add', data)
+	},
+	// 删除企业资质备案
+	qyRecordDelete(data) {
+		return request('delete', data)
+	},
+	// 导出企业资质备案
+    qyRecordExport(data) {
+        return request('export', data, 'post', {
+            responseType: 'blob'
+        })
+    },
+	// 获取企业资质备案详情
+	qyRecordDetail(data) {
+		return request('detail', data, 'get')
+	}
+}