import request from "@/utils/request";

const sideTree_BASE_URL = "/api/v1/sideTree";

class sideTreeAPI {
  /** 获取下拉列表 */
  static getOptions() {
    return request<any, OptionType[]>({
      url: `${sideTree_BASE_URL}/options`,
      method: "get",
    });
  }
}
export default sideTreeAPI;

export interface sideTreeQuery {
  keywords?: string;
  status?: number;
}

/** 部门类型 */
export interface sideTreeVO {
  children?: sideTreeVO[];
  createTime?: Date;
  id?: number;
  name?: string;
  parentId?: number;
  sort?: number;
  status?: number;
  updateTime?: Date;
}

/** 部门表单类型 */
export interface sideTreeForm {
  id?: number;
  name?: string;
  parentId: number;
  sort?: number;
  status?: number;
}
