You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.6 KiB
48 lines
1.6 KiB
namespace @Model.NameSpace;
|
|
|
|
/// <summary>
|
|
/// @(@Model.BusName)输出参数
|
|
/// </summary>
|
|
public class @(@Model.ClassName)Output
|
|
{
|
|
@foreach (var column in Model.TableField){
|
|
@:/// <summary>
|
|
@:/// @column.ColumnComment
|
|
@:/// </summary>
|
|
if(column.EffectType == "fk")
|
|
{
|
|
@:public @column.NetType @column.ColumnName { get; set; }
|
|
@:
|
|
@:/// <summary>
|
|
@:/// @column.ColumnComment
|
|
@:/// </summary>
|
|
@:public @(@column.FkColumnNetType) @(@column.FkEntityName)@(@column.FkColumnName) { get; set; }
|
|
|
|
}else if(column.EffectType == "Upload"){
|
|
@:public @column.NetType @column.ColumnName { get; set; }
|
|
@:public SysFile @(@column.ColumnName)Attachment { get; set; }
|
|
}else{
|
|
@:public @column.NetType @column.ColumnName { get; set; }
|
|
}
|
|
@:
|
|
}
|
|
}
|
|
|
|
|
|
@foreach (var column in Model.TableField){
|
|
if (@column.EffectType == "ApiTreeSelect"){
|
|
@:[SugarTable("@(@column.FkTableName)")]
|
|
@:public class @(@column.FkEntityName)TreeOutput: EntityBaseId
|
|
@:{
|
|
@:[SugarColumn(ColumnName = "@(@column.DisplayColumn)")]
|
|
@:public @(@Model.GetColumnNetType(@column.FkTableName,@column.DisplayColumn)) Label { get; set; }
|
|
|
|
@:[SugarColumn(ColumnName = "@(@column.ValueColumn)", IsPrimaryKey = true, IsIdentity = false)]
|
|
@:public @(@Model.GetColumnNetType(@column.FkTableName,@column.ValueColumn)) Value { get; set; }
|
|
|
|
@:public @(@Model.GetColumnNetType(@column.FkTableName,@column.PidColumn)) @column.PidColumn { get; set; }
|
|
@:[SugarColumn(IsIgnore = true)]
|
|
@:public List<@(@column.FkEntityName)TreeOutput> Children { get; set; }
|
|
@:}
|
|
}
|
|
}
|
|
|