excel_draft.go 814 B

1234567891011121314151617181920212223
  1. package excel
  2. import (
  3. "eta_gn/eta_api/global"
  4. "time"
  5. )
  6. // ExcelDraft 沙盘推演草稿表
  7. type ExcelDraft struct {
  8. ExcelDraftId int `orm:"column(excel_draft_id);pk" gorm:"primaryKey" description:"excel表格草稿记录id"`
  9. ExcelId int `description:"excel表格id"`
  10. Name string `description:"excel表格名称"`
  11. Content string `description:"excel数据"`
  12. OpUserId int `description:"最近一次编辑操作的用户id"`
  13. OpUserName string `description:"最近一次编辑的用户名称(冗余字段,避免查表)"`
  14. CreateTime time.Time `description:"创建时间"`
  15. }
  16. // AddExcelDraft 添加一个新的excel表格草稿
  17. func AddExcelDraft(excelDraft *ExcelDraft) (err error) {
  18. err = global.DmSQL["data"].Create(excelDraft).Error
  19. return
  20. }