import {BaseResponse, BaseRequest, BaseQuery} from '@/types/base';

// 环境基础信息
export interface Environment extends BaseResponse {
    tenantCode: string;
    envCode: string;
    envName: string;
    envDesc?: string;
    sort: number;
    teamCount?: number;
    applicationCount?: number;
}

// 创建环境请求参数
export interface CreateEnvironmentRequest extends BaseRequest {
    tenantCode: string;
    envCode: string;
    envName: string;
    envDesc?: string;
    sort: number;
}

// 更新环境请求参数
export interface UpdateEnvironmentRequest extends CreateEnvironmentRequest {
    id: number;
}

// 分页查询参数
export interface EnvironmentQueryParams extends BaseQuery {
    envCode?: string;
    envName?: string;
}
