import { BaseQuery, BaseRequest, BaseResponse } from '@/types/base';
import type { MenuResponse } from '@/pages/System/Menu/List/types';

/**
 * 权限查询参数
 */
export interface PermissionQuery extends BaseQuery {
  menuId?: number;
  code?: string;
  name?: string;
  type?: string;
}

/**
 * 权限请求参数
 */
export interface PermissionRequest extends BaseRequest {
  menuId: number;
  code: string;
  name: string;
  type: string;
  sort: number;
}

/**
 * 权限响应数据
 */
export interface PermissionResponse extends BaseResponse {
  menuId: number;
  code: string;
  name: string;
  type: string;
  sort: number;
  menu?: MenuResponse;
}

