2023-10-21 11:31:29 +08:00

29 lines
539 B
TypeScript

import {Context} from "koa";
import service from "../service/QbService";
const router = {};
/**
* 获取单个配置
*/
router["POST /qb/saveQbInfo"] = async function (ctx: Context) {
ctx.body = await service.saveAddress(ctx.request.body);
};
/**
* 获取qb配置
*/
router["GET /qb/config"] = async function (ctx: Context) {
ctx.body = await service.getConfig();
};
/**
* 获取qb配置
*/
router["GET /qb/bt/list"] = async function (ctx: Context) {
ctx.body = await service.getBtList();
};
export default router;