package organization import "time" type Organization struct { ID uint `json:"id"` // id Name string `json:"name"` // 组织名 ParentID uint `json:"parent_id"` // 上级组织id Sort uint `json:"sort"` // 层级序号 Status int `json:"status"` // 状态:0-无效,1-有效 Path string `json:"path"` // 全路径 Leaders []string `json:"leaders"` CreatedOn time.Time `json:"created_on"` // 记录创建时间 Children []Organization `json:"children"` } type OrgTree []Organization