fjrcloud-community-app/sheep/api/community/notice.js

55 lines
1.1 KiB
JavaScript

import request from '@/sheep/request';
const NoticeApi = {
// 查询通知列表
getPage: (params) => {
return request({
url: '/community/notice/page',
method: 'GET',
data: params,
custom: {
showLoading: false,
auth: true,
},
});
},
// 查询通知详情
getDetail: (id) => {
return request({
url: '/community/notice/get',
method: 'GET',
data: { id },
custom: {
showLoading: true,
auth: true,
},
});
},
// 查询Banner列表
getBannerList: (position) => {
return request({
url: '/community/banner/list',
method: 'GET',
data: { position },
custom: {
showLoading: false,
auth: false,
},
});
},
// 查询小程序配置列表(功能入口)
getMiniAppConfigList: (position) => {
return request({
url: '/community/mini-app-config/list',
method: 'GET',
data: { position },
custom: {
showLoading: false,
auth: false,
},
});
},
};
export default NoticeApi;