Skip to content

Commit efdbc27

Browse files
committed
chore(*): come to initial step
1 parent 8c26d16 commit efdbc27

File tree

14 files changed

+40
-187
lines changed

14 files changed

+40
-187
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push]
44

55
env:
66
SERVICE_NAME: micro.appregistration
7-
SERVICE_NAME_CAPITALIZED: Micro.Registration
7+
SERVICE_NAME_CAPITALIZED: Micro.AppRegistration
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
3+
namespace Micro.AppRegistration.Api.Controllers
4+
{
5+
[ApiController]
6+
[Route("api/[controller]")]
7+
public class AppRegistrationController : ControllerBase
8+
{
9+
10+
}
11+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Micro.AppRegistration.Api.Controllers
2+
{
3+
public class CreateApplicationRequest
4+
{
5+
6+
}
7+
}

Micro.AppRegistration.Api/Micro.AppRegistration.Api.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.0.0-rc2" />
1818
</ItemGroup>
1919

20+
<ItemGroup>
21+
<Folder Include="Repository" />
22+
</ItemGroup>
23+
2024
<Target Name="Install githooks" BeforeTargets="Build">
2125
<Exec Command="cp ../hooks/* ../.git/hooks/" />
2226
</Target>

Micro.AppRegistration.Api/Migrations/20190828165715_InitialCreate.Designer.cs

Lines changed: 0 additions & 39 deletions
This file was deleted.

Micro.AppRegistration.Api/Migrations/20190828165715_InitialCreate.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.

Micro.AppRegistration.Api/Migrations/ApplicationContextModelSnapshot.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
3+
namespace Micro.AppRegistration.Api.Models
4+
{
5+
public class Application
6+
{
7+
public string Id { set; get; }
8+
public string User { set; get; }
9+
public string Secret { set; get; }
10+
public string ShortCode { set; get; }
11+
public bool UseDefaultCode { set; get; }
12+
public bool Approved { set; get; }
13+
public DateTime CreatedAt { set; get; }
14+
public string CreatedBy { set; get; }
15+
}
16+
}

Micro.AppRegistration.Api/Models/ApplicationContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Micro.AppRegistration.Api.Models
88
public class ApplicationContext : DbContext
99
{
1010
private readonly DatabaseConfig _db;
11-
public DbSet<Weather> Weathers { set; get; }
11+
public DbSet<Application> Applications { set; get; }
1212

1313
public ApplicationContext(DbContextOptions options, IOptions<DatabaseConfig> dbOption) : base(options)
1414
{

Micro.AppRegistration.Api/Models/Weather.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)