zs hai 1 ano
pai
achega
af29ecd2e3

+ 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: '状态' })