马宇豪
2024-11-13 12a7587eb12e3d33809ef9c169dd76b20ac707c4
src/api/home/homePage.js
@@ -1,55 +1 @@
import request from '@/utils/request'
// 获取分页
export function getNotice(params) {
    return request({
        url: '/notice/noticeList',
        method: 'get',
        params: params
    })
}
// 获取详情
export function getNoticeDetails(params) {
    return request({
        url: '/notice/getNoticeById',
        method: 'get',
        params: params
    })
}
// 获取分页
export function getLaws(params) {
    return request({
        url: '/law/lawList',
        method: 'get',
        params: params
    })
}
// 获取详情
export function getLawsDetails(params) {
    return request({
        url: '/law/getLawById',
        method: 'get',
        params: params
    })
}
// 获取分页
export function getPublish(params) {
    return request({
        url: '/agency/agencyList',
        method: 'get',
        params: params
    })
}
// 获取详情
export function getPublishDetails(params) {
    return request({
        url: '/agency/getAgencyById',
        method: 'get',
        params: params
    })
}