refactor: ♻️ 完善CURD代码注释等

This commit is contained in:
cshaptx4869
2024-04-26 21:43:16 +08:00
parent 52bc2e32b5
commit 2b6a210855
9 changed files with 118 additions and 52 deletions

View File

@@ -3,9 +3,9 @@ const contentConfig = {
indexAction: function (data: any) {
console.log("index", data);
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve({
total: 2,
resolve({
code: "00000",
data: {
list: [
{
id: 2,
@@ -36,14 +36,20 @@ const contentConfig = {
createTime: "2021-06-05",
},
],
});
}, 800);
total: 2,
},
msg: "一切ok",
});
});
},
deleteAction: function (id: string) {
console.log("delete", id);
return new Promise((resolve, reject) => {
resolve("删除成功");
resolve({
code: "00000",
data: null,
msg: "删除成功",
});
});
},
pk: "id",