SJA工艺
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

27 lines
1.1 KiB

package models
import (
"LAPP_SJA_ME/utils"
)
type Scriptitemtab struct {
Finr int `xorm:"pk comment('工厂号') Int" json:"scriptitemtab-finr"`
Script string `xorm:"pk comment('Id') VARCHAR(12)" json:"scriptitemtab-script"`
Tabmapcol string `xorm:"pk comment('表字段') VARCHAR(10)" json:"scriptitemtab-tabmapcol"`
Colno int `xorm:"comment('列值') INT" json:"scriptitemtab-colno"`
Rowno int `xorm:"comment('行值') INT" json:"scriptitemtab-rowno"`
Colfieldtype int `xorm:"comment('数据类型') INT" json:"scriptitemtab-colfieldtype"`
Colname string `xorm:"comment('列名') VARCHAR(14)" json:"scriptitemtab-colname"`
Rowname string `xorm:"comment('行名') VARCHAR(10)" json:"scriptitemtab-rowname"`
Colformat string `xorm:"comment('数据格式') VARCHAR(10)" json:"scriptitemtab-colformat"`
Defaultvalue string `xorm:"comment('默认值') VARCHAR(20)" json:"scriptitemtab-defaultvalue"`
}
func (t *Scriptitemtab) TableName() string {
return "scriptitemtab"
}
// 清除string字段的右侧空格
func (t *Scriptitemtab) Clipped() {
utils.TrimStruct(t, *t)
}