first commit
This commit is contained in:
71
unpackage/dist/dev/mp-weixin/request/api.js
vendored
Normal file
71
unpackage/dist/dev/mp-weixin/request/api.js
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
"use strict";
|
||||
const request_request = require("./request.js");
|
||||
function getCheckPlanList(params) {
|
||||
return request_request.requestAPI({
|
||||
url: "/frontend/plan/list",
|
||||
method: "GET",
|
||||
data: params
|
||||
});
|
||||
}
|
||||
function enterCheckPlan(oneTableId) {
|
||||
return request_request.requestAPI({
|
||||
url: `/frontend/task/start/${oneTableId}`,
|
||||
method: "GET"
|
||||
});
|
||||
}
|
||||
function getCheckTaskDetail(taskId) {
|
||||
return request_request.requestAPI({
|
||||
url: `/frontend/task/detail/${taskId}`,
|
||||
method: "GET"
|
||||
});
|
||||
}
|
||||
function submitCheckResult(params) {
|
||||
return request_request.requestAPI({
|
||||
url: "/frontend/task/submit",
|
||||
method: "POST",
|
||||
data: params
|
||||
});
|
||||
}
|
||||
function addHiddenDanger(params) {
|
||||
return request_request.requestAPI({
|
||||
url: "/frontend/hazard/add",
|
||||
method: "POST",
|
||||
data: params
|
||||
});
|
||||
}
|
||||
function getMyHiddenDangerList(params) {
|
||||
return request_request.requestAPI({
|
||||
url: "/frontend/hazard/my/list",
|
||||
method: "GET",
|
||||
data: params
|
||||
});
|
||||
}
|
||||
function getHiddenDangerDetail(params) {
|
||||
return request_request.requestAPI({
|
||||
url: "/frontend/hazard/detail",
|
||||
method: "GET",
|
||||
data: params
|
||||
});
|
||||
}
|
||||
function submitRectification(params) {
|
||||
return request_request.requestAPI({
|
||||
url: "/frontend/hazard/rectify",
|
||||
method: "POST",
|
||||
data: params
|
||||
});
|
||||
}
|
||||
function getHiddenDangerLabelList() {
|
||||
return request_request.requestAPI({
|
||||
url: "/frontend/hazard/tag/list",
|
||||
method: "GET"
|
||||
});
|
||||
}
|
||||
exports.addHiddenDanger = addHiddenDanger;
|
||||
exports.enterCheckPlan = enterCheckPlan;
|
||||
exports.getCheckPlanList = getCheckPlanList;
|
||||
exports.getCheckTaskDetail = getCheckTaskDetail;
|
||||
exports.getHiddenDangerDetail = getHiddenDangerDetail;
|
||||
exports.getHiddenDangerLabelList = getHiddenDangerLabelList;
|
||||
exports.getMyHiddenDangerList = getMyHiddenDangerList;
|
||||
exports.submitCheckResult = submitCheckResult;
|
||||
exports.submitRectification = submitRectification;
|
||||
Reference in New Issue
Block a user