2020-08-17 15:54:12 +08:00

43 lines
705 B
JavaScript

const { mock } = require("mockjs");
module.exports = [
{
url: "/goodsDetail/getList",
type: "post",
response(config) {
return {
code: 200,
msg: "success",
totalCount: 999,
data: mock({
"data|10": [
{
id: "@id",
},
],
}).data,
};
},
},
{
url: "/goodsDetail/doEdit",
type: "post",
response(config) {
return {
code: 200,
msg: "模拟保存成功",
};
},
},
{
url: "/goodsDetail/doDelete",
type: "post",
response(config) {
return {
code: 200,
msg: "模拟删除成功",
};
},
},
];