12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- namespace App\Modules\Book\Services;
- use App\Modules\Book\Models\UserShelfBooks;
- class UserShelfBooksService
- {
-
- static function getUserShelfBooksListByUid($uid,$page_size=15,$is_all=false)
- {
- return UserShelfBooks::getUserShelfBooksListByUid($uid,$page_size,$is_all);
-
- }
-
- static function getUserShelfBooksListByUidAndBid($uid,$bid){
- return UserShelfBooks::getUserShelfBooksListByUidAndBid($uid,$bid);
- }
-
- static function getShelfById($id){
- return UserShelfBooks::getShelfById($id);
- }
-
- static function create($data){
- return UserShelfBooks::create($data);
- }
-
- static function del($uid,$bid){
- return UserShelfBooks::where('uid',$uid)->where('bid',$bid)->delete();
- }
- }
|