add announcement.

This commit is contained in:
2023-12-22 13:11:09 +08:00
parent 2bcc09c5fb
commit b921c65ed5
4 changed files with 88 additions and 0 deletions

View File

@@ -150,3 +150,7 @@ export function uploadAvatar(file: File) {
export function updateProfile(data: { real_name: string; mood: string }) {
return http.put("profile", data)
}
export function getAnnouncementList(offset = 10, limit = 10) {
return http.get("announcement", { params: { limit, offset } })
}