-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migration, add multitenancy (#6)
* feat: migration * feat: migration * feat: add tenant tests * test: clean up sonar code smells
- Loading branch information
1 parent
ab8236b
commit fd4d418
Showing
43 changed files
with
1,298 additions
and
1,611 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: v1 | ||
apiVersion: v2 | ||
name: onecx-announcement-svc | ||
version: 0.0.0 | ||
appVersion: 0.0.0 | ||
|
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
app: | ||
image: | ||
repository: "onecx/onecx-announcement-svc" | ||
tag: 999-SNAPSHOT | ||
db: | ||
enabled: true |
36 changes: 36 additions & 0 deletions
36
src/main/java/io/github/onecx/announcement/domain/criteria/AnnouncementSearchCriteria.java
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,36 @@ | ||
package io.github.onecx.announcement.domain.criteria; | ||
|
||
import java.time.OffsetDateTime; | ||
|
||
import jakarta.validation.Valid; | ||
|
||
import io.github.onecx.announcement.domain.models.Announcement; | ||
import io.quarkus.runtime.annotations.RegisterForReflection; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@RegisterForReflection | ||
public class AnnouncementSearchCriteria { | ||
|
||
private Announcement.Type type; | ||
|
||
private Announcement.Priority priority; | ||
|
||
private Announcement.Status status; | ||
|
||
private @Valid OffsetDateTime startDateFrom; | ||
|
||
private @Valid OffsetDateTime startDateTo; | ||
|
||
private @Valid OffsetDateTime endDateFrom; | ||
|
||
private @Valid OffsetDateTime endDateTo; | ||
|
||
private @Valid String appId; | ||
|
||
private @Valid Integer pageNumber = 0; | ||
|
||
private @Valid Integer pageSize = 100; | ||
} |
Oops, something went wrong.