This commit is contained in:
2025-12-01 18:03:05 +08:00
26 changed files with 731 additions and 824 deletions

View File

@@ -114,7 +114,7 @@ export const courseApi = {
},
/**
* 开始学习免费课程
* 领取免费课程
* @param catalogueId 目录ID
*/
startStudyForMF(catalogueId: number) {

27
api/modules/news.ts Normal file
View File

@@ -0,0 +1,27 @@
import { mainClient } from '@/api/clients/main'
import type { IApiResponse } from '@/api/types'
export const newsApi = {
/**
* 获取新闻详情
*/
getNewsDetail: async (newsId: string | number) => {
const res = await mainClient.request<IApiResponse<any>>({
url: `common/message/getMessageById?id=${newsId}`,
method: 'POST'
})
return res
},
/**
* 获取太湖之光文章详情
*/
getTaihuWelfareArticleDetail: async (newsId: string | number) => {
const res = await mainClient.request<IApiResponse<any>>({
url: 'common/taihuWelfare/getTaihuWelfareArticleDetail',
method: 'POST',
data: { id: newsId }
})
return res
}
}