|
@@ -1,10 +1,9 @@
|
|
|
-import { Context, Controller, Get, Inject } from "@midwayjs/core";
|
|
|
-import { JwtService } from "@midwayjs/jwt";
|
|
|
-import assert = require("assert");
|
|
|
-import { get } from "lodash";
|
|
|
-import { RoleService } from "../../service/system/role.service";
|
|
|
-import { RF } from "../../response/CustomerResponse";
|
|
|
-
|
|
|
+import { Context, Controller, Get, Inject } from '@midwayjs/core';
|
|
|
+import { JwtService } from '@midwayjs/jwt';
|
|
|
+import assert = require('assert');
|
|
|
+import { get } from 'lodash-es';
|
|
|
+import { RoleService } from '../../service/system/role.service';
|
|
|
+import { RF } from '../../response/CustomerResponse';
|
|
|
|
|
|
@Controller('/token')
|
|
|
export class TokenController {
|
|
@@ -26,4 +25,4 @@ export class TokenController {
|
|
|
result.role_code = role_code;
|
|
|
return RF.success(result);
|
|
|
}
|
|
|
-}
|
|
|
+}
|