package com.yidianling.user

import com.ydl.ydlcommon.data.http.BaseResponse
import com.yidianling.router.user.UserResponse
import com.yidianling.user.http.UserHttp
import com.yidianling.user.http.UserHttpImpl
import com.yidianling.user.http.request.LoginParam
import io.reactivex.Observable

/**
 * author : Zhangwenchao
 * e-mail : zhangwch@yidianling.com
 * time   : 2018/02/02
 */
class LoginModel: LoginContract.Model {

    override fun login(param: LoginParam): Observable<BaseResponse<UserResponse>> {
        val userHttp: UserHttp = UserHttpImpl.getInstance()
        return userHttp.login(param)
    }

}