package com.swago.baseswago.inter

import com.swago.baseswago.model.LoginModel
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

/**
 *@date 2021/8/15 11:36
 *description:
 */
interface LoginApi {

    @FormUrlEncoded
    @POST("/v1/user/login")
    suspend fun login(@Field("login_source")source:String,@Field("secret")token:String): LoginModel


    @FormUrlEncoded
    @POST("/v1/user/login")
    suspend fun loginByAccount(@Field("user_account")user_account:String,@Field("secret")token:String,@Field("login_source")source:String="app"): LoginModel


    @POST("/v1/user/get/im/sign")
    suspend fun loginByAuto():LoginModel

}