拍卖行:接口定义

This commit is contained in:
liangtongchuan
2021-03-15 21:02:13 +08:00
parent 7a7b5baf78
commit 1bb51d6adb
5 changed files with 176 additions and 0 deletions
@@ -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) {
}
}
@@ -0,0 +1,26 @@
import { ItemReward } from "../domain/dbGeneral";
/**
* @description 生成拍卖数据
* @export
* @param {string} guildCode
* @param {number} sourceType
* @param {string} sourceCode
* @param {number} serverId
* @param {ItemReward[]} rewards
*/
export async function genAuction(guildCode: string, sourceType: number, sourceCode: string, serverId: number, rewards: ItemReward[]) {
}
/**
* @description 获取活动参加者
* @export
* @param {string} guildCode
* @param {number} sourceType
* @param {string} sourceCode
*/
export async function participants(guildCode: string, sourceType: number, sourceCode: string) {
}