update announcement

This commit is contained in:
2024-06-12 10:31:08 +08:00
parent cc89920553
commit e379c0bb6d
2 changed files with 16 additions and 5 deletions

View File

@@ -168,3 +168,7 @@ export function updateProfile(data: { real_name: string; mood: string }) {
export function getAnnouncementList(offset = 10, limit = 10) {
return http.get("announcement", { params: { limit, offset } })
}
export function getAnnouncement(id: number) {
return http.get("announcement", { params: { id } })
}