123456789101112131415161718192021222324252627282930313233 |
- package excel
- import (
- "time"
- "github.com/beego/beego/v2/client/orm"
- )
- type ExcelInfoRuleMapping struct {
- ExcelInfoRuleMappingId int `orm:"pk" description:"主键"`
- ExcelInfoId int `description:"Excel信息ID"`
- RuleType int `description:"规则类型"`
- LeftValue string `description:"左值"`
- LeftValueShow string `description:"左值前端显示"`
- LeftValueType int `description:"左值类型"`
- RightValue string `description:"右值"`
- RightValueShow string `description:"右值前端显示"`
- RightValueType int `description:"右值类型"`
- FontColor string `description:"字体颜色"`
- BackgroundColor string `description:"背景颜色"`
- Remark string `description:"预设颜色说明"`
- RemarkEn string `description:"预设颜色英文说明"`
- Scope string `description:"作用范围"`
- ScopeCoord string `description:"作用范围坐标"`
- ScopeShow string `description:"作用范围坐标前端显示"`
- CreateTime time.Time `description:"创建时间"`
- }
- func (e *ExcelInfoRuleMapping) Insert() (insertId int64, err error) {
- o := orm.NewOrmUsingDB("data")
- insertId, err = o.Insert(e)
- return
- }
|