Przeglądaj źródła

wesmiler 报恩寺项目提交

wesmiler 4 lat temu
rodzic
commit
8f979902f2

+ 2 - 2
app/Http/Controllers/Api/v1/EnshrineController.php

@@ -7,7 +7,7 @@ use App\Http\Validator\EnshrineNoticeValidator;
 use App\Http\Validator\EnshrineValidator;
 use App\Services\EnshrineNoticeService;
 use App\Services\EnshrineService;
-use App\Services\MontionService;
+use App\Services\MotionService;
 use Illuminate\Http\Request;
 
 /**
@@ -31,7 +31,7 @@ class EnshrineController extends BaseController
 
         $this->service = new EnshrineService();
         $this->noticeService = new EnshrineNoticeService();
-        $this->motionService = new MontionService();
+        $this->motionService = new MotionService();
     }
 
 

+ 41 - 0
app/Models/MotionModel.php

@@ -0,0 +1,41 @@
+<?php
+// +----------------------------------------------------------------------
+// | Laravel框架 [ Laravel ]
+// +----------------------------------------------------------------------
+// | 版权所有 2017~2021 Laravel研发中心
+// +----------------------------------------------------------------------
+// | 官方网站: http://www.laravel.cn
+// +----------------------------------------------------------------------
+// | Author: wesmiler <12345678@qq.com>
+// +----------------------------------------------------------------------
+
+namespace App\Models;
+
+/**
+ * 念佛记录管理-模型
+ * @author wesmiler
+ * @since 2020/11/11
+ * Class MotionModel
+ * @package App\Models
+ */
+class MotionModel extends BaseModel
+{
+    // 设置数据表
+    protected $table = 'motions';
+
+    /**
+     * 获取记录信息
+     * @param int $id 记录ID
+     * @return array|string
+     * @author wesmiler
+     * @since 2020/11/11
+     */
+    public function getInfo($id)
+    {
+        $info = parent::getInfo($id); // TODO: Change the autogenerated stub
+        if ($info) {
+
+        }
+        return $info;
+    }
+}