import { BaseService } from '../BaseService' import type { BaseResponse } from '@/types/api' import type { SystemConfigItem, SystemConfigPageResult, SystemConfigQueryParams, UpdateSystemConfigRequest } from '@/types/api/systemConfig' const SYSTEM_CONFIG_BASE_URL = '/api/admin/system-configs' export class SystemConfigService extends BaseService { static getSystemConfigs( params?: SystemConfigQueryParams ): Promise> { return this.get>(SYSTEM_CONFIG_BASE_URL, params) } static updateSystemConfig( key: string, data: UpdateSystemConfigRequest ): Promise> { return this.put>( `${SYSTEM_CONFIG_BASE_URL}/${encodeURIComponent(key)}`, data ) } }