更新:接口

This commit is contained in:
qiaoxin
2021-08-17 18:34:35 +08:00
parent a785644cbb
commit 13d55ca5c0
6 changed files with 45 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
import { Controller } from 'egg';
export default class UpdateController extends Controller {
public async getversion() {
const { ctx } = this;
const { version } = ctx.request.body;
ctx.body = await ctx.service.update.getVersion(version);
}
}