您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

DnsDomainsController.php 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace App\Http\Controller;
  3. use Luticate\Utils\Dbo\LuIntDbo;
  4. use Luticate\Utils\LuController;
  5. use App\Http\Business\DnsDomainsBusiness;
  6. use App\Http\DBO\DnsDomainsDbo;
  7. class DnsDomainsController extends LuController {
  8. protected function getBusiness()
  9. {
  10. return new DnsDomainsBusiness();
  11. }
  12. /**
  13. * Get all dns domains
  14. * @param int $page The page number, 0 based
  15. * @param int $perPage Items per page
  16. * @param string $query The filter query
  17. * @return \App\Http\DBO\DnsDomainsDbo[]
  18. */
  19. public function getAll($page = 0, $perPage = 20000000, $query = "")
  20. {
  21. return DnsDomainsBusiness::getAll($page, $perPage, $query);
  22. }
  23. public function add(DnsDomainsDbo $domain)
  24. {
  25. return DnsDomainsBusiness::add($domain);
  26. }
  27. public function del(LuIntDbo $domain_id)
  28. {
  29. return DnsDomainsBusiness::deleteById($domain_id->getInt());
  30. }
  31. public function edit(LuIntDbo $domain_id, DnsDomainsDbo $domain)
  32. {
  33. $domain->setId($domain_id->getInt());
  34. return DnsDomainsBusiness::edit($domain);
  35. }
  36. }