package model

// GoldKPITitle 黄金指标标题信息对象 kpi_title
type GoldKPITitle struct {
	ID        string `json:"id" gorm:"column:id;primaryKey;autoIncrement"`
	NeType    string `json:"neType" gorm:"column:ne_type"`
	KPIID     string `json:"kpiId" gorm:"column:kpi_id"`
	TitleJson string `json:"titleJson" gorm:"column:title_json"`
	CnTitle   string `json:"cnTitle" gorm:"column:cn_title"`
	EnTitle   string `json:"enTitle" gorm:"column:en_title"`
}

// GoldKPIQuery 黄金指标查询参数结构体
type GoldKPIQuery struct {
	NeType    string `form:"neType" binding:"required"`
	NeID      string `form:"neId" binding:"required"`
	StartTime string `form:"startTime" binding:"required"`
	EndTime   string `form:"endTime" binding:"required"`
	Interval  int64  `form:"interval" binding:"required"`
	RmUID     string `form:"rmUID"`
	SortField string `form:"sortField" binding:"omitempty,oneof=timeGroup"`
	SortOrder string `form:"sortOrder" binding:"omitempty,oneof=asc desc"`
}
