feat: 完善平台总后台模块
This commit is contained in:
15
backend/api/internal/models/report_item.go
Normal file
15
backend/api/internal/models/report_item.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "git.apinb.com/bsm-sdk/core/database"
|
||||
|
||||
// ReportItem 对应 report_item,保存报表维度明细。
|
||||
type ReportItem struct {
|
||||
Entity
|
||||
ReportID uint64 `gorm:"column:report_id;not null;index" json:"report_id"`
|
||||
Dimension string `gorm:"column:dimension;type:varchar(128);not null" json:"dimension"`
|
||||
MetricCode string `gorm:"column:metric_code;type:varchar(64);not null" json:"metric_code"`
|
||||
MetricValue string `gorm:"column:metric_value;type:varchar(128);not null" json:"metric_value"`
|
||||
}
|
||||
|
||||
func init() { database.AppendMigrate(&ReportItem{}) }
|
||||
func (table *ReportItem) TableName() string { return "report_item" }
|
||||
Reference in New Issue
Block a user