package com.yidianling.user

import com.ydl.ydlcommon.data.http.BaseResponse
import com.yidianling.user.api.bean.UserResponseBean
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<UserResponseBean>> {
        val userHttp: UserHttp = UserHttpImpl.getInstance()
        return userHttp.login(param)
    }

}