Skip to content

Commit

Permalink
GetFull
Browse files Browse the repository at this point in the history
  • Loading branch information
Codelisk committed Nov 18, 2024
1 parent 7a4435d commit a604e9d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Codelisk.GeneratorAttributes.WebAttributes.Dto;
using Codelisk.GeneratorAttributes.WebAttributes.HttpMethod;
using Codelisk.GeneratorAttributes.WebAttributes.Manager;
using Codelisk.GeneratorShared.Constants;
using Controller.Generator.CodeBuilders;
using Foundation.Crawler.Crawlers;
using Foundation.Crawler.Extensions;
Expand Down Expand Up @@ -122,6 +123,7 @@ ClassDeclarationSyntax baseController
result
.AddMethod($"GetFull", Accessibility.Public)
.AddParameter("Guid", "id")
.AddAttribute($"[{Constants.HttpGetAttribute}(\"{ApiUrls.GetFull}\")]")
.MakeAsync()
.WithReturnTypeTask(dto.GetFullModelName())
.WithBody(x =>
Expand All @@ -134,6 +136,7 @@ ClassDeclarationSyntax baseController
result
.AddMethod($"GetAllFull", Accessibility.Public)
.MakeAsync()
.AddAttribute($"[{Constants.HttpGetAttribute}(\"{ApiUrls.GetAllFull}\")]")
.WithReturnTypeTaskList(dto.GetFullModelName())
.WithBody(x =>
{
Expand Down

0 comments on commit a604e9d

Please sign in to comment.