33 lines
680 B
TypeScript
33 lines
680 B
TypeScript
import { Application, BackendSession, ChannelService } from "pinus";
|
|
|
|
export default function (app: Application) {
|
|
return new AuctionHandler(app);
|
|
}
|
|
|
|
export class AuctionHandler {
|
|
channelService: ChannelService;
|
|
constructor(private app: Application) {
|
|
this.channelService = app.get('channelService');
|
|
}
|
|
|
|
async getAuction(msg: {}, session: BackendSession) {
|
|
|
|
}
|
|
|
|
async offer(msg: { max: boolean }, session: BackendSession) {
|
|
|
|
}
|
|
|
|
async checkDividend(msg: {}, session: BackendSession) {
|
|
|
|
}
|
|
|
|
async getDividend(msg: {}, session: BackendSession) {
|
|
|
|
}
|
|
|
|
async myOffers(msg: { count: number }, session: BackendSession) {
|
|
|
|
}
|
|
}
|