123456789101112131415161718192021222324252627 |
- package models
- import (
- "eta/eta_api/global"
- "eta/eta_api/utils"
- "time"
- )
- type ReportStateRecord struct {
- Id int `gorm:"column:id;primaryKey;autoIncrement" description:"Id"`
- ReportId int // 研报id
- ReportType int // 报告类型'报告类型:1中文研报2智能研报'
- State int // 状态:1-未提交 2-待审核 3-驳回 4-审核
- AdminId int // 操作人id
- AdminName string // 操作人姓名
- CreateTime time.Time // 创建时间
- }
- func AddReportStateRecord(item *ReportStateRecord) (lastId int64, err error) {
- o := global.DbMap[utils.DbNameReport]
- err = o.Create(item).Error
- if err != nil {
- return
- }
- lastId = int64(item.Id)
- return
- }
|