Common.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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\adminapi\controller\sys;
  12. use app\dict\sys\DateDict;
  13. use core\base\BaseAdminController;
  14. use think\Response;
  15. /**
  16. * 公共数据字典
  17. */
  18. class Common extends BaseAdminController
  19. {
  20. /**
  21. * 月份
  22. * @return Response
  23. */
  24. public function getMonth()
  25. {
  26. return success((new DateDict())->getMonth());
  27. }
  28. /**
  29. * 星期
  30. * @return Response
  31. */
  32. public function getWeek()
  33. {
  34. return success((new DateDict())->getWeek());
  35. }
  36. }