package model

import kotlinx.serialization.Serializable

@Serializable
data class NaverNewsResponse(
    val items: List<NewsItem>
)

@Serializable
data class NewsItem(
    val title: String,
    val originallink: String,
    val description: String,
    val pubDate: String
)


// service/CorporateService.kt
@kotlinx.serialization.Serializable
data class CorpInfo(
    val corp_name: String, // 법인명
    val induty_code: String, // 업종코드
    val main_business: String, // 주요 사업
    val total_stock: String // 상장주식수 등
)

@kotlinx.serialization.Serializable
data class DartFinancialResponse(
    val status: String,
    val list: List<FinancialAccount>? = null
)

@kotlinx.serialization.Serializable
data class FinancialAccount(
    val account_nm: String, // 계정명 (매출액, 영업이익 등)
    val thstrm_amount: String, // 당기 금액
    val frmtrm_amount: String, // 전기 금액
    val bfefrmtrm_amount: String // 전전기 금액
)

