package model // Department 组织机构 type Department struct { ID int `gorm:"column:id"` Name string `gorm:"column:name"` PastureID int `gorm:"column:pastureId"` DeptCode string `gorm:"column:deptCode"` Address string `gorm:"column:address"` Parentid int `gorm:"column:parentid"` IsGroupco int `gorm:"column:isGroupco"` IsPasture int `gorm:"column:isPasture"` Remark string `gorm:"column:remark"` Sort string `gorm:"column:sort"` Enable int `gorm:"column:enable"` IsDel int `gorm:"column:isDel"` XRCode string `gorm:"column:XRCode"` Iscal int `gorm:"column:iscal"` KCcode string `gorm:"column:KCcode"` PastureName string `gorm:"column:pasturename"` CostCenterCode string `gorm:"column:costCenter_code"` CompanyCode string `gorm:"column:company_code"` //公司代码 PurchasingGroup string `gorm:"column:purchasing_group"` //采购组织 Factory string `gorm:"column:factory"` //工厂 ParchaseOrganization string `gorm:"column:parchase_organization"` } func (d *Department) TableName() string { return "department" }