教学公告添加发布功能

This commit is contained in:
2026-09-18 10:50:26 +08:00
parent f3ae9fb2fd
commit a0d5a3b0fe
2 changed files with 117 additions and 4 deletions
+18
View File
@@ -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 }
})
}