112 lines
3.1 KiB
C#
112 lines
3.1 KiB
C#
namespace AssetManager.Models.DTOs;
|
|
|
|
public class StrategyListResponse
|
|
{
|
|
public List<StrategyItem> items { get; set; }
|
|
}
|
|
|
|
public class StrategyItem
|
|
{
|
|
public string id { get; set; }
|
|
public string iconChar { get; set; }
|
|
public string title { get; set; }
|
|
public string tag { get; set; }
|
|
public string desc { get; set; }
|
|
public string bgClass { get; set; }
|
|
public string tagClass { get; set; }
|
|
public string btnText { get; set; }
|
|
public string btnClass { get; set; }
|
|
public string[] Tags { get; set; }
|
|
public string Id { get; set; }
|
|
public string IconChar { get; set; }
|
|
public string Title { get; set; }
|
|
public string Tag { get; set; }
|
|
public string Desc { get; set; }
|
|
public string BgClass { get; set; }
|
|
public string TagClass { get; set; }
|
|
public string BtnText { get; set; }
|
|
public string BtnClass { get; set; }
|
|
}
|
|
|
|
public class StrategyDetail
|
|
{
|
|
public string Id { get; set; }
|
|
public string IconChar { get; set; }
|
|
public string Title { get; set; }
|
|
public string Tag { get; set; }
|
|
public string Desc { get; set; }
|
|
public string BgClass { get; set; }
|
|
public string TagClass { get; set; }
|
|
public string[] Tags { get; set; }
|
|
public string BtnText { get; set; }
|
|
public string BtnClass { get; set; }
|
|
public object Parameters { get; set; }
|
|
public object Backtest { get; set; }
|
|
}
|
|
|
|
public class StrategyDetailResponse
|
|
{
|
|
public string id { get; set; }
|
|
public string iconChar { get; set; }
|
|
public string title { get; set; }
|
|
public string riskLevel { get; set; }
|
|
public string description { get; set; }
|
|
public List<string> tags { get; set; }
|
|
public List<ParameterItem> parameters { get; set; }
|
|
}
|
|
|
|
public class ParameterItem
|
|
{
|
|
public string name { get; set; }
|
|
public string displayName { get; set; }
|
|
public string type { get; set; }
|
|
public string value { get; set; }
|
|
}
|
|
|
|
public class CreateStrategyRequest
|
|
{
|
|
public string name { get; set; }
|
|
public string type { get; set; }
|
|
public string description { get; set; }
|
|
public string riskLevel { get; set; }
|
|
public List<string> tags { get; set; }
|
|
public object parameters { get; set; }
|
|
}
|
|
|
|
public class StrategyResponse
|
|
{
|
|
public string Id { get; set; }
|
|
public string Title { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class UpdateStrategyRequest
|
|
{
|
|
public string name { get; set; }
|
|
public string type { get; set; }
|
|
public string description { get; set; }
|
|
public string riskLevel { get; set; }
|
|
public List<string> tags { get; set; }
|
|
public object parameters { get; set; }
|
|
}
|
|
|
|
public class DeleteStrategyResponse
|
|
{
|
|
public string Id { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class StrategyListItemDTO
|
|
{
|
|
public string id { get; set; }
|
|
public string userId { get; set; }
|
|
public string name { get; set; }
|
|
public string type { get; set; }
|
|
public string description { get; set; }
|
|
public List<string> tags { get; set; }
|
|
public string riskLevel { get; set; }
|
|
public string config { get; set; }
|
|
public DateTime createdAt { get; set; }
|
|
public DateTime updatedAt { get; set; }
|
|
}
|