Skip to content

Commit c2ddf0e

Browse files
author
zhaoxiang
committed
added 新增自动构建脚本
1 parent b9b3377 commit c2ddf0e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

install/control.tpl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare (strict_types=1);
33
/**
4-
* 由ApiAdmin自动构建,请处理{$MODEL_NAME}
4+
* 由ApiAdmin自动构建,请处理{$MODEL_NAME}
55
* @author apiadmin <apiadmin.org>
66
*/
77

@@ -13,7 +13,7 @@ use think\Response;
1313

1414
class {$NAME} extends Base {
1515
/**
16-
* 获取
16+
* 获取
1717
* @return \think\Response
1818
* @throws \think\db\exception\DbException
1919
* @author apiadmin <apiadmin.org>
@@ -32,7 +32,7 @@ class {$NAME} extends Base {
3232
}
3333

3434
/**
35-
* 添加
35+
* 添加
3636
* @return Response
3737
* @author apiadmin <apiadmin.org>
3838
*/
@@ -47,7 +47,7 @@ class {$NAME} extends Base {
4747
}
4848

4949
/**
50-
* 编辑
50+
* 编辑
5151
* @return Response
5252
* @author apiadmin <apiadmin.org>
5353
*/
@@ -62,17 +62,17 @@ class {$NAME} extends Base {
6262
}
6363

6464
/**
65-
* 删除
65+
* 删除
6666
* @return Response
6767
* @author apiadmin <apiadmin.org>
6868
*/
6969
public function del(): Response {
7070
$id = $this->request->get('id');
7171
if (!$id) {
72-
return $this->buildFailed(ReturnCode::EMPTY_PARAMS, '缺少必要参数');
72+
return $this->buildFailed(ReturnCode::EMPTY_PARAMS, '缺少必要参数');
7373
}
7474

75-
// 请处理部分删除数据
75+
// 请处理部分删除数据
7676
{$MODEL_NAME}::destroy(['id' => $id]);
7777

7878
return $this->buildSuccess();

0 commit comments

Comments
 (0)