Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnkwlp authored Jun 4, 2024
1 parent ef4ecaa commit 74d0341
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,46 @@
# DotNet Cli 工具

一个简单的Abp代码辅助生成工具。
一个命令行的 Abp 代码辅助生成工具。

[![NuGet](https://img.shields.io/nuget/v/Passingwind.AbpProjectTools?style=flat-square)](https://www.nuget.org/packages/Passingwind.AbpProjectTools)

#### 一键生成实体的
### 一键生成 Entity 的

- repository
- app service
- domain manager
- app service
- http controller (从 app service 生成)
- typescript types (基于 openapi)
- typescript service (基于 openapi)
- typescript types (基于 openapi json)
- typescript service (基于 openapi json)

#### 其他

- antd pro CRUD 页面

## 如何使用

1. 安装 `dotnet tool install --global Passingwind.AbpProjectTools`
2. 在项目根目录,打开命令行,输入 `abptool gen backend <command> <options>`
> 举例:生成实体 `Product``Repository` : `abptool gen backend repository --project-name Demo --name Product --slu-dir d://work/MyProject`
2. 在项目根目录,打开命令行工具,输入 `abptool gen ` 开始
> 举例:生成实体 `Product``Repository` : `abptool gen backend repository --project-name Demo --name Product`
## 更多命令和参数使用 `--help` 查看

### 后端相关命令
``` shell

```shell
> abptool gen backend --help

backend
Generate abp repository, CRUD app service, http controller code

Usage:
AbpProjectTools [options] generate backend [command]

Options:
--slu-dir <slu-dir> (REQUIRED) The solution root dir
--slu-dir <slu-dir> (REQUIRED) The solution root dir. Default is current directory
--name <name> (REQUIRED) The Domain entity name
--project-name <project-name> (REQUIRED) The project name
--overwrite [default: False]
--project-name <project-name> (REQUIRED) The project name. Default is solution name if found in solution directory
--overwrite Over write file if the target file exists [default: False]
--templates <templates> The template files directory
-?, -h, --help Show help and usage information

Expand All @@ -44,7 +52,8 @@ Commands:
```
### 前端相关命令
``` shell
```shell
> abptool gen fontend --help
fontend

Expand All @@ -56,4 +65,4 @@ Options:

Commands:
ts 生成后端 api 对应的 typescript 的相关文件(types和service),基于 openapi 。
```
```

0 comments on commit 74d0341

Please sign in to comment.