edb_info_record.go 977 B

12345678910111213141516171819202122232425262728
  1. package models
  2. import (
  3. "time"
  4. "github.com/beego/beego/v2/client/orm"
  5. )
  6. type EdbInfoRecord struct {
  7. EdbInfoRecordId int `orm:"column(edb_info_record_id);pk"`
  8. EdbInfoId int `orm:"column(edb_info_id)"`
  9. OldEdbName string `description:"旧的指标名称"`
  10. OldFrequency string `description:"旧的频率"`
  11. OldUnit string `description:"旧的单位"`
  12. NewEdbName string `description:"新的指标名称"`
  13. NewFrequency string `description:"新的频率"`
  14. NewUnit string `description:"新的单位"`
  15. OperateUserId int `description:"执行人id"`
  16. OperateUserRealName string `description:"执行人名称"`
  17. CreateTime time.Time `description:"记录的生成时间"`
  18. Timestamp int64 `description:"时间戳"`
  19. }
  20. func AddEditEdbInfoRecord(edbRecord *EdbInfoRecord) (e error) {
  21. o := orm.NewOrm()
  22. _, e = o.Insert(edbRecord)
  23. return
  24. }