更新文档
This commit is contained in:
parent
8e7c1df8a1
commit
d1deda6234
@ -1,59 +0,0 @@
|
|||||||
import request from '@/utils/request'
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 代码生成测试分页查询
|
|
||||||
* @param {查询条件} data
|
|
||||||
*/
|
|
||||||
export function listGendemo(query) {
|
|
||||||
return request({
|
|
||||||
url: 'business/Gendemo/list',
|
|
||||||
method: 'get',
|
|
||||||
params: query,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增代码生成测试
|
|
||||||
* @param data
|
|
||||||
*/
|
|
||||||
export function addGendemo(data) {
|
|
||||||
return request({
|
|
||||||
url: 'business/Gendemo',
|
|
||||||
method: 'post',
|
|
||||||
data: data,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改代码生成测试
|
|
||||||
* @param data
|
|
||||||
*/
|
|
||||||
export function updateGendemo(data) {
|
|
||||||
return request({
|
|
||||||
url: 'business/Gendemo',
|
|
||||||
method: 'PUT',
|
|
||||||
data: data,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取代码生成测试详情
|
|
||||||
* @param {Id} {ModelTypeDesc}Id
|
|
||||||
*/
|
|
||||||
export function getGendemo(id) {
|
|
||||||
return request({
|
|
||||||
url: 'business/Gendemo/' + id,
|
|
||||||
method: 'get'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
* @param {主键} pid
|
|
||||||
*/
|
|
||||||
export function delGendemo(pid) {
|
|
||||||
return request({
|
|
||||||
url: 'business/Gendemo/' + pid,
|
|
||||||
method: 'delete'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
BIN
document/images/15-1.png
Normal file
BIN
document/images/15-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.5 MiB |
@ -1 +1,9 @@
|
|||||||
## nginx部署文档.md
|
## nginx部署文档.md
|
||||||
|
|
||||||
|
1. 拷贝zradmin.ini文件代码到nginx配置文件http模块中
|
||||||
|
2. 在nginx安装目录中的html目录中创建文件夹zradmin_vue
|
||||||
|
3. 发布ZR.Admin.WebApi项目并部署到服务器中启动
|
||||||
|
4. 发布ZR.Vue项目并拷贝dist文件中的代码到刚刚创建的zradmin_vue中
|
||||||
|
5. 浏览器中访问 http://localhost:8080
|
||||||
|
|
||||||
|
注意:服务器防火墙的设置开放8080 端口
|
||||||
@ -1,4 +1,18 @@
|
|||||||
## 代码生成器使用教程
|
## 代码生成器使用教程
|
||||||
|
|
||||||
|
### 修改配置文件appsettings.json
|
||||||
|
```
|
||||||
|
"gen": {
|
||||||
|
"conn": "server=127.0.0.1;user=zr;pwd=abc;database={database}",
|
||||||
|
"dbType": 0, //MySql = 0, SqlServer = 1
|
||||||
|
"autoPre": true, //自动去除表前缀
|
||||||
|
"author": "zr",
|
||||||
|
"tablePrefix": "sys_" //"表前缀(生成类名不会包含表前缀,多个用","分隔)",
|
||||||
|
}
|
||||||
|
```
|
||||||
|
修改conn数据库连接字符串其中{database}为动态要替换的数据库名
|
||||||
|
<img src="https://www.izhaorui.cn/images/zradmin/15-1.png"/>
|
||||||
|
|
||||||
|
|
||||||
👉视频教程:
|
👉视频教程:
|
||||||
- [观看视频](./images/代码生成演示202109250747.mp4)
|
- [观看视频](./images/代码生成演示202109250747.mp4)
|
||||||
Loading…
x
Reference in New Issue
Block a user