Add region code
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
namespace Distribution.Features.Region;
|
||||
|
||||
public record CreateRegionRequest(string Name);
|
||||
// Code is optional: blank/null auto-generates the next REG-#### code; otherwise stored as entered (trimmed).
|
||||
public record CreateRegionRequest(string Name, string? Code = null);
|
||||
|
||||
public record UpdateRegionRequest(string Name);
|
||||
public record NextRegionCodeResponse(string Code);
|
||||
|
||||
public record RegionResponse(Guid Id, string Name, bool IsActive, DateTime CreatedAt);
|
||||
// Code is auto-generated on create; on update it is optional (null/blank keeps the current code).
|
||||
public record UpdateRegionRequest(string Name, string? Code = null);
|
||||
|
||||
public record RegionResponse(Guid Id, string Code, string Name, bool IsActive, DateTime CreatedAt);
|
||||
|
||||
public record RegionalTargetResponse(Guid RegionId, string Period, decimal TargetValue);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user