import { Injectable } from '@nestjs/common'; @Injectable() export class DiyConfigService { async getPage(query: any) { return { items: [], total: 0 }; } async getInfo(queryOrId: any) { return { id: 1, ...queryOrId }; } async add(data: any) { return { id: 1, ...data }; } async edit(id: number, data: any) { return { id, ...data }; } async delete(id: number) { return { success: true }; } async setConfig(data: any) { return { success: true }; } async batchSetConfig(configs: any[]) { return { success: true, count: configs.length }; } async getTypes() { return []; } async resetConfig(key: string) { return { success: true }; } async exportConfig(query: any) { return { items: [] }; } async importConfig(data: any) { return { success: true }; } }