package com.carmaintenance.data.remote

import com.google.gson.annotations.SerializedName

/**
 * 通用API响应封装
 */
data class ApiResponse<T>(
    @SerializedName("code")
    val code: Int,
    @SerializedName("message")
    val message: String? = null,
    @SerializedName("data")
    val data: T? = null
) {
    val isSuccess: Boolean
        get() = code == 200
}
