-
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.
fix: treat code to accept null image
- Loading branch information
Showing
15 changed files
with
67 additions
and
43 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
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
17 changes: 17 additions & 0 deletions
17
Back-Orange-Finance/OrangeFinance.Application/Amqp/AmqpFarmService.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,17 @@ | ||
using OrangeFinance.Adapters.Rpc; | ||
|
||
namespace OrangeFinance.Application.Amqp; | ||
|
||
public sealed class AmqpFarmService(AmqpRpc amqpRpc) : AmqpServiceBase | ||
{ | ||
private readonly AmqpRpc _amqpRpc = amqpRpc; | ||
|
||
protected override string ExchangeName => "farm_service"; | ||
|
||
protected override string ServiceName => "FarmService"; | ||
|
||
public void SendLocationFarm<TRequest>(TRequest requestModel, string routeName = "") | ||
{ | ||
_amqpRpc.Send(ExchangeName, routeName, requestModel); | ||
} | ||
} |
22 changes: 0 additions & 22 deletions
22
Back-Orange-Finance/OrangeFinance.Application/Amqp/AmqpUserService.cs
This file was deleted.
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
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
5 changes: 1 addition & 4 deletions
5
Back-Orange-Finance/OrangeFinance.Contracts/Farms/CreateFarmRequest.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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
using Microsoft.AspNetCore.Http; | ||
|
||
namespace OrangeFinance.Contracts.Farms; | ||
namespace OrangeFinance.Contracts.Farms; | ||
|
||
public record CreateFarmRequest(string Name, | ||
string Description, | ||
double Longitude, | ||
double Latitude, | ||
string Size, | ||
string Type, | ||
IFormFile Image, | ||
string Cnpj); | ||
|
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: 1 addition & 1 deletion
2
Back-Orange-Finance/OrangeFinance.Domain/Farms/Models/FarmModel.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
namespace OrangeFinance.Domain.Farms.Models; | ||
|
||
public record class FarmModel(Guid Id, string Name, string Description, double Longitude, double Latitude, string Size, string Type, string Image, string Cnpj); | ||
public record class FarmModel(Guid Id, string Name, string Description, double Longitude, double Latitude, string Size, string Type, string? Image, string Cnpj); |
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