Skip to content

Commit 59b56ae

Browse files
committed
Initial Commit
1 parent b11b5d0 commit 59b56ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1672
-0
lines changed

.dockerignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
**/.classpath
2+
**/.dockerignore
3+
**/.env
4+
**/.git
5+
**/.gitignore
6+
**/.project
7+
**/.settings
8+
**/.toolstarget
9+
**/.vs
10+
**/.vscode
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/azds.yaml
15+
**/bin
16+
**/charts
17+
**/docker-compose*
18+
**/Dockerfile*
19+
**/node_modules
20+
**/npm-debug.log
21+
**/obj
22+
**/secrets.dev.yaml
23+
**/values.dev.yaml
24+
LICENSE
25+
README.md

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@
3030
*.exe
3131
*.out
3232
*.app
33+
34+
**/bin
35+
**/obj
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
</PropertyGroup>
6+
7+
</Project>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace DocuWare.Api.Common.Exceptions
6+
{
7+
public class BadRequestException : Exception
8+
{
9+
public BadRequestException(string message) : base(message)
10+
{
11+
12+
}
13+
}
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace DocuWare.Api.Common.Exceptions
6+
{
7+
public class ForbiddenException : Exception
8+
{
9+
public ForbiddenException(string message) : base(message)
10+
{
11+
12+
}
13+
}
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace DocuWare.Api.Common.Exceptions
6+
{
7+
public class NotFoundException : Exception
8+
{
9+
public NotFoundException(string message) : base(message)
10+
{
11+
12+
}
13+
}
14+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace DocuWare.Api.Models.Common
6+
{
7+
public class DataResult<T>
8+
{
9+
public T[] Data { get; set; }
10+
public int Total { get; set; }
11+
}
12+
13+
public class DataResult
14+
{
15+
public object Data { get; set; }
16+
public int Total { get; set; }
17+
}
18+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel.DataAnnotations;
4+
using System.Text;
5+
6+
namespace DocuWare.Api.Models.Department
7+
{
8+
public class CreateUpdateDepartmentModel
9+
{
10+
public CreateUpdateDepartmentModel()
11+
{
12+
13+
}
14+
15+
[Required]
16+
public String Name { get; set; }
17+
18+
[Required]
19+
public int ParentId { get; set; }
20+
21+
[Required]
22+
public bool Enabled { get; set; }
23+
}
24+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel;
4+
using System.Text;
5+
6+
namespace DocuWare.Api.Models.Department
7+
{
8+
public class DepartmentModel
9+
{
10+
public DepartmentModel()
11+
{
12+
}
13+
14+
public int Id { get; set; }
15+
public string Name { get; set; }
16+
public int ParentId { get; set; }
17+
18+
public string Hierachy { get; set; }
19+
[DefaultValue(true)]
20+
public bool Enabled { get; set; }
21+
}
22+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
</PropertyGroup>
6+
7+
</Project>

0 commit comments

Comments
 (0)