修改service模板的bug
This commit is contained in:
parent
0e47aeda83
commit
5f85b9ecc9
@ -214,7 +214,7 @@ if(@column.EffectType == "fk" && (@column.WhetherAddUpdate == "Y" || column.Quer
|
||||
@:/// 获取@(@column.ColumnComment)列表
|
||||
@:/// </summary>
|
||||
@:/// <returns></returns>
|
||||
@:[ApiDescriptionSettings(Name = "@(@column.FkEntityName)@(@column.PropertyName)Dropdown", Description = "获取@(@column.ColumnComment)列表"), HttpGet]
|
||||
@:[ApiDescriptionSettings(Name = "@(@column.FkEntityName)@(@column.PropertyName)Dropdown", Description = "获取@(@column.ColumnComment)列表", Order = 940), HttpGet]
|
||||
@:[DisplayName("获取@(@column.ColumnComment)列表")]
|
||||
@:public async Task<List<LabelValueOutput>> @(@column.FkEntityName)@(@column.PropertyName)Dropdown()
|
||||
@:{
|
||||
@ -236,7 +236,7 @@ if(@column.EffectType == "Upload"){
|
||||
@:/// </summary>
|
||||
@:/// <param name="file"></param>
|
||||
@:/// <returns></returns>
|
||||
@:[ApiDescriptionSettings(Name = "Upload@(@column.PropertyName)", Description = "上传@(@column.ColumnComment)", HttpPost]
|
||||
@:[ApiDescriptionSettings(Name = "Upload@(@column.PropertyName)", Description = "上传@(@column.ColumnComment)", Order = 930), HttpPost]
|
||||
@:[DisplayName("上传@(@column.ColumnComment)")]
|
||||
@:public async Task<SysFile> Upload@(@column.PropertyName)([Required] IFormFile file)
|
||||
@:{
|
||||
@ -249,7 +249,7 @@ if(@column.EffectType == "Upload"){
|
||||
@foreach (var column in Model.TableField){
|
||||
if(@column.EffectType == "ApiTreeSelect" && !definedObjects.ContainsKey("@(@column.FkEntityName)Tree")){
|
||||
@{definedObjects.Add("@(@column.FkEntityName)Tree", 1);}
|
||||
@:[ApiDescriptionSettings(Name = ""@(@column.FkEntityName)Tree"", Description = "获取@(@column.ColumnComment)列表", HttpGet]
|
||||
@:[ApiDescriptionSettings(Name = ""@(@column.FkEntityName)Tree"", Description = "获取@(@column.ColumnComment)列表", Order = 920), HttpGet]
|
||||
@:[DisplayName("获取@(@column.FkEntityName)Tree")]
|
||||
@:public async Task<dynamic> @(@column.FkEntityName)Tree()
|
||||
@:{
|
||||
@ -264,7 +264,7 @@ if(@column.EffectType == "ApiTreeSelect" && !definedObjects.ContainsKey("@(@colu
|
||||
@:/// </summary>
|
||||
@:/// <param name="param">检查字段参数</param>
|
||||
@:/// <returns></returns>
|
||||
@:[ApiDescriptionSettings(Name = "exists@(RemoteField)",Description = "检查@(RemoteField)字段是否可用", Order = 940), HttpPost]
|
||||
@:[ApiDescriptionSettings(Name = "exists@(RemoteField)",Description = "检查@(RemoteField)字段是否可用", Order = 910), HttpPost]
|
||||
@:[DisplayName("检查@(RemoteField)字段是否可用")]
|
||||
@:public async Task<bool> Exists@(RemoteField)Async(Exists@(RemoteField)Input param)
|
||||
@:{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user