refactor: remove unused fields from BondData struct for improved clarity and maintainability
This commit is contained in:
parent
a1fcfe4366
commit
9c3c5f9b64
@ -7,37 +7,37 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type BondData struct {
|
type BondData struct {
|
||||||
SecurityCode string `json:"SECURITY_CODE" db:"SecurityCode"`
|
SecurityCode string `json:"SECURITY_CODE" db:"SecurityCode"`
|
||||||
SecuCode string `json:"SECUCODE" db:"SecuCode"`
|
SecuCode string `json:"SECUCODE" db:"SecuCode"`
|
||||||
TradeMarket string `json:"TRADE_MARKET" db:"TradeMarket"`
|
TradeMarket string `json:"TRADE_MARKET" db:"TradeMarket"`
|
||||||
SecurityNameAbbr string `json:"SECURITY_NAME_ABBR" db:"SecurityNameAbbr"`
|
SecurityNameAbbr string `json:"SECURITY_NAME_ABBR" db:"SecurityNameAbbr"`
|
||||||
DelistDate *CustomTime `json:"DELIST_DATE" db:"DelistDate"`
|
// DelistDate *CustomTime `json:"DELIST_DATE" db:"DelistDate"`
|
||||||
ListingDate *CustomTime `json:"LISTING_DATE" db:"ListingDate"`
|
ListingDate *CustomTime `json:"LISTING_DATE" db:"ListingDate"`
|
||||||
ConvertStockCode string `json:"CONVERT_STOCK_CODE" db:"ConvertStockCode"`
|
ConvertStockCode string `json:"CONVERT_STOCK_CODE" db:"ConvertStockCode"`
|
||||||
BondExpire string `json:"BOND_EXPIRE" db:"BondExpire"`
|
BondExpire string `json:"BOND_EXPIRE" db:"BondExpire"`
|
||||||
Rating string `json:"RATING" db:"Rating"`
|
Rating string `json:"RATING" db:"Rating"`
|
||||||
ValueDate CustomTime `json:"VALUE_DATE" db:"ValueDate"`
|
ValueDate CustomTime `json:"VALUE_DATE" db:"ValueDate"`
|
||||||
IssueYear string `json:"ISSUE_YEAR" db:"IssueYear"`
|
IssueYear string `json:"ISSUE_YEAR" db:"IssueYear"`
|
||||||
CeaseDate CustomTime `json:"CEASE_DATE" db:"CeaseDate"`
|
CeaseDate CustomTime `json:"CEASE_DATE" db:"CeaseDate"`
|
||||||
ExpireDate CustomTime `json:"EXPIRE_DATE" db:"ExpireDate"`
|
ExpireDate CustomTime `json:"EXPIRE_DATE" db:"ExpireDate"`
|
||||||
PayInterestDay string `json:"PAY_INTEREST_DAY" db:"PayInterestDay"`
|
PayInterestDay string `json:"PAY_INTEREST_DAY" db:"PayInterestDay"`
|
||||||
InterestRateExplain string `json:"INTEREST_RATE_EXPLAIN" db:"InterestRateExplain"`
|
InterestRateExplain string `json:"INTEREST_RATE_EXPLAIN" db:"InterestRateExplain"`
|
||||||
BondCombineCode string `json:"BOND_COMBINE_CODE" db:"BondCombineCode"`
|
BondCombineCode string `json:"BOND_COMBINE_CODE" db:"BondCombineCode"`
|
||||||
ActualIssueScale float64 `json:"ACTUAL_ISSUE_SCALE" db:"ActualIssueScale"`
|
ActualIssueScale float64 `json:"ACTUAL_ISSUE_SCALE" db:"ActualIssueScale"`
|
||||||
IssuePrice float64 `json:"ISSUE_PRICE" db:"IssuePrice"`
|
IssuePrice float64 `json:"ISSUE_PRICE" db:"IssuePrice"`
|
||||||
Remark string `json:"REMARK" db:"Remark"`
|
Remark string `json:"REMARK" db:"Remark"`
|
||||||
ParValue float64 `json:"PAR_VALUE" db:"ParValue"`
|
ParValue float64 `json:"PAR_VALUE" db:"ParValue"`
|
||||||
IssueObject string `json:"ISSUE_OBJECT" db:"IssueObject"`
|
IssueObject string `json:"ISSUE_OBJECT" db:"IssueObject"`
|
||||||
RedeemType *string `json:"REDEEM_TYPE" db:"RedeemType"`
|
// RedeemType *string `json:"REDEEM_TYPE" db:"RedeemType"`
|
||||||
ExecuteReasonHS *string `json:"EXECUTE_REASON_HS" db:"ExecuteReasonHS"`
|
// ExecuteReasonHS *string `json:"EXECUTE_REASON_HS" db:"ExecuteReasonHS"`
|
||||||
NoticeDateHS *CustomTime `json:"NOTICE_DATE_HS" db:"NoticeDateHS"`
|
// NoticeDateHS *CustomTime `json:"NOTICE_DATE_HS" db:"NoticeDateHS"`
|
||||||
NoticeDateSH *CustomTime `json:"NOTICE_DATE_SH" db:"NoticeDateSH"`
|
// NoticeDateSH *CustomTime `json:"NOTICE_DATE_SH" db:"NoticeDateSH"`
|
||||||
ExecutePriceHS *float64 `json:"EXECUTE_PRICE_HS" db:"ExecutePriceHS"`
|
// ExecutePriceHS *float64 `json:"EXECUTE_PRICE_HS" db:"ExecutePriceHS"`
|
||||||
ExecutePriceSH *float64 `json:"EXECUTE_PRICE_SH" db:"ExecutePriceSH"`
|
// ExecutePriceSH *float64 `json:"EXECUTE_PRICE_SH" db:"ExecutePriceSH"`
|
||||||
RecordDateSH *CustomTime `json:"RECORD_DATE_SH" db:"RecordDateSH"`
|
// RecordDateSH *CustomTime `json:"RECORD_DATE_SH" db:"RecordDateSH"`
|
||||||
ExecuteStartDateSH *CustomTime `json:"EXECUTE_START_DATESH" db:"ExecuteStartDateSH"`
|
// ExecuteStartDateSH *CustomTime `json:"EXECUTE_START_DATESH" db:"ExecuteStartDateSH"`
|
||||||
ExecuteStartDateHS *CustomTime `json:"EXECUTE_START_DATEHS" db:"ExecuteStartDateHS"`
|
// ExecuteStartDateHS *CustomTime `json:"EXECUTE_START_DATEHS" db:"ExecuteStartDateHS"`
|
||||||
ExecuteEndDate *CustomTime `json:"EXECUTE_END_DATE" db:"ExecuteEndDate"`
|
// ExecuteEndDate *CustomTime `json:"EXECUTE_END_DATE" db:"ExecuteEndDate"`
|
||||||
CorreCode string `json:"CORRECODE" db:"CorreCode"`
|
CorreCode string `json:"CORRECODE" db:"CorreCode"`
|
||||||
CorreCodeNameAbbr string `json:"CORRECODE_NAME_ABBR" db:"CorreCodeNameAbbr"`
|
CorreCodeNameAbbr string `json:"CORRECODE_NAME_ABBR" db:"CorreCodeNameAbbr"`
|
||||||
PublicStartDate CustomTime `json:"PUBLIC_START_DATE" db:"PublicStartDate"`
|
PublicStartDate CustomTime `json:"PUBLIC_START_DATE" db:"PublicStartDate"`
|
||||||
@ -60,24 +60,24 @@ type BondData struct {
|
|||||||
TransferValue float64 `json:"TRANSFER_VALUE" db:"TransferValue"`
|
TransferValue float64 `json:"TRANSFER_VALUE" db:"TransferValue"`
|
||||||
CurrentBondPrice interface{} `json:"CURRENT_BOND_PRICE" db:"CurrentBondPrice"`
|
CurrentBondPrice interface{} `json:"CURRENT_BOND_PRICE" db:"CurrentBondPrice"`
|
||||||
TransferPremiumRatio float64 `json:"TRANSFER_PREMIUM_RATIO" db:"TransferPremiumRatio"`
|
TransferPremiumRatio float64 `json:"TRANSFER_PREMIUM_RATIO" db:"TransferPremiumRatio"`
|
||||||
ConvertStockPriceHQ *float64 `json:"CONVERT_STOCK_PRICEHQ" db:"ConvertStockPriceHQ"`
|
// ConvertStockPriceHQ *float64 `json:"CONVERT_STOCK_PRICEHQ" db:"ConvertStockPriceHQ"`
|
||||||
Market *string `json:"MARKET" db:"Market"`
|
// Market *string `json:"MARKET" db:"Market"`
|
||||||
ResaleTrigPrice float64 `json:"RESALE_TRIG_PRICE" db:"ResaleTrigPrice"`
|
ResaleTrigPrice float64 `json:"RESALE_TRIG_PRICE" db:"ResaleTrigPrice"`
|
||||||
RedeemTrigPrice float64 `json:"REDEEM_TRIG_PRICE" db:"RedeemTrigPrice"`
|
RedeemTrigPrice float64 `json:"REDEEM_TRIG_PRICE" db:"RedeemTrigPrice"`
|
||||||
PBVRatio float64 `json:"PBV_RATIO" db:"PBVRatio"`
|
PBVRatio float64 `json:"PBV_RATIO" db:"PBVRatio"`
|
||||||
IBStartDate CustomTime `json:"IB_START_DATE" db:"IBStartDate"`
|
IBStartDate CustomTime `json:"IB_START_DATE" db:"IBStartDate"`
|
||||||
IBEndDate CustomTime `json:"IB_END_DATE" db:"IBEndDate"`
|
IBEndDate CustomTime `json:"IB_END_DATE" db:"IBEndDate"`
|
||||||
CashflowDate CustomTime `json:"CASHFLOW_DATE" db:"CashflowDate"`
|
CashflowDate CustomTime `json:"CASHFLOW_DATE" db:"CashflowDate"`
|
||||||
CouponIR float64 `json:"COUPON_IR" db:"CouponIR"`
|
CouponIR float64 `json:"COUPON_IR" db:"CouponIR"`
|
||||||
ParamName string `json:"PARAM_NAME" db:"ParamName"`
|
ParamName string `json:"PARAM_NAME" db:"ParamName"`
|
||||||
IssueType string `json:"ISSUE_TYPE" db:"IssueType"`
|
IssueType string `json:"ISSUE_TYPE" db:"IssueType"`
|
||||||
ExecuteReasonSH *string `json:"EXECUTE_REASON_SH" db:"ExecuteReasonSH"`
|
ExecuteReasonSH *string `json:"EXECUTE_REASON_SH" db:"ExecuteReasonSH"`
|
||||||
PaydayNew string `json:"PAYDAYNEW" db:"PaydayNew"`
|
PaydayNew string `json:"PAYDAYNEW" db:"PaydayNew"`
|
||||||
CurrentBondPriceNew interface{} `json:"CURRENT_BOND_PRICENEW" db:"CurrentBondPriceNew"`
|
CurrentBondPriceNew interface{} `json:"CURRENT_BOND_PRICENEW" db:"CurrentBondPriceNew"`
|
||||||
IsConvertStock string `json:"IS_CONVERT_STOCK" db:"IsConvertStock"`
|
IsConvertStock string `json:"IS_CONVERT_STOCK" db:"IsConvertStock"`
|
||||||
IsRedeem string `json:"IS_REDEEM" db:"IsRedeem"`
|
IsRedeem string `json:"IS_REDEEM" db:"IsRedeem"`
|
||||||
IsSellback string `json:"IS_SELLBACK" db:"IsSellback"`
|
IsSellback string `json:"IS_SELLBACK" db:"IsSellback"`
|
||||||
FirstProfit *float64 `json:"FIRST_PROFIT" db:"FirstProfit"`
|
FirstProfit *float64 `json:"FIRST_PROFIT" db:"FirstProfit"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CustomTime struct {
|
type CustomTime struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user