50 lines
1.2 KiB
50 lines
1.2 KiB
9 months ago
|
"use strict";
|
||
|
|
||
|
const { Controller } = require("egg");
|
||
|
class HaikangweishiController extends Controller {
|
||
|
//旋转
|
||
|
async continuous() {
|
||
|
let { ctx, service } = this;
|
||
|
let res = await service.haikangweishi.continuous(ctx.query);
|
||
|
ctx.body = res;
|
||
|
}
|
||
|
//到达预置点
|
||
|
async goto() {
|
||
|
let { ctx, service } = this;
|
||
|
let res = await service.haikangweishi.goto(ctx.query);
|
||
|
ctx.body = res;
|
||
|
}
|
||
|
//设置预置点
|
||
|
async presets() {
|
||
|
let { ctx, service } = this;
|
||
|
let res = await service.haikangweishi.presets(ctx.query);
|
||
|
ctx.body = res;
|
||
|
}
|
||
|
//删除预置点
|
||
|
async delPresets() {
|
||
|
let { ctx, service } = this;
|
||
|
let res = await service.haikangweishi.delPresets(ctx.query);
|
||
|
ctx.body = res;
|
||
|
}
|
||
|
//调焦
|
||
|
async zoom() {
|
||
|
let { ctx, service } = this;
|
||
|
let res = await service.haikangweishi.zoom(ctx.query);
|
||
|
ctx.body = res;
|
||
|
}
|
||
|
//聚焦
|
||
|
async focus() {
|
||
|
let { ctx, service } = this;
|
||
|
let res = await service.haikangweishi.focus(ctx.query);
|
||
|
ctx.body = res;
|
||
|
}
|
||
|
//曝光度
|
||
|
async iris() {
|
||
|
let { ctx, service } = this;
|
||
|
let res = await service.haikangweishi.iris(ctx.query);
|
||
|
ctx.body = res;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = HaikangweishiController;
|