This commit is contained in:
2025-04-25 11:47:08 +08:00
parent f9381e74ed
commit dfb552b7ed
15 changed files with 488 additions and 114 deletions

View File

@@ -412,6 +412,14 @@ const admin = {
data: data
});
},
getArticleCategoryList2: async (data) => {
const res = await request({
url: '/admin/articleCategory/getList',
method: Method.POST,
data: data
});
return {data: res.data.list};
},
addArticleCategory: async (data) => {
return request({
url: '/admin/articleCategory/add',
@@ -433,7 +441,7 @@ const admin = {
data: data
});
},
delArticle: async (id) => {
delArticleCategory: async (id) => {
return request({
url: '/admin/articleCategory/del',
method: Method.POST,
@@ -447,6 +455,96 @@ const admin = {
data: data
});
},
getArticleList: async (data) => {
return request({
url: '/admin/article/getList',
method: Method.POST,
data: data
});
},
addArticle: async (data) => {
return request({
url: '/admin/article/add',
method: Method.POST,
data: data
});
},
statusArticle: async (id) => {
return request({
url: '/admin/article/status',
method: Method.POST,
data: {id}
});
},
topArticle: async (id) => {
return request({
url: '/admin/article/top',
method: Method.POST,
data: {id}
});
},
weighArticle: async (data) => {
return request({
url: '/admin/article/weigh',
method: Method.POST,
data: data
});
},
delArticle: async (id) => {
return request({
url: '/admin/article/del',
method: Method.POST,
data: {id}
});
},
editArticle: async (data) => {
return request({
url: '/admin/article/edit',
method: Method.POST,
data: data
});
},
typeArticle: async () => {
return request({
url: '/admin/article/getType',
method: Method.POST,
});
},
getSingleList: async (data) => {
return request({
url: '/admin/single/getList',
method: Method.POST,
data: data,
});
},
addSingle: async (data) => {
return request({
url: '/admin/single/add',
method: Method.POST,
data: data,
});
},
editSingle: async (data) => {
return request({
url: '/admin/single/edit',
method: Method.POST,
data: data,
});
},
delSingle: async (id) => {
return request({
url: '/admin/single/del',
method: Method.POST,
data: {id},
});
},
detailSingle: async (id) => {
return request({
url: '/admin/single/detail',
method: Method.POST,
data: {id},
});
},
}
export default admin;