增加公告图片编辑, 增加取消归档

This commit is contained in:
yml
2026-06-15 20:37:13 +08:00
parent 85f2d9b3b3
commit 9271f47553
16 changed files with 765 additions and 26 deletions
@@ -95,6 +95,11 @@ func (s *Service) Archive(ctx context.Context, id uint64) error {
return s.repo.Archive(ctx, id)
}
// Unarchive 取消归档公告
func (s *Service) Unarchive(ctx context.Context, id uint64) error {
return s.repo.Unarchive(ctx, id)
}
// Delete 删除公告
func (s *Service) Delete(ctx context.Context, id uint64) error {
return s.repo.Delete(ctx, id)