-
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.
[RSN-67] Add more event statuses and fix some errors (#53)
* feat: add more event statuses and refactor exsiting ones * fix: register now properly handles missing phone and zip-code * chore: add proper library of FluentValidation Additionally, added 'ValidateNever' attribute to login and register request classes to get rid of default validation performed by ApiController. * refactor: remove redundant null checks * Revert "refactor: remove redundant null checks" This reverts commit 7a5bf14.
- Loading branch information
Showing
11 changed files
with
57 additions
and
23 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
Empty file.
3 changes: 3 additions & 0 deletions
3
Server/ReasnAPI/ReasnAPI/Models/Authentication/LoginRequest.cs
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
2 changes: 2 additions & 0 deletions
2
Server/ReasnAPI/ReasnAPI/Models/Authentication/RegisterRequest.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
namespace ReasnAPI.Models.Enums; | ||
using NpgsqlTypes; | ||
|
||
namespace ReasnAPI.Models.Enums; | ||
|
||
public enum EventStatus | ||
{ | ||
Completed, | ||
Inprogress, | ||
Approved, | ||
WaitingForApproval | ||
[PgName("Completed")] | ||
Completed, | ||
|
||
[PgName("Ongoing")] | ||
Ongoing, | ||
|
||
[PgName("Cancelled")] | ||
Cancelled, | ||
|
||
[PgName("Approved")] | ||
Approved, | ||
|
||
[PgName("Pending approval")] | ||
PendingApproval, | ||
|
||
[PgName("Rejected")] | ||
Rejected | ||
} |
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,7 +1,12 @@ | ||
namespace ReasnAPI.Models.Enums; | ||
using NpgsqlTypes; | ||
|
||
namespace ReasnAPI.Models.Enums; | ||
|
||
public enum ObjectType | ||
{ | ||
Event, | ||
[PgName("Event")] | ||
Event, | ||
|
||
[PgName("User")] | ||
User | ||
} |
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,7 +1,12 @@ | ||
namespace ReasnAPI.Models.Enums; | ||
using NpgsqlTypes; | ||
|
||
namespace ReasnAPI.Models.Enums; | ||
|
||
public enum ParticipantStatus | ||
{ | ||
Interested, | ||
[PgName("Interested")] | ||
Interested, | ||
|
||
[PgName("Participating")] | ||
Participating | ||
} |
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