package com.cheng.bole.ui.fragment.mine.coupon.list

import androidx.collection.ArrayMap
import com.example.base.viewmodel.ListViewModel
import com.cheng.bole.net.ApiFactory
import com.cheng.bole.net.model.toListResult

class CouponListViewModel : ListViewModel<com.cheng.bole.bean.CouponEntity>() {

    override suspend fun requestApi(params: ArrayMap<String, String>): Result<List<com.cheng.bole.bean.CouponEntity>> {
        return ApiFactory.apiService.couponList(params).toListResult()
    }
}