oilauditsetting.go 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package auditsetting
  2. import (
  3. "time"
  4. )
  5. type Base_OilAuditSetting struct {
  6. Id int `xorm:"not null pk autoincr INT(10)"`
  7. OrganizeId int `xorm:"not null default 0 comment('单位ID') INT(10)"`
  8. OrganizeName string `xorm:"comment('单位名称') VARCHAR(100)"`
  9. AuditStepCode string `xorm:"not null default '0' comment('审批步骤编码') VARCHAR(20)"`
  10. AuditStepName string `xorm:"comment('审批步骤名称') VARCHAR(50)"`
  11. RoleId int `xorm:"not null default 0 comment('角色ID') INT(10)"`
  12. RoleName string `xorm:"comment('角色名称') VARCHAR(50)"`
  13. UserId string `xorm:"comment('审批人ID') VARCHAR(50)"`
  14. UserName string `xorm:"comment('审批人') VARCHAR(50)"`
  15. WorkFlowCord string `xorm:"comment('工作流编码') VARCHAR(50)"`
  16. WorkFlowName string `xorm:"comment('工作流名称') VARCHAR(50)"`
  17. Remark string `xorm:"comment('备注') VARCHAR(500)"`
  18. IsDelete int `xorm:"default 0 comment('删除状态,0正常,1已删除') INT(10)"`
  19. CreateOn time.Time `xorm:"DATETIME"`
  20. CreateUserId int `xorm:"INT(10)"`
  21. CreateBy string `xorm:"VARCHAR(50)"`
  22. ModifiedOn time.Time `xorm:"DATETIME"`
  23. ModifiedUserId int `xorm:"INT(10)"`
  24. ModifiedBy string `xorm:"VARCHAR(50)"`
  25. }
  26. type OilAuditUser struct {
  27. Id int `xorm:"not null pk autoincr INT(11)"`
  28. SettingId int `xorm:"INT(11)"`
  29. UserId int `xorm:"INT(11)"`
  30. UserName string `xorm:"VARCHAR(20)"`
  31. CompanyId int `xorm:"INT(11)"`
  32. DepartmentId int `xorm:"INT(11)"`
  33. CreateOn time.Time `xorm:"DATETIME"`
  34. CreateUserId int `xorm:"INT(10)"`
  35. CreateBy string `xorm:"VARCHAR(50)"`
  36. ModifiedOn time.Time `xorm:"DATETIME"`
  37. ModifiedUserId int `xorm:"INT(10)"`
  38. ModifiedBy string `xorm:"VARCHAR(50)"`
  39. }
  40. type UnitDepart struct {
  41. UnitId int
  42. Unit string
  43. }