瀏覽代碼

修改必填

zs 2 年之前
父節點
當前提交
737226ba67
共有 2 個文件被更改,包括 61 次插入2 次删除
  1. 11 1
      src/interface/system/dictData.interface.ts
  2. 50 1
      src/interface/user/personal.interface.ts

+ 11 - 1
src/interface/system/dictData.interface.ts

@@ -29,10 +29,20 @@ export class FVO_dictData {
 export class QDTO_dictData extends SearchBase {
   constructor() {
     const like_prop = [];
-    const props = [];
+    const props = ['type', 'label', 'value', 'sort', 'is_use'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }
+  @ApiProperty({ description: '字典类型' })
+  'type': string = undefined;
+  @ApiProperty({ description: '字典标签' })
+  'label': string = undefined;
+  @ApiProperty({ description: '字典键值' })
+  'value': string = undefined;
+  @ApiProperty({ description: '排序' })
+  'sort': number = undefined;
+  @ApiProperty({ description: '是否启用' })
+  'is_use': string = undefined;
 }
 
 export class QVO_dictData extends FVO_dictData {

+ 50 - 1
src/interface/user/personal.interface.ts

@@ -51,10 +51,59 @@ export class FVO_personal {
 export class QDTO_personal extends SearchBase {
   constructor() {
     const like_prop = [];
-    const props = [];
+    const props = [
+      'type',
+      'code',
+      'account',
+      'password',
+      'name',
+      'phone',
+      'email',
+      'address',
+      'work_phone',
+      'industry',
+      'area',
+      'card',
+      'zwzc',
+      'school',
+      'major',
+      'status',
+    ];
     const mapping = [];
     super({ like_prop, props, mapping });
   }
+  @ApiProperty({ description: '用户类型' })
+  'type': string = undefined;
+  @ApiProperty({ description: '邀请码' })
+  'code': string = undefined;
+  @ApiProperty({ description: '账号' })
+  'account': string = undefined;
+  @ApiProperty({ description: '密码' })
+  'password': string = undefined;
+  @ApiProperty({ description: '姓名' })
+  'name': string = undefined;
+  @ApiProperty({ description: '手机号' })
+  'phone': string = undefined;
+  @ApiProperty({ description: '电子邮箱' })
+  'email': string = undefined;
+  @ApiProperty({ description: '联系地址' })
+  'address': string = undefined;
+  @ApiProperty({ description: '办公电话' })
+  'work_phone': string = undefined;
+  @ApiProperty({ description: '所属行业' })
+  'industry': string = undefined;
+  @ApiProperty({ description: '所属辖区' })
+  'area': string = undefined;
+  @ApiProperty({ description: '身份证号' })
+  'card': string = undefined;
+  @ApiProperty({ description: '职务职称' })
+  'zwzc': string = undefined;
+  @ApiProperty({ description: '所在院系' })
+  'school': string = undefined;
+  @ApiProperty({ description: '所学专业' })
+  'major': string = undefined;
+  @ApiProperty({ description: '状态' })
+  'status': string = undefined;
 }
 
 export class QVO_personal extends FVO_personal {