This commit is contained in:
2026-08-17 02:12:17 +08:00
parent 560ae46b82
commit 6a05803e08
96 changed files with 2888 additions and 685 deletions
+3 -3
View File
@@ -39,15 +39,15 @@ func (s *AnnouncementService) Update(ctx context.Context, in AnnouncementInput)
return s.uc.Update(ctx, announcementDO(in))
}
func (s *AnnouncementService) Delete(ctx context.Context, id uint) error {
func (s *AnnouncementService) Delete(ctx context.Context, id string) error {
return s.uc.Delete(ctx, id)
}
func (s *AnnouncementService) DeleteByIDs(ctx context.Context, ids []uint) error {
func (s *AnnouncementService) DeleteByIDs(ctx context.Context, ids []string) error {
return s.uc.DeleteByIDs(ctx, ids)
}
func (s *AnnouncementService) Find(ctx context.Context, id uint) (*dto.AnnouncementResponse, error) {
func (s *AnnouncementService) Find(ctx context.Context, id string) (*dto.AnnouncementResponse, error) {
item, err := s.uc.Find(ctx, id)
if err != nil {
return nil, err