1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <?php
|
| namespace app\common\model\plus\goodstore;
|
| use app\common\model\BaseModel;
|
| /**
| * 模型
| */
| class Store extends BaseModel
| {
| protected $name = 'good_store';
| protected $pk = 'store_id';
|
| /**
| * 详情
| */
| public static function detail($store_id)
| {
| return (new static())->where('store_id', '=', $store_id)->find();
| }
|
| }
|
|