AuthGroupModel.php 469 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\common\model;
  3. class AuthGroupModel extends BaseModel
  4. {
  5. protected $table = 'erp_auth_group';
  6. protected function genSchema(array $schema)
  7. {
  8. // TODO: Implement genSchema() method.
  9. }
  10. public function findByPaginate(array $params) {
  11. $where = [
  12. ['is_delete', '=', 0]
  13. ];
  14. return $this->where($where)->order('create_time','desc')->paginate(['list_rows'=>10, "query" => $params]);
  15. }
  16. }