* +---------------------------------------------------------------------- */ namespace App\Http\Contract\Client; use Illuminate\Contracts\Container\BindingResolutionException; interface ContractResourceInterface { /** * 获取列表. */ public function getList(array $where, array $field = ['*'], array|string $sort = 'id', array $with = []): array; /** * 获取详情. */ public function getInfo(array $where, array $field = ['*'], array $with = []): array; /** * 保存. * @throws BindingResolutionException */ public function save(array $data, int $uid): mixed; /** * 修改. * @throws BindingResolutionException * @throws \ReflectionException */ public function update(int $id, array $data): mixed; }