Files
pqs-9100_tool_client/electron/service/example.ts
贾同学 4768ef2d26 init
2025-10-16 20:01:57 +08:00

21 lines
427 B
TypeScript

import { logger } from 'ee-core/log';
// example service
class ExampleService {
async test(args: any): Promise<{ status: string; params: any }> {
let obj = {
status:'ok',
params: args
}
logger.info('ExampleService obj:', obj);
return obj;
}
}
ExampleService.toString = () => '[class ExampleService]';
const exampleService = new ExampleService();
export {
ExampleService,
exampleService
};