package data_manage import ( "github.com/beego/beego/v2/client/orm" "time" ) type CygxMinutesSummary struct { ArticleId int `orm:"column(article_id);pk"description:"报告id"` Title string `description:"标题"` Department string `description:"作者"` Abstract string `description:"摘要"` PublishStatus int `description:"发布状态,1已发布,0未发布"` PublishDate time.Time `description:"发布时间"` CreateTime time.Time `description:"创建时间"` LastUpdatedTime time.Time `description:"最后一次更新时间"` Periods string `description:"期数"` HavePublish int `description:"是否发布过,1是,0否"` AdminId int `description:"销售/管理员ID"` AdminName string `description:"销售/管理员姓名"` } type CygxMinutesSummaryLog struct { ArticleSunId int `orm:"column(article_sun_id);pk"description:"子级报告id"` ArticleId int `description:"父级报告Id"` Type string `description:"类型'SSGS:上市公司调研纪要,’CYDYJY:产业调研纪要’,’YANX:研选"` Sort string `description:"排序"` ChartPermissionId int `description:"行业ID"` ChartPermissionSort string `description:"行业排序"` CreateTime time.Time `description:"创建时间"` Body string `description:"内容"` ReportLink string `description:"报告链接"` LinkArticleId int `description:"报告ID链接"` } func AddCygxMinutesSummaryOrm(item *CygxMinutesSummary) (newArtId int64, err error) { o := orm.NewOrmUsingDB("hz_cygx") newArtId, err = o.Insert(item) if err != nil { return } return } func AddCygxMinutesSummaryLogOrm(items []*CygxMinutesSummaryLog) (newArtId int64, err error) { o := orm.NewOrmUsingDB("hz_cygx") newArtId, err = o.InsertMulti(1, items) if err != nil { return } return }