MethodDict.php 968 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的saas管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace app\dict\sys;
  12. class MethodDict
  13. {
  14. public const GET = 'get';
  15. public const POST = 'post';
  16. public const DELETE = 'delete';
  17. public const PUT = 'put';
  18. public static function getMethodType()
  19. {
  20. return [
  21. self::GET => 'GET',
  22. self::POST => 'POST',
  23. self::PUT => 'PUT',
  24. self::DELETE => 'DELETE',
  25. ];
  26. }
  27. }