Commit 49ba44c1 authored by hasan khaddour's avatar hasan khaddour

update contracts

parent 2e4f641f
using PSManagement.SharedKernel.ValueObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PSManagement.Contracts.FinancialSpends.Requests
{
public record CreateFinancialSpendItemRequest(
int ProjectId,
Money ExternalPurchase,
int LocalPurchase,
string CostType,
string Description,
DateTime ExpectedSpendingDate
);
}
namespace PSManagement.Contracts.FinancialSpends.Requests
{
public record GetFinancialSpendItemByIdRequest(
int ProjectId,
int Id);
}
namespace PSManagement.Contracts.FinancialSpends.Requests
{
public record GetFinancialSpendItemByProjecRequest(
int ProjectId,
int? PageNumber,
int? PageSize
);
}
namespace PSManagement.Contracts.FinancialSpends.Requests
{
public record RemoveFinancialSpendItemRequest(
int ProjectId,
int Id
);
}
using PSManagement.SharedKernel.ValueObjects;
using System;
namespace PSManagement.Contracts.FinancialSpends.Requests
{
public record UpdateFinancialSpendItemRequest(
int ProjectId,
int Id,
Money ExternalPurchase,
int LocalPurchase,
string CostType,
string Description,
DateTime ExpectedSpendingDate
);
}
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="FinancialSpends\Requests\" />
<Folder Include="Steps\Requests\" />
<Folder Include="Tracks\Response\" /> <Folder Include="Tracks\Response\" />
<Folder Include="Tracks\Requests\" /> <Folder Include="Tracks\Requests\" />
</ItemGroup> </ItemGroup>
......
namespace PSManagement.Contracts.Steps.Requests
{
public record ChangeStepWeightRequest(
int StepId,
int Weight
);
}
\ No newline at end of file
namespace PSManagement.Contracts.Steps.Requests
{
public record GetStepByIdRequest(
int StepId
);
}
\ No newline at end of file
namespace PSManagement.Contracts.Steps.Requests
{
public record GetStepTrackHistoryRequest(
int StepId,
int? PageNumber,
int? PageSize
);
}
\ No newline at end of file
namespace PSManagement.Contracts.Steps.Requests
{
public record GetStepsByProjectRequest(
int ProjectId,
int? PageSize,
int? PageNumber
);
}
\ No newline at end of file
namespace PSManagement.Contracts.Steps.Requests
{
public record UpdateCompletionRatioRequest(
int StepId,
int CompletionRatio
);
}
\ No newline at end of file
using System;
namespace PSManagement.Contracts.Projects.Response
{
public class StepTrackResponse
{
public int StepId { get; set; }
public int TrackId { get; set; }
public String ExecutionState { get; set; }
public DateTime TrackDate { get; set; }
public int ExecutionRatio { get; set; }
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment