This commit is contained in:
2025-04-23 19:48:47 +08:00
parent 86aa66800c
commit fbfd175258
12 changed files with 469 additions and 112 deletions

View File

@@ -253,6 +253,137 @@ const admin = {
data: data
});
},
getBarragelist: async (data) => {
return request({
url: '/admin/barrage/getlist',
method: Method.POST,
data: data
});
},
addBarrage: async (data) => {
return request({
url: '/admin/barrage/add',
method: Method.POST,
data: data
});
},
editBarrage: async (data) => {
return request({
url: '/admin/barrage/edit',
method: Method.POST,
data: data
});
},
barrageWeigh: async (data) => {
return request({
url: '/admin/barrage/weigh',
method: Method.POST,
data: data
});
},
barrageDel: async (data) => {
return request({
url: '/admin/barrage/del',
method: Method.POST,
data: data
});
},
getNoticeList: async (data) => {
return request({
url: '/admin/notice/getList',
method: Method.POST,
data: data
});
},
addNotice: async (data) => {
return request({
url: '/admin/notice/add',
method: Method.POST,
data: data
});
},
editNotice: async (data) => {
return request({
url: '/admin/notice/edit',
method: Method.POST,
data: data
});
},
delNotice: async (id) => {
return request({
url: '/admin/notice/del',
method: Method.POST,
data: {id}
});
},
getNoticeType: async () => {
return request({
url: '/admin/notice/getType',
method: Method.POST,
});
},
setNoticeStatus: async (id) => {
return request({
url: '/admin/notice/status',
method: Method.POST,
data: {id}
});
},
setNoticeTop: async (id) => {
return request({
url: '/admin/notice/top',
method: Method.POST,
data: {id}
});
},
setNotcieWeigh: async (data) => {
return request({
url: '/admin/notice/weigh',
method: Method.POST,
data: data
});
},
getADVType: async () => {
return request({
url: '/admin/adv/getType',
method: Method.POST,
});
},
addADV: async (data) => {
return request({
url: '/admin/adv/add',
method: Method.POST,
data: data
});
},
setADVStatus: async (id) => {
return request({
url: '/admin/adv/status',
method: Method.POST,
data: {id}
});
},
setADVWeigh: async (data) => {
return request({
url: '/admin/adv/weigh',
method: Method.POST,
data: data
});
},
delADV: async (id) => {
return request({
url: '/admin/adv/del',
method: Method.POST,
data: {id}
});
},
getADVList: async (data) => {
return request({
url: '/admin/adv/getList',
method: Method.POST,
data: data
});
},
}
export default admin;

View File

@@ -30,6 +30,19 @@ const system = {
]
});
})
},
uploadFile: async (file) => {
const formData = new FormData();
formData.append('file', file);
return request({
UN_AES: true,
url: '/admin/upload/upload',
method: Method.POST,
data: formData,
headers: {
'Content-Type': 'multipart/form-data; boundary=--------------------------611824495457697861278283'
}
});
}
}