钻石开通贵族增加roomUid参数
This commit is contained in:
@@ -6,6 +6,8 @@ import com.mango.core.manager.AvRoomDataManager
|
|||||||
import com.mango.core.pay.bean.ChargeBean
|
import com.mango.core.pay.bean.ChargeBean
|
||||||
import com.mango.core.utils.net.launchRequest
|
import com.mango.core.utils.net.launchRequest
|
||||||
import com.mango.xchat_android_library.net.rxnet.RxNet
|
import com.mango.xchat_android_library.net.rxnet.RxNet
|
||||||
|
import retrofit2.http.Field
|
||||||
|
import retrofit2.http.FormUrlEncoded
|
||||||
import retrofit2.http.GET
|
import retrofit2.http.GET
|
||||||
import retrofit2.http.POST
|
import retrofit2.http.POST
|
||||||
import retrofit2.http.Query
|
import retrofit2.http.Query
|
||||||
@@ -56,7 +58,7 @@ object VipModel : BaseModel() {
|
|||||||
|
|
||||||
suspend fun openVipWithDiamond(): Any? =
|
suspend fun openVipWithDiamond(): Any? =
|
||||||
launchRequest {
|
launchRequest {
|
||||||
api.openVipWithDiamond()
|
api.openVipWithDiamond(AvRoomDataManager.get().mCurrentRoomInfo?.roomUid)
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun getOpenVipProd(): ChargeBean? =
|
suspend fun getOpenVipProd(): ChargeBean? =
|
||||||
@@ -139,8 +141,9 @@ object VipModel : BaseModel() {
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@FormUrlEncoded
|
||||||
@POST("/vip/openWithDiamond")
|
@POST("/vip/openWithDiamond")
|
||||||
suspend fun openVipWithDiamond(): ServiceResult<Any>
|
suspend fun openVipWithDiamond(@Field("roomUid") roomUid: Long?): ServiceResult<Any>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取开通贵族产品
|
* 获取开通贵族产品
|
||||||
|
Reference in New Issue
Block a user