| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace app\entity\admin\response\profits;
- use app\entity\admin\response\AdminCommonResponseEntity;
- class ZeroUserProfitResponseEntity extends AdminCommonResponseEntity
- {
- /**
- * 创建零号线用户操作成功响应
- * @param null $data
- * @param string $message
- * @param int $code
- * @return AdminCommonResponseEntity
- */
- public static function success(string $message = '操作成功', int $code = 200, $data = null): AdminCommonResponseEntity
- {
- return parent::success($message);
- }
- /**
- * 创建零号线用户操作失败响应
- * @param string $message
- * @param int $code
- * @param null $data
- * @return AdminCommonResponseEntity
- */
- public static function error(string $message = '操作失败', int $code = 400, $data = null): AdminCommonResponseEntity
- {
- return parent::error($message, $code);
- }
- }
|