CertificateCategory.php 585 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. *
  4. * @copyright ©2020 点小铺
  5. * @author hanj
  6. * @link: https://dyuit.com
  7. * Created by VSCode
  8. */
  9. namespace app\common\model;
  10. use think\Cache;
  11. /**
  12. * 拼团商品分类模型
  13. * Class Category
  14. *
  15. * @package app\common\model
  16. */
  17. class CertificateCategory extends BaseModel
  18. {
  19. protected $name = 'certificate_category';
  20. /**
  21. * [detail]
  22. *
  23. * @Author: Yeshihao
  24. * @DateTime: 2024/11/26 14:25
  25. * @param $id
  26. * @return CertificateCategory|null
  27. * @throws \think\exception\DbException
  28. */
  29. public static function detail($id)
  30. {
  31. return static::get($id);
  32. }
  33. }