UnitSample.php 341 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. *
  4. *User:Administrator
  5. *Date:2021/10/23
  6. */
  7. namespace app\api\model;
  8. use think\Model;
  9. class UnitSample extends Model
  10. {
  11. public function insertUnitSampleDataGetId(array $data)
  12. {
  13. return parent::insertGetId($data);
  14. }
  15. public function getItemById($id)
  16. {
  17. return $this->where($id)->find();
  18. }
  19. }