시큐리티 설정
유저 API - 로그인, 회원가입, 계정정보 추가
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package kr.co.vividnext.sodalive.common
|
||||
|
||||
data class ApiResponse<T>(
|
||||
val success: Boolean,
|
||||
val message: String? = null,
|
||||
val data: T? = null,
|
||||
val errorProperty: String? = null
|
||||
) {
|
||||
companion object {
|
||||
fun <T> ok(data: T? = null, message: String? = null) = ApiResponse(
|
||||
success = true,
|
||||
message = message,
|
||||
data = data
|
||||
)
|
||||
|
||||
fun error(message: String? = null, errorProperty: String? = null) = ApiResponse<Any>(
|
||||
success = false,
|
||||
message = message,
|
||||
errorProperty = errorProperty
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user