拍卖行:接口定义
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user