first commit -push
This commit is contained in:
8
RobotNet.Shares/MessageResult.cs
Normal file
8
RobotNet.Shares/MessageResult.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace RobotNet.Shares;
|
||||
|
||||
public record MessageResult(bool IsSuccess, string Message = "");
|
||||
|
||||
public record MessageResult<T>(bool IsSuccess, string Message = "")
|
||||
{
|
||||
public T? Data { get; set; }
|
||||
}
|
||||
9
RobotNet.Shares/RobotNet.Shares.csproj
Normal file
9
RobotNet.Shares/RobotNet.Shares.csproj
Normal file
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
9
RobotNet.Shares/SearchResult.cs
Normal file
9
RobotNet.Shares/SearchResult.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace RobotNet.Shares;
|
||||
|
||||
public class SearchResult<T>
|
||||
{
|
||||
public int Total { get; set; } = 0;
|
||||
public int Page { get; set; } = 1;
|
||||
public int Size { get; set; } = 10;
|
||||
public IEnumerable<T> Items { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user