-
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.
refactor(models): divide write and others
- Loading branch information
1 parent
cad204a
commit 344d5d7
Showing
36 changed files
with
175 additions
and
58 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
9 changes: 9 additions & 0 deletions
9
src/main/scala/net/yoshinorin/qualtet/domains/authors/models/AuthorWriteModel.scala
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,9 @@ | ||
package net.yoshinorin.qualtet.domains.authors | ||
|
||
final case class AuthorWriteModel( | ||
id: AuthorId, | ||
name: AuthorName, | ||
displayName: AuthorDisplayName, | ||
password: BCryptPassword, | ||
createdAt: Long | ||
) |
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
9 changes: 9 additions & 0 deletions
9
...t/yoshinorin/qualtet/domains/contentSerializing/models/ContentSerializingWriteModel.scala
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,9 @@ | ||
package net.yoshinorin.qualtet.domains.contentSerializing | ||
|
||
import net.yoshinorin.qualtet.domains.contents.ContentId | ||
import net.yoshinorin.qualtet.domains.series.SeriesId | ||
|
||
final case class ContentSerializingWriteModel( | ||
seriesId: SeriesId, | ||
contentId: ContentId | ||
) |
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
9 changes: 9 additions & 0 deletions
9
...cala/net/yoshinorin/qualtet/domains/contentTaggings/models/ContentTaggingWriteModel.scala
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,9 @@ | ||
package net.yoshinorin.qualtet.domains.contentTaggings | ||
|
||
import net.yoshinorin.qualtet.domains.contents.ContentId | ||
import net.yoshinorin.qualtet.domains.tags.TagId | ||
|
||
final case class ContentTaggingWriteModel( | ||
contentId: ContentId, | ||
tagId: TagId | ||
) |
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
6 changes: 6 additions & 0 deletions
6
...main/scala/net/yoshinorin/qualtet/domains/contentTypes/models/ContentTypeWriteModel.scala
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,6 @@ | ||
package net.yoshinorin.qualtet.domains.contentTypes | ||
|
||
final case class ContentTypeWriteModel( | ||
id: ContentTypeId, | ||
name: String | ||
) |
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
17 changes: 17 additions & 0 deletions
17
src/main/scala/net/yoshinorin/qualtet/domains/contents/models/ContentWriteModel.scala
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,17 @@ | ||
package net.yoshinorin.qualtet.domains.contents | ||
|
||
import net.yoshinorin.qualtet.domains.authors.{AuthorId, AuthorName} | ||
import net.yoshinorin.qualtet.domains.contentTypes.ContentTypeId | ||
import net.yoshinorin.qualtet.domains.robots.Attributes | ||
|
||
final case class ContentWriteModel( | ||
id: ContentId, | ||
authorId: AuthorId, | ||
contentTypeId: ContentTypeId, | ||
path: Path, | ||
title: String, | ||
rawContent: String, | ||
htmlContent: String, | ||
publishedAt: Long, | ||
updatedAt: Long | ||
) |
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
9 changes: 9 additions & 0 deletions
9
...net/yoshinorin/qualtet/domains/externalResources/models/ExternalResourcesWriteModel.scala
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,9 @@ | ||
package net.yoshinorin.qualtet.domains.externalResources | ||
|
||
import net.yoshinorin.qualtet.domains.contents.ContentId | ||
|
||
final case class ExternalResourceWriteModel( | ||
contentId: ContentId, | ||
kind: ExternalResourceKind, | ||
name: String | ||
) |
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.