后台:添加字典接口
This commit is contained in:
@@ -4,6 +4,7 @@ import { GameModel } from '@db/Game';
|
||||
import { ServerlistModel } from '@db/Serverlist';
|
||||
import { gameData } from '@pubUtils/data';
|
||||
import { DicHero } from '@pubUtils/dictionary/DicHero';
|
||||
import { DicRMB } from '@pubUtils/dictionary/DicRMB';
|
||||
|
||||
/**
|
||||
* Test Service
|
||||
@@ -51,4 +52,14 @@ export default class Game extends Service {
|
||||
})
|
||||
}
|
||||
|
||||
public async getDicRmb() {
|
||||
let list: DicRMB[] = [];
|
||||
for(let [_, dicRmb] of gameData.rmb) {
|
||||
list.push(dicRmb);
|
||||
}
|
||||
return this.ctx.service.utils.resResult(STATUS.SUCCESS, {
|
||||
list
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user