package com.gingersoft.gsa.cloud.main.mvp.model.service;

import com.gingersoft.gsa.cloud.base.common.bean.BaseResult;

import io.reactivex.Observable;
import me.jessyan.retrofiturlmanager.RetrofitUrlManager;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * 作者：ELEGANT_BIN
 * 版本：1.6.0
 * 创建日期：2020-07-11
 * 修订历史：2020-07-11
 * 描述：
 */
public interface LanguageService {

    @Headers({"Domain-Name: system_url"})
    @POST("SystemButtonLanguage/getLanguageByBrandId" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<BaseResult> getLanguageByBrandId(@Body RequestBody requestBody);

    @Headers({"Domain-Name: system_url"})
    @POST("SystemButtonLanguage/getByLanguageId" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Observable<BaseResult> getByLanguageId(@Body RequestBody requestBody);
}
