package adapter type DepartmentAdapter struct { Id int64 `comment:"部门ID" json:"id,string"` Name string `comment:"部门名称" json:"name"` CompanyId int64 `comment:"公司ID" json:"companyId,string"` ParentId int64 `comment:"父级ID" json:"parentId,string"` Departments []*DepartmentAdapter `comment:"子部门" json:"departments"` UserTotal int `comment:"部门用户总数量(包含子部门)" json:"userTotal"` }