| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace App\Module\Transaction\Services;
- use App\Module\Test\Models\Test as TestModel;
- interface TestServiceInterface
- {
- /**
- * 创建测试数据
- *
- * @param array $data
- * @return TestModel
- */
- public function create(array $data): TestModel;
- /**
- * 更新测试数据
- *
- * @param TestModel $test
- * @param array $data
- * @return bool
- */
- public function update(TestModel $test, array $data): bool;
- /**
- * 删除测试数据
- *
- * @param TestModel $test
- * @return bool
- */
- public function delete(TestModel $test): bool;
- /**
- * 恢复测试数据
- *
- * @param TestModel $test
- * @return bool
- */
- public function restore(TestModel $test): bool;
- /**
- * 强制删除测试数据
- *
- * @param TestModel $test
- * @return bool
- */
- public function forceDelete(TestModel $test): bool;
- }
|