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