123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- package models
- import (
- "eta_gn/eta_api/global"
- "time"
- )
- type ReportChapterTicker struct {
- Id int `gorm:"column:id;primaryKey"`
- ReportChapterId int `gorm:"column:report_chapter_id"`
- Sort int `gorm:"column:sort"`
- Ticker string `gorm:"column:ticker"`
- CreateTime time.Time `gorm:"column:create_time"`
- UpdateTime time.Time `gorm:"column:update_time"`
- }
- func InsertChapterTicker(tickerInfo *ReportChapterTicker) (lastId int64, err error) {
- err = global.DmSQL["rddp"].Create(tickerInfo).Error
- lastId = int64(tickerInfo.Id)
- return
- }
- func ClearReportChapterTicker(reportChapterId int) (err error) {
- sql := ` DELETE FROM report_chapter_ticker WHERE report_chapter_id = ? `
- err = global.DmSQL["rddp"].Exec(sql, reportChapterId).Error
- return
- }
- type DailyBaseColumn struct {
- BaseColumnId int `gorm:"column:base_column_id"`
- TableName string `gorm:"column:table_name"`
- BaseColumnName string `gorm:"column:base_column_name"`
- BaseColumnChapterType string `gorm:"column:base_column_chapter_type"`
- BaseColumnTicker string `gorm:"column:base_column_ticker"`
- Enabled int `gorm:"column:enabled"`
- CreatedTime time.Time `gorm:"column:created_time"`
- LastUpdatedTime time.Time `gorm:"column:last_updated_time"`
- Freq string `gorm:"column:freq"`
- Catalog string `gorm:"column:catalog"`
- ReportChapterTypeId int `gorm:"column:report_chapter_type_id"`
- Selected int `gorm:"column:selected"`
- }
|