mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-15 04:02:10 +08:00
22 lines
358 B
JavaScript
22 lines
358 B
JavaScript
'use strict';
|
|
|
|
const BaseController = require('../base');
|
|
|
|
class ExampleController extends BaseController {
|
|
|
|
async openLocalDir() {
|
|
const self = this;
|
|
const { service } = this;
|
|
|
|
const data = {
|
|
title: 'example test'
|
|
};
|
|
|
|
await service.example.openLocalDir();
|
|
|
|
self.sendSuccess(data);
|
|
}
|
|
}
|
|
|
|
module.exports = ExampleController;
|