feat: 新增文档
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 1m2s

This commit is contained in:
luo
2026-07-27 16:21:34 +08:00
parent 861ffa371b
commit 6a794d88af
6 changed files with 810 additions and 3 deletions

View File

@@ -1,11 +1,15 @@
import request from '@/utils/request.js';
export const notificationApi = {
getList(page = 1, page_size = 20) {
getList(page = 1, page_size = 20, is_read) {
return request({
url: '/api/c/v1/notifications',
method: 'GET',
data: { page, page_size }
data: {
page,
page_size,
...(is_read === undefined ? {} : { is_read })
}
});
},