import { PageQueryParam, PageResult } from '../base';

/**
 * 权限查询参数类型声明
 */
export interface PermQueryParam extends PageQueryParam {
  parentId: number | null;
}

/**
 * 权限分页列表项声明
 */
export interface PermItem {
  id: number;
  parentId: number;
  title: string;
  name: string;
  description: string;
  sort: number;
}

/**
 * 权限分页项类型声明
 */
export type PermPageResult = PageResult<PermItem[]>;

/**
 * 权限表单类型声明
 */
export interface PermFormData {
  id: number | null;
  parentId: number;
  name: string;
  title: string;
  description: string;
  sort: number;
}


