教学公告添加发布功能
This commit is contained in:
@@ -44,4 +44,22 @@ export function delTeachNotice(Id) {
|
||||
method: 'post',
|
||||
params: { Id }
|
||||
})
|
||||
}
|
||||
|
||||
// 发布或重新发布公告:{id, scopeType: ALL|ALL_TEACHERS|DEPARTMENTS, departmentIds?}
|
||||
export function publishTeachNotice(data) {
|
||||
return request({
|
||||
url: '/notice-announcement/publish',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 下架已发布公告
|
||||
export function downTeachNotice(id) {
|
||||
return request({
|
||||
url: '/notice-announcement/down',
|
||||
method: 'post',
|
||||
data: { id }
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user