前后端全面升级

This commit is contained in:
pycook
2023-07-10 17:42:15 +08:00
parent c444fed436
commit db5ff60aff
629 changed files with 97789 additions and 23995 deletions

View File

@@ -0,0 +1,55 @@
import { axios } from '@/utils/request'
export const getNoticeApps = () => {
return axios({
url: `/common-setting/v1/message/apps`,
method: 'get',
})
}
export const getNoticeCategoriesByApp = (app_name) => {
return axios({
url: `/common-setting/v1/message/${app_name}/categories`,
method: 'get',
})
}
export const getMessage = (params) => {
return axios({
url: `/common-setting/v1/message`,
method: 'get',
params
})
}
export const postMessage = (data) => {
return axios({
url: `/common-setting/v1/message`,
method: 'post',
data
})
}
export const updateMessage = (id, data) => {
return axios({
url: `/common-setting/v1/message/${id}`,
method: 'put',
data
})
}
export const getUnreadMessageCount = (params) => {
return axios({
url: `/common-setting/v1/message/unread`,
method: 'get',
params
})
}
export const batchUpdateMessage = (data) => {
return axios({
url: `/common-setting/v1/message/batch`,
method: 'post',
data
})
}