审查视图

pkg/application/department/adapter/department_adapter.go 528 字节
郑周 authored
1 2 3
package adapter

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