mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-26 00:32:34 +03:00
add openapi auto generation
some responses refactoring
This commit is contained in:
@@ -3,5 +3,3 @@ package com.example.demo.http.responses
|
||||
open class BaseResponse(val status: ResponseStatus)
|
||||
|
||||
fun makeOkResponse(): BaseResponse = BaseResponse(status = ResponseStatus.OK)
|
||||
|
||||
fun makeNotFoundResponse(): BaseResponse = BaseResponse(status = ResponseStatus.NOT_FOUND)
|
||||
|
||||
Reference in New Issue
Block a user