organize.go 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package organize
  2. import (
  3. "time"
  4. )
  5. type Base_Organize struct {
  6. Id int `xorm:"not null pk autoincr INT(10)"`
  7. AccCode string `xorm:"VARCHAR(50)"`
  8. Parentid int `xorm:"INT(10)"`
  9. Code string `xorm:"VARCHAR(50)"`
  10. Fullname string `xorm:"VARCHAR(50)"`
  11. Shortname string `xorm:"VARCHAR(50)"`
  12. Category string `xorm:"VARCHAR(50)"`
  13. Outerphone string `xorm:"VARCHAR(100)"`
  14. Innerphone string `xorm:"VARCHAR(100)"`
  15. Fax string `xorm:"VARCHAR(50)"`
  16. Postalcode string `xorm:"VARCHAR(50)"`
  17. Address string `xorm:"VARCHAR(50)"`
  18. Web string `xorm:"VARCHAR(50)"`
  19. Bank string `xorm:"VARCHAR(50)"`
  20. Bankaccount string `xorm:"VARCHAR(50)"`
  21. Manager string `xorm:"VARCHAR(50)"`
  22. Layer int `xorm:"INT(10)"`
  23. Assistantmanager string `xorm:"VARCHAR(50)"`
  24. Isinnerorganize int `xorm:"not null default 1 INT(10)"`
  25. Sortcode int `xorm:"INT(10)"`
  26. Description string `xorm:"VARCHAR(100)"`
  27. Deletionstatecode int `xorm:"default 0 INT(10)"`
  28. Enabled int `xorm:"not null default 1 INT(10)"`
  29. Createon time.Time `xorm:"DATETIME created" form:"-"`
  30. Createuserid int `xorm:"INT(11)" form:"-" json:"-"`
  31. Createby string `xorm:"VARCHAR(50)" form:"-"`
  32. Modifiedon time.Time `xorm:"DATETIME updated" `
  33. Modifieduserid int `xorm:"INT(11)" form:"-" json:"-"`
  34. Modifiedby string `xorm:"VARCHAR(50)" form:"-" json:"-"`
  35. }
  36. type Base_Organizetree struct {
  37. Id int64 `json:"id"`
  38. ParentId int64 `json:"pId"`
  39. FullName string `json:"name"`
  40. Icon string `json:"icon"`
  41. Fu string `json:"fu"`
  42. }
  43. type Base_Orgatree struct {
  44. Id int64 `json:"id"`
  45. ParentId int64 `json:"pId"`
  46. FullName string `json:"name"`
  47. }
  48. type Base_Organizebandparentname struct {
  49. Id int
  50. Parentid int
  51. Fullname string
  52. Description string
  53. Createon time.Time
  54. Modifiedon time.Time
  55. Parentname string
  56. }