excel_info_rule_mapping.go 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. package excel
  2. import (
  3. "time"
  4. "github.com/beego/beego/v2/client/orm"
  5. )
  6. type ExcelInfoRuleMapping struct {
  7. ExcelInfoRuleMappingId int `orm:"pk" description:"主键"`
  8. ExcelInfoId int `description:"Excel信息ID"`
  9. RuleType int `description:"规则类型"`
  10. LeftValue string `description:"左值"`
  11. LeftValueShow string `description:"左值前端显示"`
  12. LeftValueType int `description:"左值类型"`
  13. RightValue string `description:"右值"`
  14. RightValueShow string `description:"右值前端显示"`
  15. RightValueType int `description:"右值类型"`
  16. FontColor string `description:"字体颜色"`
  17. BackgroundColor string `description:"背景颜色"`
  18. Remark string `description:"预设颜色说明"`
  19. RemarkEn string `description:"预设颜色英文说明"`
  20. Scope string `description:"作用范围"`
  21. ScopeCoord string `description:"作用范围坐标"`
  22. ScopeShow string `description:"作用范围坐标前端显示"`
  23. CreateTime time.Time `description:"创建时间"`
  24. }
  25. func (e *ExcelInfoRuleMapping) Insert() (insertId int64, err error) {
  26. o := orm.NewOrmUsingDB("data")
  27. insertId, err = o.Insert(e)
  28. return
  29. }