-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Data Structure): Fixed crashes due to missing record IDs in DB an… (
#67) * fix(Data Structure): Fixed crashes due to missing record IDs in DB and improved JSON contract between front and back * fix(try-catch):delete extra trycatch * fix(try-catch):Use specific try-catch
- Loading branch information
1 parent
aa7c6d6
commit efa5ac2
Showing
11 changed files
with
78 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace AnalysisData.EAV.Dto; | ||
|
||
public class AccessFileToUserDto | ||
{ | ||
public IEnumerable<string> UserGuidIds { get; set; } | ||
public int FileId { get; set; } | ||
} |
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,17 +1,17 @@ | ||
namespace AnalysisData.EAV.Dto; | ||
|
||
public class PaginatedListDto | ||
public class PaginatedListDto | ||
{ | ||
public List<string> PaginateList { get; } | ||
public int PageIndex { get; } | ||
public int TotalCount { get; } | ||
public string TypeCategory { get; } | ||
|
||
public PaginatedListDto(List<string> items, int pageIndex, int totalCount, string typeCategory) | ||
public PaginatedListDto(List<PaginationNodeDto> items, int pageIndex, int totalItems, string categoryName) | ||
{ | ||
PaginateList = items; | ||
Items = items; | ||
PageIndex = pageIndex; | ||
TotalCount = totalCount; | ||
TypeCategory = typeCategory; | ||
} | ||
TotalItems = totalItems; | ||
CategoryName = categoryName; | ||
} | ||
|
||
public List<PaginationNodeDto> Items { get; set; } | ||
public int PageIndex { get; set; } | ||
public int TotalItems { get; set; } | ||
public string CategoryName { get; set; } | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
8 changes: 8 additions & 0 deletions
8
AnalysisData/AnalysisData/User/Exception/GuidNotCorrectFormat.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace AnalysisData.Exception; | ||
|
||
public class GuidNotCorrectFormat : ServiceException | ||
{ | ||
public GuidNotCorrectFormat() : base(Resources.GuidNotCorrectFormat,StatusCodes.Status401Unauthorized) | ||
{ | ||
} | ||
} |