...
|
...
|
@@ -7,6 +7,7 @@ import ( |
|
|
const (
|
|
|
DepartmentUser = iota //用户所有部门
|
|
|
DepartmentAll //公司所有部门
|
|
|
DepartmentRoot //公司一级部门
|
|
|
)
|
|
|
|
|
|
const (
|
...
|
...
|
@@ -59,8 +60,8 @@ type Department struct { |
|
|
Name string `orm:"column(name)" json:"name"`
|
|
|
PId int `orm:"column(parent_id)" json:"-"`
|
|
|
ManagerString string `orm:"column(managers)" json:"-"`
|
|
|
Relation string `orm:"column(relation)"`
|
|
|
CreateTime time.Time `orm:"column(create_time)"`
|
|
|
Relation string `orm:"column(relation)" json:"-"`
|
|
|
CreateTime time.Time `orm:"column(create_time)" json:"-"`
|
|
|
Managers []int `json:"-"`
|
|
|
Departments []*Department `json:"departments,omitempty"`
|
|
|
}
|
...
|
...
|
|