zs 1 年之前
父節點
當前提交
af29ecd2e3
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 2 1
      src/controller/system/user.controller.ts
  2. 2 0
      src/interface/system/user.interface.ts

+ 2 - 1
src/controller/system/user.controller.ts

@@ -45,7 +45,8 @@ export class UserController extends BaseController {
   @ApiResponse({ type: FVO_user })
   async detail(@Param('id') id: string) {
     const data = await this.service.detail(id);
-    return data;
+     const result = new FVO_user(data);
+    return result;
   }
 
   @Post('/:id')

+ 2 - 0
src/interface/system/user.interface.ts

@@ -26,6 +26,8 @@ export class FVO_user {
   'phone': string = undefined;
   @ApiProperty({ description: '电子邮箱' })
   'email': string = undefined;
+  @ApiProperty({ description: '角色类型' })
+  'role_type': string = undefined;
   @ApiProperty({ description: '角色' })
   'role': Array<any> = undefined;
   @ApiProperty({ description: '状态' })