mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-26 00:32:34 +03:00
create http package, move http classes to that package
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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