wechat-work
Version:
sdk for work.weixin.qq.com/api/doc.
27 lines (23 loc) • 469 B
text/typescript
export class Department {
public name: string;
public parentid?: number;
public order?: number;
public id?: number;
public constructor(
name: string,
parentId?: number,
order?: number,
id?: number
) {
this.name = name;
this.parentid = parentId;
this.order = order;
this.id = id;
}
public get parentId() {
return this.parentid || 0;
}
public set parentId(parentId: number) {
this.parentid = parentId;
}
}