40 lines
759 B
C#
40 lines
759 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Syc.Abp.Application.Contracts
|
|||
|
{
|
|||
|
public class OptionsDto: OptionsDto<object>
|
|||
|
{
|
|||
|
public OptionsDto(string label,object val)
|
|||
|
{
|
|||
|
this.label = label;
|
|||
|
this.value = val;
|
|||
|
}
|
|||
|
|
|||
|
public string label { get; set; }
|
|||
|
|
|||
|
public object value { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public class OptionsDto<T>
|
|||
|
{
|
|||
|
public OptionsDto()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
public OptionsDto(string label, T val)
|
|||
|
{
|
|||
|
this.label = label;
|
|||
|
this.value = val;
|
|||
|
}
|
|||
|
|
|||
|
public string label { get; set; }
|
|||
|
|
|||
|
public T value { get; set; }
|
|||
|
}
|
|||
|
}
|