package com.remax.visualnovel.api.service

import com.remax.visualnovel.entity.request.CompleteUserInfoInput
import com.remax.visualnovel.entity.request.PlatformAccountVerifyDTO
import com.remax.visualnovel.entity.response.PlatformAccountVerify
import com.remax.visualnovel.entity.response.base.Response
import retrofit2.http.Body
import retrofit2.http.POST

interface LoginService {

    /**
     * 重复昵称验证
     */
    @POST("/web/user/nickname-check")
    suspend fun checkUserNickname(@Body request: CompleteUserInfoInput): Response<Boolean>

    /**
     * 三方账号验证
     */
    @POST("/web/third/login")
    suspend fun platformThirdVerify(@Body request: PlatformAccountVerifyDTO): Response<PlatformAccountVerify>

    @POST("/web/user/logout")
    suspend fun logout(): Response<Any>

    @POST("/web/user/complete-user-info")
    suspend fun register(@Body request: CompleteUserInfoInput): Response<Any>

}