登录中心功能开发

This commit is contained in:
mzl
2025-07-07 18:34:21 +08:00
parent 642c25503d
commit 4ddf4921b2
13 changed files with 372 additions and 7 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ trait ResponseTrait
public function success(
$data = [],
string $message = '请求成功',
int $code = 0,
int $code = 200,
int $httpStatus = 200,
array $header = ['Content-Type' => 'application/json']
): Response {
@@ -38,7 +38,7 @@ trait ResponseTrait
*/
public function error(
string $message = '请求失败',
int $code = 1,
int $code = 400,
int $httpStatus = 400,
$data = [],
array $header = ['Content-Type' => 'application/json']