-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Announcement): Add create announcement to todo and notification
- Loading branch information
Showing
16 changed files
with
181 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...ts/Domain/AnnouncementDomainModule/AnnouncementEntity/Sources/NewAnnouncementEntity.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// | ||
// NewAnnouncementEntity.swift | ||
// AnnouncementUsecase | ||
// | ||
// Created by DOYEON LEE on 8/25/24. | ||
// | ||
|
||
import Foundation | ||
|
||
/** | ||
Represents a announcement in group(organization). | ||
*/ | ||
public struct NewAnnouncementEntity: Equatable { | ||
/// ID of organization that will generate announcement | ||
public let organizationId: Int64 | ||
|
||
/// Announcement creation date | ||
public let createdAt: Date? | ||
|
||
/// Image URL for the announcement illustration. (optional) | ||
public let imageUrl: String? | ||
|
||
/// Title of the announcement | ||
public let title: String | ||
|
||
/// Body text of the announcement | ||
public let body: String | ||
|
||
/// Event date or deadline (optional) | ||
public let endAt: Date? | ||
|
||
/// Place of the announcement (optional) | ||
public let place: AnnouncementPlaceEntity? | ||
|
||
/// List of todos associated with the announcement (optional) | ||
public let todos: [String]? | ||
|
||
/// Dates for notices before the announcement (optional) | ||
public let notifications: [AnnouncementRemindNotification]? | ||
|
||
public init( | ||
organizationId: Int64, | ||
imageURL: String?, | ||
createdAt: Date?, | ||
title: String, | ||
body: String, | ||
endAt: Date?, | ||
place: AnnouncementPlaceEntity?, | ||
todos: [String]?, | ||
notifications: [AnnouncementRemindNotification]? | ||
) { | ||
self.organizationId = organizationId | ||
self.createdAt = createdAt | ||
self.imageUrl = imageURL | ||
self.title = title | ||
self.body = body | ||
self.endAt = endAt | ||
self.place = place | ||
self.todos = todos | ||
self.notifications = notifications | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.