feat: 增加默认api风格参数

This commit is contained in:
李东云
2023-03-13 13:32:48 +08:00
parent b8c3d6d068
commit e33c115938

View File

@@ -29,6 +29,8 @@ class ApiStyleService
public function get(): string
{
return Context::get(self::class);
return Context::get(self::class) ?? (config('common.response.restful')
? ApiStyleService::RESTFUL
: ApiStyleService::CLASSIC);
}
}