mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
调整了Library文件结构;
源代码生成新增了参数验证方法; 修改了ParamterDetails的定义
This commit is contained in:
21
Library/Attributes/BindConvertorAttribute.cs
Normal file
21
Library/Attributes/BindConvertorAttribute.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace Serein.Library
|
||||
{
|
||||
/// <summary>
|
||||
/// 绑定转换器
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Parameter)]
|
||||
public class BindConvertorAttribute : Attribute
|
||||
{
|
||||
public Type EnumType { get; }
|
||||
public Type ConvertorType { get; }
|
||||
|
||||
public BindConvertorAttribute(Type @enum, Type convertor)
|
||||
{
|
||||
EnumType = @enum;
|
||||
ConvertorType = convertor;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user