浏览代码

delete by id return int

develop
Robin Thoni 9 年前
父节点
当前提交
ef853c0c41
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      src/Utils/Business/LuBusiness.php

+ 3
- 3
src/Utils/Business/LuBusiness.php 查看文件

36
 
36
 
37
     /**
37
     /**
38
      * @param $id int
38
      * @param $id int
39
-     * @return LuDbo|null
39
+     * @return LuDbo
40
      */
40
      */
41
     public static function getById($id)
41
     public static function getById($id)
42
     {
42
     {
49
 
49
 
50
     /**
50
     /**
51
      * @param $id int
51
      * @param $id int
52
-     * @return true
52
+     * @return int
53
      */
53
      */
54
     public static function deleteById($id)
54
     public static function deleteById($id)
55
     {
55
     {
57
         if (!$res) {
57
         if (!$res) {
58
             self::notFound(static::getResourceName() . " not found");
58
             self::notFound(static::getResourceName() . " not found");
59
         }
59
         }
60
-        return true;
60
+        return $res;
61
     }
61
     }
62
 
62
 
63
     /**
63
     /**

正在加载...
取消
保存