ZeroUserProfitResponseEntity.php 927 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\entity\admin\response\profits;
  3. use app\entity\admin\response\AdminCommonResponseEntity;
  4. class ZeroUserProfitResponseEntity extends AdminCommonResponseEntity
  5. {
  6. /**
  7. * 创建零号线用户操作成功响应
  8. * @param null $data
  9. * @param string $message
  10. * @param int $code
  11. * @return AdminCommonResponseEntity
  12. */
  13. public static function success(string $message = '操作成功', int $code = 200, $data = null): AdminCommonResponseEntity
  14. {
  15. return parent::success($message);
  16. }
  17. /**
  18. * 创建零号线用户操作失败响应
  19. * @param string $message
  20. * @param int $code
  21. * @param null $data
  22. * @return AdminCommonResponseEntity
  23. */
  24. public static function error(string $message = '操作失败', int $code = 400, $data = null): AdminCommonResponseEntity
  25. {
  26. return parent::error($message, $code);
  27. }
  28. }