common_models.go 3.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package models
  2. type QualityControlStandard struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. InspectionMajor int64 `gorm:"column:inspection_major" json:"inspection_major" form:"inspection_major"`
  5. InspectionMinor int64 `gorm:"column:inspection_minor" json:"inspection_minor" form:"inspection_minor"`
  6. MinRange string `gorm:"column:min_range" json:"min_range" form:"min_range"`
  7. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  8. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  9. Status int64 `gorm:"column:status" json:"status" form:"status"`
  10. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  11. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  12. LargeRange string `gorm:"column:large_range" json:"large_range" form:"large_range"`
  13. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  14. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  15. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  16. }
  17. type XtQualityControlStandard struct {
  18. ID int64 `gorm:"column:id" json:"id" form:"id"`
  19. InspectionMajor int64 `gorm:"column:inspection_major" json:"inspection_major" form:"inspection_major"`
  20. InspectionMinor int64 `gorm:"column:inspection_minor" json:"inspection_minor" form:"inspection_minor"`
  21. MinRange string `gorm:"column:min_range" json:"min_range" form:"min_range"`
  22. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  23. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  24. Status int64 `gorm:"column:status" json:"status" form:"status"`
  25. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  26. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  27. LargeRange string `gorm:"column:large_range" json:"large_range" form:"large_range"`
  28. }
  29. func (XtQualityControlStandard) TableName() string {
  30. return "xt_quality_control_standard"
  31. }
  32. type CheckConfiguration struct {
  33. ID int64 `gorm:"column:id" json:"id" form:"id"`
  34. InspectionMajor int64 `gorm:"column:inspection_major" json:"inspection_major" form:"inspection_major"`
  35. InspectionFrequency string `gorm:"column:inspection_frequency" json:"inspection_frequency" form:"inspection_frequency"`
  36. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  37. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  38. Status int64 `gorm:"column:status" json:"status" form:"status"`
  39. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  40. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  41. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  42. }
  43. type XtCheckConfiguration struct {
  44. ID int64 `gorm:"column:id" json:"id" form:"id"`
  45. InspectionMajor int64 `gorm:"column:inspection_major" json:"inspection_major" form:"inspection_major"`
  46. InspectionFrequency string `gorm:"column:inspection_frequency" json:"inspection_frequency" form:"inspection_frequency"`
  47. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  48. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  49. Status int64 `gorm:"column:status" json:"status" form:"status"`
  50. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  51. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  52. }
  53. func (XtCheckConfiguration) TableName() string {
  54. return "xt_check_configuration"
  55. }