model

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataBase

type DataBase struct {
	ValueGUID        string `db:"VALUE_GUID" json:"valueGuid"`                // 指标值ID
	TargetGUID       string `db:"TARGET_GUID" json:"targetGuid"`              // 指标ID
	TargetCode       string `db:"TARGET_CODE" json:"targetCode"`              // 指标代码
	TargetName       string `db:"TARGET_NAME" json:"targetName"`              // 指标名称
	TargetNameEN     string `db:"TARGET_NAME_EN" json:"targetNameEn"`         // 指标英文名称
	DataSourceCode   string `db:"DATA_SOURCE_CODE" json:"dataSourceCode"`     // 数据来源代码
	DataSourceName   string `db:"DATA_SOURCE_NAME" json:"dataSourceName"`     // 数据来源名称
	SourceTargetCode string `db:"SOURCE_TARGET_CODE" json:"sourceTargetCode"` // 来源系统指标代码
	RegionCode       string `db:"REGION_CODE" json:"regionCode"`              // 统计地区
	RegionName       string `db:"REGION_NAME" json:"regionName"`              // 统计地区说明
	IsQuantity       string `db:"IS_QUANTITY" json:"isQuantity"`              // 是否定量
	UnitType         string `db:"UNIT_TYPE" json:"unitType"`                  // 计量单位类型
	UnitName         string `db:"UNIT_NAME" json:"unitName"`                  // 计量单位名称
	PeriodType       string `db:"PERIOD_TYPE" json:"periodType"`              // 计量单位类型
	PeriodName       string `db:"PERIOD_NAME" json:"periodName"`              // 计量单位名称
	AcctYear         string `db:"ACCT_YEAR" json:"acctYear"`                  // 年:2022
	AcctSeason       string `db:"ACCT_QUARTOR" json:"acctQuartor"`            // 季:Q1、Q2、Q3、Q4
	AcctMonth        string `db:"ACCT_MONTH" json:"acctMonth"`                // 月:01、02、...、11、12
	AcctDate         string `db:"ACCT_DATE" json:"acctDate"`                  // 日:20220414、20220415
	TargetValue      string `db:"TARGET_VALUE" json:"targetValue"`            // 指标值
}

DataBase 保存记录到数据库的字段

func (*DataBase) UpdateAcct

func (d *DataBase) UpdateAcct(date, periodType string)

UpdateAcct 更新日期

type Response

type Response struct {
	Date        string
	TargetValue string
	RegionCode  string
	RegionName  string
}

Response 暂存网页数据

type ResponseArray

type ResponseArray []ResponseDateStringValueFloat

func (ResponseArray) Len

func (ra ResponseArray) Len() int

func (ResponseArray) Less

func (ra ResponseArray) Less(i, j int) bool

func (ResponseArray) Swap

func (ra ResponseArray) Swap(i, j int)

type ResponseDateStringValueFloat

type ResponseDateStringValueFloat struct {
	Date        string
	TargetValue float64
}

Jump to

Keyboard shortcuts

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