baseconfig.class.php 828 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: wangming
  5. * Date: 2019/1/22
  6. * Time: 21:34
  7. */
  8. class Baseconfig{
  9. public function __construct()
  10. {
  11. }
  12. static public function getInfoById($id)
  13. {
  14. $Table_baseconfig = new Table_baseconfig();
  15. return $Table_baseconfig->getInfoById($id);
  16. }
  17. static public function getInfoByKey($openId)
  18. {
  19. $Table_baseconfig = new Table_baseconfig();
  20. return $Table_baseconfig->getInfoByKey($openId);
  21. }
  22. static public function add($attrs)
  23. {
  24. $Table_baseconfig = new Table_baseconfig();
  25. $id = $Table_baseconfig->add($attrs);
  26. return $id;
  27. }
  28. static public function update($id, $attrs)
  29. {
  30. $Table_baseconfig = new Table_baseconfig();
  31. return $Table_baseconfig->update($id, $attrs);
  32. }
  33. }