busniess-user-center/internal/models/organization/organization.go

17 lines
577 B
Go

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"` // 全路径
CreatedOn time.Time `json:"created_on"` // 记录创建时间
Children []Organization `json:"children"`
}
type OrgTree []Organization