后台:添加跳转地址功能

This commit is contained in:
luying
2021-05-15 11:35:30 +08:00
parent 92f2fcf51a
commit a2d2d83f93
6 changed files with 77 additions and 9 deletions
+22
View File
@@ -0,0 +1,22 @@
import { Service } from 'egg';
import { STATUS } from '@consts';
import { GameModel } from '@db/Game';
/**
* Test Service
*/
export default class Game extends Service {
/**
* 后台账号登录
*/
public async getServerEnv() {
const { ctx, app } = this;
const list = await GameModel.getServerEnvList();
return ctx.service.utils.resResult(STATUS.SUCCESS, {
list,
env: app.config.env
});
}
}