拍卖行:接口定义
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) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user