Skip to content

Commit

Permalink
Merge pull request #161 from EasyAbp/without-contracts
Browse files Browse the repository at this point in the history
Support the ABP CLI `without-contracts` option
  • Loading branch information
gdlcf88 committed May 4, 2023
2 parents 35c105a + f43242f commit 1485ad9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,21 @@ public class AbpGenerateRemoveAngularProxyInput : InputDtoWithDirectory
[CanBeNull]
public virtual string Url { get; set; }

[CanBeNull]
public virtual string Prompt { get; set; }
public virtual bool WithoutContracts { get; set; }

public AbpGenerateRemoveAngularProxyInput()
{
}

public AbpGenerateRemoveAngularProxyInput([CanBeNull] string module, [CanBeNull] string apiName,
[CanBeNull] string source, [CanBeNull] string target, [CanBeNull] string url, [CanBeNull] string prompt)
[CanBeNull] string source, [CanBeNull] string target, [CanBeNull] string url, bool withoutContracts)
{
Module = module;
ApiName = apiName;
Source = source;
Target = target;
Url = url;
Prompt = prompt;
WithoutContracts = withoutContracts;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
"AbpCli_Proxy:Url": "Url",
"AbpCli_Proxy:Module": "Module",
"AbpCli_Proxy:Folder": "Folder",
"AbpCli_Proxy:WithoutContracts": "Without contracts",
"AbpCli_Proxy:ApiName": "ApiName",
"AbpCli_Proxy:Source": "Source",
"AbpCli_Proxy:Target": "Target",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
"AbpCli_Proxy:Url": "网址 - Url",
"AbpCli_Proxy:Module": "模块 - Module",
"AbpCli_Proxy:Folder": "生成到目录 - Folder",
"AbpCli_Proxy:WithoutContracts": "不生成合約層內容 - WithoutContracts",
"AbpCli_Proxy:ApiName": "API 端点名 - ApiName",
"AbpCli_Proxy:Source": "源项目名 - Source",
"AbpCli_Proxy:Target": "目标项目名 - Target",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
"AbpCli_Proxy:Url": "網址 - Url",
"AbpCli_Proxy:Module": "模塊 - Module",
"AbpCli_Proxy:Folder": "生成到目錄 - Folder",
"AbpCli_Proxy:WithoutContracts": "不生成合约层内容 - WithoutContracts",
"AbpCli_Proxy:ApiName": "API 端點名 - ApiName",
"AbpCli_Proxy:Source": "源項目名 - Source",
"AbpCli_Proxy:Target": "目標項目名 - Target",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@
</TextEdit>
</Field>
</Validation>
<Field>
<Check TValue="bool" @bind-Checked="@Input.WithoutContracts">@L["AbpCli_Proxy:WithoutContracts"]</Check>
</Field>

<SubmitButton Block="true" Clicked="@ExecuteAsync" SaveResourceKey="Button:GenerateProxy" />
<SubmitButton Block="true" Clicked="@ExecuteRemoveAsync" SaveResourceKey="Button:RemoveProxy" Color="Color.Warning" />
Expand Down

0 comments on commit 1485ad9

Please sign in to comment.