29 lines
539 B
TypeScript
Raw Normal View History

2023-07-28 20:12:34 +08:00
import {Context} from "koa";
2022-12-02 11:04:17 +08:00
import service from "../service/QbService";
const router = {};
/**
*
*/
router["POST /qb/saveQbInfo"] = async function (ctx: Context) {
2023-07-28 20:12:34 +08:00
ctx.body = await service.saveAddress(ctx.request.body);
};
/**
* qb配置
*/
router["GET /qb/config"] = async function (ctx: Context) {
2023-10-21 11:31:29 +08:00
ctx.body = await service.getConfig();
2022-12-02 11:04:17 +08:00
};
2023-10-11 17:34:26 +08:00
/**
* qb配置
*/
router["GET /qb/bt/list"] = async function (ctx: Context) {
2023-10-21 11:31:29 +08:00
ctx.body = await service.getBtList();
2023-10-11 17:34:26 +08:00
};
2022-12-02 11:04:17 +08:00
export default router;