File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 11<?php
22declare (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
1414class { $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();
You can’t perform that action at this time.
0 commit comments