package controls // 部门控件 type DeptInfo struct { Type string `json:"type"` ID string `json:"subjectId"` Name string `json:"name"` } func ParseDepts(deptStr string) ([]DeptInfo, error) { return ExtractInfos[DeptInfo](deptStr) } func ParseDept(deptStr string) (*DeptInfo, error) { return ExtractInfoFormInfos[DeptInfo](deptStr) }