peixue-dev/peidu/uniapp/api/reminder.js

42 lines
798 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request'
/**
* 提醒相关API
*/
/**
* 获取提醒列表
* @param {Object} params - 查询参数
* @param {String} params.type - 提醒类型all/service/feedback/salary/other
* @param {Number} params.page - 页码
* @param {Number} params.size - 每页数量
*/
export function getReminders(params) {
return request({
url: '/api/teacher/reminders',
method: 'get',
params
})
}
/**
* 获取提醒统计
*/
export function getReminderStatistics() {
return request({
url: '/api/teacher/reminders/statistics',
method: 'get'
})
}
/**
* 标记提醒为已读
* @param {Number} id - 提醒ID
*/
export function markReminderAsRead(id) {
return request({
url: `/api/teacher/reminders/${id}/read`,
method: 'post'
})
}