体现 resp req 对象

This commit is contained in:
renhaoting 2025-12-10 16:00:31 +08:00
parent c2b41a5309
commit c669384d3c
4 changed files with 156 additions and 0 deletions

View File

@ -17,6 +17,9 @@ object VidiConst {
const val URL_ZERO_BUY: String = "https://jt.3idiotstudio.com"
const val URL_WITHDRAW: String = "https://jpec.3idiotstudio.com"
/**
@ -35,6 +38,10 @@ object VidiConst {
const val DIAMOND_NUM_FOR_ONE_AD = 5
}

View File

@ -0,0 +1,28 @@
package com.gamedog.vididin.feature.home.api
import com.gamedog.vididin.VidiConst
import com.gamedog.vididin.beans.req.PayInitReq
import com.gamedog.vididin.beans.req.PayoutCheckReq
import com.gamedog.vididin.beans.req.PayoutReq
import com.gamedog.vididin.beans.resp.PayInit
import com.gamedog.vididin.beans.resp.PayoutCheckData
import com.gamedog.vididin.beans.resp.PayoutData
import retrofit2.http.Body
import retrofit2.http.POST
interface WithDrawApi {
@POST(VidiConst.URL_WITHDRAW + "/eonline4/pay/init")
suspend fun withdrawInit(@Body param: PayInitReq): PayInit
@POST(VidiConst.URL_WITHDRAW + "/eonline4/payoutBrazil")
suspend fun withdrawPayout(@Body param: PayoutReq): PayoutData
@POST(VidiConst.URL_WITHDRAW + "/eonline4/payout/check")
suspend fun withdrawCheck(@Body param: PayoutCheckReq): PayoutCheckData
}

View File

@ -0,0 +1,31 @@
package com.gamedog.vididin.beans.req
import com.gamedog.vididin.beans.resp.PbReportDataAdjust
import com.gamedog.vididin.beans.resp.PbReportDataShuShu
open class PayInitReq (
var platform: String? = null,
var deviceid: String? = null,
var version: String? = null,
var ip: String? = null,
var ts: String? = null,
var sign: String? = null,
)
data class PayoutReq(
var account: String? = null,
var item_id: Int = 0,
var amount: String? = null,
var additional_remark: String? = null,
var uuid: String? = null,
var account_type: String? = null,
var document_type: String? = null,
var document_id: String? = null,
var name: String? = null,
var clientName: String? = null,
var dataAdjust: PbReportDataAdjust = PbReportDataAdjust(),
var dataShuShu: PbReportDataShuShu = PbReportDataShuShu(),
) : PayInitReq()
data class PayoutCheckReq(var record_no: String? = null) : PayInitReq()

View File

@ -0,0 +1,90 @@
package com.gamedog.vididin.beans.resp
data class WithDrawRespData (
var items: MutableList<InitIem?>? = null,
var UUID: String? = null,
var IP: String? = null,
)
open class BaseReply (
var code: Int = 0,
var msg: String? = null
)
data class PayInit(var data: PayInitReply? = null) : BaseReply() {
}
open class PayInitReply (
var uuid: String? = null,
var items: MutableList<InitIem?>? = null,
var days: Int = 0,
var error: Int = 0,
)
data class InitIem (
var id: Int = 0,
var amount: Float = 0f,
var status: Int = 0,
)
data class PbReportDataAdjust(
var gps_adid: String? = null, // 用户的gaid
var android_id: String? = null, // 原始安卓 ID
var adid: String? = null, // 与设备关联的 Adjust 标识符
var user_agent: String? = null, // 设备的User-Agent。必须进行 URL 编码。
var price: String? = null, // 客户端上报的价格 客户端上报的价格例如0.05
var currency: String? = null, // 货币单位 客户端上报的货币,例如
)
data class PbReportDataShuShu(
var gps_gaid: String? = null, // 用户的gaid
var android_id: String? = null ,// 原始安卓 ID
var adid: String? = null, // 与设备关联的 Adjust 标识符
var user_agent: String? = null, // 设备的User-Agent。必须进行 URL 编码
var price: String? = null, // 客户端上报的价格 客户端上报的价格例如0.05
var currency: String? = null, // 货币单位 客户端上报的货币例如USD
var payment_method: String? = null, // 收款方式 暂时只有一种pix
var payment_type: String? = null, // 账户形式 cpf/cnpj/evp/email/phone
var payment_number: String? = null, // 账户号码 收款账号号码
var iap_name: String? = null, // 商品名称 游戏侧自定义的提现项目名称例如0.1br/50br/100br
var gamecoin_number: String? = null, // 提现消耗的虚拟货币数 提现消耗的虚拟货币数量例如1500
var gamecoin_type: String? = null, // 提现消耗的虚拟货币类型 金币或钞票例如coin/money
var ss_account_id: String? = null, // 数数账号ID 用户的登录ID(如果需要接入数数请务必传此值)
var ss_distinct_id: String? = null, // 数数访客ID 用户在未登录状态下的ID(如果需要接入数数请务必传此值)
var ss_super_properties: String? = null, // 数数的公共属性和预制属性 json字符串
)
data class PayoutData(
var data: PayoutReply? = null
) : BaseReply()
data class PayoutReply (
var id: String? = null,
var record_no: String? = null,
var error: Int = 0,
)
data class PayoutCheckData(var data: PayoutCheck? = null) : BaseReply()
data class PayoutCheck(
var status: Int = 0,
var error: Int = 0,
)