Files
zhxg_app/api/instructor/studentNotice.js

46 lines
1013 B
JavaScript
Raw Normal View History

import request from '@/utils/request';
// 查询通知任务材料
export function listStuNoticeMaterials(query) {
return request({
url: '/teacher/stuNoticeMaterials/getByFdyNameAndYearAndMonth',
method: 'get',
params: query,
headers: {
Authorization: "Bearer " + uni.getStorageSync("App-Token"),
}
})
}
// 查询通知任务材料详细
export function getStuNoticeMaterials(id) {
return request({
url: '/teacher/stuNoticeMaterials/' + id,
method: 'get'
})
}
// 新增通知任务材料
export function addStuNoticeMaterials(data) {
return request({
url: '/teacher/stuNoticeMaterials/add',
method: 'post',
data: data
})
}
// 修改通知任务材料
export function updateStuNoticeMaterials(data) {
return request({
url: '/teacher/stuNoticeMaterials/update',
method: 'post',
data: data
})
}
// 删除通知任务材料
export function delStuNoticeMaterials(id) {
return request({
url: '/teacher/stuNoticeMaterials/'+id,
method: 'post',
})
}