supplierfile.go 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package supplierfile
  2. import (
  3. "time"
  4. )
  5. type OilSupplierFile struct {
  6. Id int `xorm:"not null pk autoincr INT(10)"`
  7. SupplierId int `xorm:"INT(10)"`
  8. SupplierTypeCode string `xorm:"VARCHAR(5)"`
  9. IsManuf string `xorm:"VARCHAR(5)"`
  10. SupplierCertSubId int `xorm:"INT(10)"`
  11. CertSubName string `xorm:"VARCHAR(50)"`
  12. NeedFileType string `xorm:"VARCHAR(50)"`
  13. NeedFileCode string `xorm:"VARCHAR(20)"`
  14. FileType int `xorm:"INT(10)"`
  15. SupType int `xorm:"INT(10)"`
  16. FileExt string `xorm:"VARCHAR(10)"`
  17. FileName string `xorm:"VARCHAR(50)"`
  18. EffectDate time.Time `xorm:"DATETIME"`
  19. FileUrl string `xorm:"VARCHAR(100)"`
  20. OtherRemark string `xorm:"VARCHAR(500)"`
  21. Remark string `xorm:"VARCHAR(500)"`
  22. IsDelete int `xorm:"INT(10)"`
  23. CreateOn time.Time `xorm:"DATETIME created"`
  24. CreateUserId int `xorm:"INT(10)"`
  25. CreateBy string `xorm:"VARCHAR(50)"`
  26. ModifiedOn time.Time `xorm:"DATETIME"`
  27. ModifiedUserId int `xorm:"INT(10)"`
  28. ModifiedBy string `xorm:"VARCHAR(50)"`
  29. }
  30. type Del_OilSupplierFile struct {
  31. Id int `xorm:"not null pk autoincr INT(10)"`
  32. SupplierId int `xorm:"INT(10)"`
  33. SupplierTypeCode string `xorm:"VARCHAR(5)"`
  34. SupplierCertSubId int `xorm:"INT(10)"`
  35. CertSubName string `xorm:"VARCHAR(50)"`
  36. NeedFileType string `xorm:"VARCHAR(50)"`
  37. NeedFileCode string `xorm:"VARCHAR(20)"`
  38. FileType int `xorm:"INT(10)"`
  39. SupType int `xorm:"INT(10)"`
  40. FileExt string `xorm:"VARCHAR(10)"`
  41. FileName string `xorm:"VARCHAR(50)"`
  42. EffectDate time.Time `xorm:"DATETIME"`
  43. FileUrl string `xorm:"VARCHAR(100)"`
  44. OtherRemark string `xorm:"VARCHAR(500)"`
  45. Remark string `xorm:"VARCHAR(500)"`
  46. IsDelete int `xorm:"INT(10)"`
  47. CreateOn time.Time `xorm:"DATETIME created"`
  48. CreateUserId int `xorm:"INT(10)"`
  49. CreateBy string `xorm:"VARCHAR(50)"`
  50. ModifiedOn time.Time `xorm:"DATETIME"`
  51. ModifiedUserId int `xorm:"INT(10)"`
  52. ModifiedBy string `xorm:"VARCHAR(50)"`
  53. DeleteDate time.Time `xorm:"DATETIME"`
  54. }
  55. type File struct {
  56. Type int "1制造商;2非制造商"
  57. SupplierId int
  58. }
  59. type CheckFile struct {
  60. Type int "1制造商;2非制造商"
  61. CertId string
  62. SupplierId int
  63. Grade string
  64. FileName string
  65. SubName string
  66. CurrentPage int64
  67. Size int64
  68. Table int "1准入,2增项,3年审,4信息变更"
  69. }