first commit

This commit is contained in:
2026-01-18 09:52:48 +08:00
commit 836bdc9409
584 changed files with 40891 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
import config from "@/config";
import http from "@/utils/request";
export default {
list: {
url: `${config.API_URL}ads/index`,
name: "获得广告列表",
get: async function (params) {
return await http.get(this.url, params);
},
},
add: {
url: `${config.API_URL}ads/add`,
name: "添加广告",
post: async function (params) {
return await http.post(this.url, params);
},
},
edit: {
url: `${config.API_URL}ads/edit`,
name: "编辑广告",
post: async function (params) {
return await http.put(this.url, params);
},
},
delete: {
url: `${config.API_URL}ads/delete`,
name: "删除广告",
post: async function (params) {
return await http.delete(this.url, params);
},
},
};