response

package
v0.0.0-...-1aeafd4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FieldNum int
View Source
var FieldSVS string
View Source
var FieldStr string

Functions

This section is empty.

Types

type D

type D struct {
	ReportDate     string  `json:"REPORT_DATE"`
	IndicatorValue float64 `json:"INDICATOR_VALUE"`
}

type Data

type Data struct {
	MDataValue float64 `json:"MDataValue"`
	DataDate   string  `json:"DataDate"`
}

type Field

type Field struct {
	ValueGUID        string `db:"VALUE_GUID"`         // 指标值ID
	TargetGUID       string `db:"TARGET_GUID"`        // 指标ID
	TargetCode       string `db:"TARGET_CODE"`        // 指标代码
	TargetName       string `db:"TARGET_NAME"`        // 指标名称
	TargetNameEN     string `db:"TARGET_NAME_EN"`     // 指标英文名称
	DataSourceCode   string `db:"DATA_SOURCE_CODE"`   // 数据来源代码
	DataSourceName   string `db:"DATA_SOURCE_NAME"`   // 数据来源名称
	SourceTargetCode string `db:"SOURCE_TARGET_CODE"` // 来源系统指标代码
	RegionCode       string `db:"REGION_CODE"`        // 统计地区
	RegionName       string `db:"REGION_NAME"`        // 统计地区说明
	IsQuantity       string `db:"IS_QUANTITY"`        // 是否定量
	UnitType         string `db:"UNIT_TYPE"`          // 计量单位类型
	UnitName         string `db:"UNIT_NAME"`          // 计量单位名称
	PeriodType       string `db:"PERIOD_TYPE"`        // 计量单位类型
	PeriodName       string `db:"PERIOD_NAME"`        // 计量单位名称
	AcctYear         string `db:"ACCT_YEAR"`          // 年
	AcctSeason       string `db:"ACCT_QUARTOR"`       // 季
	AcctMonth        string `db:"ACCT_MONTH"`         // 月
	AcctDate         string `db:"ACCT_DATE"`          // 日
	TargetValue      string `db:"TARGET_VALUE"`       // 指标值
}

func (Field) GetFields

func (f Field) GetFields() (fields []string)

func (Field) GetNumFields

func (f Field) GetNumFields() int

func (Field) GetValues

func (f Field) GetValues() (values []interface{})

type LPR

type LPR struct {
	DateString string `json:"dateString"`
	LoanRate   string `json:"loanRate"`
}

type R

type R struct {
	Data []D `json:"data"`
}

type Respond

type Respond struct {
	Date        string
	TargetValue string
}

func GetEastMoney

func GetEastMoney(sourceTargetCode string) (row []Respond)

func GetIavTB

func GetIavTB(sourceTargetCode string) (row []Respond)

func GetLPR

func GetLPR() (row []Respond)

GetLPR 贷款基准利率

func GetSCI

func GetSCI(pd request.PostData) (row []Respond)

func GetShiBor

func GetShiBor() (row []Respond)

func GetSina

func GetSina(sourceTargetCode string) (row []Respond)

func GetTBI

func GetTBI() (row []Respond)

GetTBI 国债指数 起始日期:2010-01-04

type StructEastMoney

type StructEastMoney struct {
	Result  R    `json:"result"`
	Success bool `json:"success"`
}

type StructLPR

type StructLPR struct {
	Records []LPR `json:"records"`
}

type StructSCI

type StructSCI struct {
	List []Data `json:"List"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL