wechat-work
Version:
sdk for work.weixin.qq.com/api/doc.
10 lines (9 loc) • 420 B
TypeScript
import { AccessToken, CommanderParent } from "../../core";
import { Department } from "./department.class";
export declare class DepartmentsCommander extends CommanderParent {
constructor(accessToken: AccessToken);
create(department: Department): Promise<Department>;
update(department: Department): Promise<void>;
delete(id: number): Promise<void>;
find(parentId?: number): Promise<Department[]>;
}