package com.yidian.shenghuoquan.bsetting.http

import com.yidian.bcommon.http.HttpResult
import com.yidian.bcommon.http.bean.CommitFeedbackBean
import io.reactivex.rxjava3.core.Observable
import retrofit2.http.*

interface SettingApiService {

  private companion object {
    const val mobileLogin = "/user/user/login"
    const val userLogout = "/user/user/logout"
    const val commitFeedback = "/feedback/save"
  }

  /**
   * 手机号登录
   */
  @GET(mobileLogin)
  fun mobileLogin(@QueryMap commonParams: Map<String, String>, @QueryMap params: Map<String, String?>): Observable<HttpResult<Any?>>

  /**
   * 退出登录
   */
  @GET(userLogout)
  fun userLogout(@QueryMap commonParams: Map<String, String>, @QueryMap params: Map<String, String?>): Observable<HttpResult<Any?>>

  /**
   * 用户反馈提交
   */
  @Headers("Content-Type: application/json")
  @POST(commitFeedback)
  fun commitFeedback(@Body requestParams: CommitFeedbackBean.CommitFeedbackRequest): Observable<HttpResult<CommitFeedbackBean.CommitFeedbackResponse>>

}
