| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /**
- * 设置相关 API
- */
- import request from '@/utils/request'
- /**
- * 获取协议内容
- * @param {String} type - 协议类型 ('user' | 'privacy')
- * @returns {Promise}
- */
- export const getAgreementContent = (type) => {
- return request({
- url: `/setting/agreement/${type}`,
- method: 'GET'
- })
- }
- /**
- * 获取小程序轮播图列表
- * @returns {Promise}
- */
- export const getCarouselList = () => {
- return request({
- url: '/setting/carousel/listOnApplet',
- method: 'GET'
- })
- }
- /**
- * 获取首页最近文档列表
- * @param {Object} params - 查询参数
- * @param {String} params.name - 文档名称(模糊搜索)
- * @param {Number} params.pageNum - 页码
- * @param {Number} params.pageSize - 每页数量
- * @returns {Promise}
- */
- export const getRecentDocuments = (params) => {
- return request({
- url: '/applet/home/listRecent',
- method: 'GET',
- data: params
- })
- }
|