赛思维服务调研
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.2 KiB

  1. package models
  2. import (
  3. "SSW_WebPlatform/utils"
  4. )
  5. type Scriptitemtab struct {
  6. Cid int `xorm:"pk comment('工厂号') Int" json:"scriptitemtab-cid"`
  7. Script string `xorm:"pk comment('Id') VARCHAR(12)" json:"scriptitemtab-script"`
  8. Tabmapcol string `xorm:"pk comment('序号溢出处理') VARCHAR(10)" json:"scriptitemtab-tabmapcol"`
  9. Colno int `xorm:"comment('流水号起始值') INT" json:"scriptitemtab-colno"`
  10. Rowno int `xorm:"comment('流水号截止值') INT" json:"scriptitemtab-rowno"`
  11. Colfieldtype int `xorm:"comment('步幅') INT" json:"scriptitemtab-colfieldtype"`
  12. Colname string `xorm:"comment('上个序号创建时间') VARCHAR(14)" json:"scriptitemtab-colname"`
  13. Rowname string `xorm:"comment('序号重置规则') VARCHAR(10)" json:"scriptitemtab-rowname"`
  14. Colformat string `xorm:"comment('流水号格式') VARCHAR(10)" json:"scriptitemtab-colformat"`
  15. Defaultvalue string `xorm:"comment('日期变量') VARCHAR(20)" json:"scriptitemtab-defaultvalue"`
  16. }
  17. func (t *Scriptitemtab) TableName() string {
  18. return "scriptitemtab"
  19. }
  20. // 清除string字段的右侧空格
  21. func (t *Scriptitemtab) Clipped() {
  22. utils.TrimStruct(t, *t)
  23. }