轮播图和用户消息

This commit is contained in:
2026-02-03 18:05:35 +08:00
parent 6c8d38f0c5
commit 049f6f6d23
6 changed files with 894 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/blade-notice/notice/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/blade-notice/notice/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/blade-notice/notice/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/blade-notice/notice/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/blade-notice/notice/submit',
method: 'post',
data: row
})
}

50
src/api/mall/banner.js Normal file
View File

@@ -0,0 +1,50 @@
import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/blade-banner/banner/list',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getDetail = (id) => {
return request({
url: '/blade-banner/banner/detail',
method: 'get',
params: {
id
}
})
}
export const remove = (ids) => {
return request({
url: '/blade-banner/banner/remove',
method: 'post',
params: {
ids,
}
})
}
export const add = (row) => {
return request({
url: '/blade-banner/banner/submit',
method: 'post',
data: row
})
}
export const update = (row) => {
return request({
url: '/blade-banner/banner/submit',
method: 'post',
data: row
})
}