mirror of
https://github.com/laochan-eacnet/backend.git
synced 2026-09-28 09:47:58 +03:00
23 lines
517 B
TypeScript
23 lines
517 B
TypeScript
import { Context } from '../types.js';
|
|
import { eacnet } from '../decorators/eacnet.js';
|
|
import { v } from '../utils/kxml-value.js';
|
|
import { singleton } from 'tsyringe';
|
|
|
|
@singleton()
|
|
export class DefaultService {
|
|
async default(ctx: Context) {
|
|
const descriptor = {
|
|
value: () => ({
|
|
status: v.s32(0),
|
|
error: v.s32(0),
|
|
result: {
|
|
dummy: v.u8(0),
|
|
}
|
|
})
|
|
};
|
|
|
|
eacnet(ctx.service.name)(undefined, undefined, descriptor);
|
|
return descriptor.value();
|
|
}
|
|
}
|