zs hace 1 año
padre
commit
73db9f536e

+ 15 - 14
src/controller/core/apply.controller.ts

@@ -1,7 +1,7 @@
 import { Body, Controller, Del, Get, Inject, Param, Post, Query } from '@midwayjs/decorator';
 import { BaseController } from 'free-midway-component';
 import { ApplyService } from '../../service/core/apply.service';
-import { CDTO_apply, CVO_apply, FVO_apply,QDTO_apply, QVO_apply, UDTO_apply, UVAO_apply } from '../../interface/core/apply.interface';
+import { CDTO_apply, CVO_apply, FVO_apply, QDTO_apply, QVO_apply, UDTO_apply, UVAO_apply } from '../../interface/core/apply.interface';
 import { ApiResponse, ApiTags, ApiQuery } from '@midwayjs/swagger';
 import { Validate } from '@midwayjs/validate';
 @ApiTags(['申请记录'])
@@ -10,15 +10,18 @@ export class ApplyController extends BaseController {
   @Inject()
   service: ApplyService;
 
-
-@Post('/') @Validate() @ApiResponse({ type: CVO_apply })
+  @Post('/')
+  @Validate()
+  @ApiResponse({ type: CVO_apply })
   async create(@Body() data: CDTO_apply) {
     const dbData = await this.service.create(data);
     const result = new CVO_apply(dbData);
     return result;
   }
-@Get('/')@ApiQuery({name:'query'})@ApiResponse({ type: QVO_apply })
-  async query(@Query() filter:QDTO_apply, @Query('skip') skip: number,@Query('limit') limit: number){
+  @Get('/')
+  @ApiQuery({ name: 'query' })
+  @ApiResponse({ type: QVO_apply })
+  async query(@Query() filter: QDTO_apply, @Query('skip') skip: number, @Query('limit') limit: number) {
     const list = await this.service.query(filter, { skip, limit });
     const data = [];
     for (const i of list) {
@@ -29,23 +32,24 @@ export class ApplyController extends BaseController {
     return { data, total };
   }
 
-
-@Get('/:id')@ApiResponse({ type: FVO_apply })
+  @Get('/:id')
+  @ApiResponse({ type: FVO_apply })
   async fetch(@Param('id') id: string) {
     const data = await this.service.fetch(id);
     const result = new FVO_apply(data);
     return result;
   }
 
-
-@Post('/:id')@Validate()@ApiResponse({ type: UVAO_apply })
+  @Post('/:id')
+  @Validate()
+  @ApiResponse({ type: UVAO_apply })
   async update(@Param('id') id: string, @Body() body: UDTO_apply) {
     const result = await this.service.updateOne(id, body);
     return result;
   }
 
-
-@Del('/:id')@Validate()
+  @Del('/:id')
+  @Validate()
   async delete(@Param('id') id: string) {
     await this.service.delete(id);
     return 'ok';
@@ -54,14 +58,11 @@ export class ApplyController extends BaseController {
     throw new Error('Method not implemented.');
   }
 
-
   async updateMany(...args: any[]) {
     throw new Error('Method not implemented.');
   }
 
-
   async deleteMany(...args: any[]) {
     throw new Error('Method not implemented.');
   }
 }
-

+ 15 - 14
src/controller/core/business.controller.ts

@@ -1,7 +1,7 @@
 import { Body, Controller, Del, Get, Inject, Param, Post, Query } from '@midwayjs/decorator';
 import { BaseController } from 'free-midway-component';
 import { BusinessService } from '../../service/core/business.service';
-import { CDTO_business, CVO_business, FVO_business,QDTO_business, QVO_business, UDTO_business, UVAO_business } from '../../interface/core/business.interface';
+import { CDTO_business, CVO_business, FVO_business, QDTO_business, QVO_business, UDTO_business, UVAO_business } from '../../interface/core/business.interface';
 import { ApiResponse, ApiTags, ApiQuery } from '@midwayjs/swagger';
 import { Validate } from '@midwayjs/validate';
 @ApiTags(['业务'])
@@ -10,15 +10,18 @@ export class BusinessController extends BaseController {
   @Inject()
   service: BusinessService;
 
-
-@Post('/') @Validate() @ApiResponse({ type: CVO_business })
+  @Post('/')
+  @Validate()
+  @ApiResponse({ type: CVO_business })
   async create(@Body() data: CDTO_business) {
     const dbData = await this.service.create(data);
     const result = new CVO_business(dbData);
     return result;
   }
-@Get('/')@ApiQuery({name:'query'})@ApiResponse({ type: QVO_business })
-  async query(@Query() filter:QDTO_business, @Query('skip') skip: number,@Query('limit') limit: number){
+  @Get('/')
+  @ApiQuery({ name: 'query' })
+  @ApiResponse({ type: QVO_business })
+  async query(@Query() filter: QDTO_business, @Query('skip') skip: number, @Query('limit') limit: number) {
     const list = await this.service.query(filter, { skip, limit });
     const data = [];
     for (const i of list) {
@@ -29,23 +32,24 @@ export class BusinessController extends BaseController {
     return { data, total };
   }
 
-
-@Get('/:id')@ApiResponse({ type: FVO_business })
+  @Get('/:id')
+  @ApiResponse({ type: FVO_business })
   async fetch(@Param('id') id: string) {
     const data = await this.service.fetch(id);
     const result = new FVO_business(data);
     return result;
   }
 
-
-@Post('/:id')@Validate()@ApiResponse({ type: UVAO_business })
+  @Post('/:id')
+  @Validate()
+  @ApiResponse({ type: UVAO_business })
   async update(@Param('id') id: string, @Body() body: UDTO_business) {
     const result = await this.service.updateOne(id, body);
     return result;
   }
 
-
-@Del('/:id')@Validate()
+  @Del('/:id')
+  @Validate()
   async delete(@Param('id') id: string) {
     await this.service.delete(id);
     return 'ok';
@@ -54,14 +58,11 @@ export class BusinessController extends BaseController {
     throw new Error('Method not implemented.');
   }
 
-
   async updateMany(...args: any[]) {
     throw new Error('Method not implemented.');
   }
 
-
   async deleteMany(...args: any[]) {
     throw new Error('Method not implemented.');
   }
 }
-

+ 15 - 14
src/controller/core/path.controller.ts

@@ -1,7 +1,7 @@
 import { Body, Controller, Del, Get, Inject, Param, Post, Query } from '@midwayjs/decorator';
 import { BaseController } from 'free-midway-component';
 import { PathService } from '../../service/core/path.service';
-import { CDTO_path, CVO_path, FVO_path,QDTO_path, QVO_path, UDTO_path, UVAO_path } from '../../interface/core/path.interface';
+import { CDTO_path, CVO_path, FVO_path, QDTO_path, QVO_path, UDTO_path, UVAO_path } from '../../interface/core/path.interface';
 import { ApiResponse, ApiTags, ApiQuery } from '@midwayjs/swagger';
 import { Validate } from '@midwayjs/validate';
 @ApiTags(['申办流程'])
@@ -10,15 +10,18 @@ export class PathController extends BaseController {
   @Inject()
   service: PathService;
 
-
-@Post('/') @Validate() @ApiResponse({ type: CVO_path })
+  @Post('/')
+  @Validate()
+  @ApiResponse({ type: CVO_path })
   async create(@Body() data: CDTO_path) {
     const dbData = await this.service.create(data);
     const result = new CVO_path(dbData);
     return result;
   }
-@Get('/')@ApiQuery({name:'query'})@ApiResponse({ type: QVO_path })
-  async query(@Query() filter:QDTO_path, @Query('skip') skip: number,@Query('limit') limit: number){
+  @Get('/')
+  @ApiQuery({ name: 'query' })
+  @ApiResponse({ type: QVO_path })
+  async query(@Query() filter: QDTO_path, @Query('skip') skip: number, @Query('limit') limit: number) {
     const list = await this.service.query(filter, { skip, limit });
     const data = [];
     for (const i of list) {
@@ -29,23 +32,24 @@ export class PathController extends BaseController {
     return { data, total };
   }
 
-
-@Get('/:id')@ApiResponse({ type: FVO_path })
+  @Get('/:id')
+  @ApiResponse({ type: FVO_path })
   async fetch(@Param('id') id: string) {
     const data = await this.service.fetch(id);
     const result = new FVO_path(data);
     return result;
   }
 
-
-@Post('/:id')@Validate()@ApiResponse({ type: UVAO_path })
+  @Post('/:id')
+  @Validate()
+  @ApiResponse({ type: UVAO_path })
   async update(@Param('id') id: string, @Body() body: UDTO_path) {
     const result = await this.service.updateOne(id, body);
     return result;
   }
 
-
-@Del('/:id')@Validate()
+  @Del('/:id')
+  @Validate()
   async delete(@Param('id') id: string) {
     await this.service.delete(id);
     return 'ok';
@@ -54,14 +58,11 @@ export class PathController extends BaseController {
     throw new Error('Method not implemented.');
   }
 
-
   async updateMany(...args: any[]) {
     throw new Error('Method not implemented.');
   }
 
-
   async deleteMany(...args: any[]) {
     throw new Error('Method not implemented.');
   }
 }
-

+ 15 - 14
src/controller/core/personnel.controller.ts

@@ -1,7 +1,7 @@
 import { Body, Controller, Del, Get, Inject, Param, Post, Query } from '@midwayjs/decorator';
 import { BaseController } from 'free-midway-component';
 import { PersonnelService } from '../../service/core/personnel.service';
-import { CDTO_personnel, CVO_personnel, FVO_personnel,QDTO_personnel, QVO_personnel, UDTO_personnel, UVAO_personnel } from '../../interface/core/personnel.interface';
+import { CDTO_personnel, CVO_personnel, FVO_personnel, QDTO_personnel, QVO_personnel, UDTO_personnel, UVAO_personnel } from '../../interface/core/personnel.interface';
 import { ApiResponse, ApiTags, ApiQuery } from '@midwayjs/swagger';
 import { Validate } from '@midwayjs/validate';
 @ApiTags(['公证员'])
@@ -10,15 +10,18 @@ export class PersonnelController extends BaseController {
   @Inject()
   service: PersonnelService;
 
-
-@Post('/') @Validate() @ApiResponse({ type: CVO_personnel })
+  @Post('/')
+  @Validate()
+  @ApiResponse({ type: CVO_personnel })
   async create(@Body() data: CDTO_personnel) {
     const dbData = await this.service.create(data);
     const result = new CVO_personnel(dbData);
     return result;
   }
-@Get('/')@ApiQuery({name:'query'})@ApiResponse({ type: QVO_personnel })
-  async query(@Query() filter:QDTO_personnel, @Query('skip') skip: number,@Query('limit') limit: number){
+  @Get('/')
+  @ApiQuery({ name: 'query' })
+  @ApiResponse({ type: QVO_personnel })
+  async query(@Query() filter: QDTO_personnel, @Query('skip') skip: number, @Query('limit') limit: number) {
     const list = await this.service.query(filter, { skip, limit });
     const data = [];
     for (const i of list) {
@@ -29,23 +32,24 @@ export class PersonnelController extends BaseController {
     return { data, total };
   }
 
-
-@Get('/:id')@ApiResponse({ type: FVO_personnel })
+  @Get('/:id')
+  @ApiResponse({ type: FVO_personnel })
   async fetch(@Param('id') id: string) {
     const data = await this.service.fetch(id);
     const result = new FVO_personnel(data);
     return result;
   }
 
-
-@Post('/:id')@Validate()@ApiResponse({ type: UVAO_personnel })
+  @Post('/:id')
+  @Validate()
+  @ApiResponse({ type: UVAO_personnel })
   async update(@Param('id') id: string, @Body() body: UDTO_personnel) {
     const result = await this.service.updateOne(id, body);
     return result;
   }
 
-
-@Del('/:id')@Validate()
+  @Del('/:id')
+  @Validate()
   async delete(@Param('id') id: string) {
     await this.service.delete(id);
     return 'ok';
@@ -54,14 +58,11 @@ export class PersonnelController extends BaseController {
     throw new Error('Method not implemented.');
   }
 
-
   async updateMany(...args: any[]) {
     throw new Error('Method not implemented.');
   }
 
-
   async deleteMany(...args: any[]) {
     throw new Error('Method not implemented.');
   }
 }
-

+ 1 - 1
src/entity/core/business.entity.ts

@@ -13,7 +13,7 @@ export class Business extends BaseModel {
   @prop({ required: false, index: false, zh: '收费依据' })
   basic: string;
   @prop({ required: false, index: false, zh: '所需材料' })
-  material: object;
+  material: Array<any>;
   @prop({ required: false, index: true, zh: '是否使用', default: '0' })
   is_use: string;
 }

+ 3 - 1
src/entity/core/path.entity.ts

@@ -9,7 +9,9 @@ export class Path extends BaseModel {
   @prop({ required: false, index: false, zh: '图标' })
   icon: Array<any>;
   @prop({ required: false, index: true, zh: '排序' })
-  sort: string;
+  sort: number;
+  @prop({ required: false, index: false, zh: '备注' })
+  remark: string;
   @prop({ required: false, index: true, zh: '是否使用', default: '0' })
   is_use: string;
 }

+ 5 - 1
src/entity/core/personnel.entity.ts

@@ -16,10 +16,14 @@ export class Personnel extends BaseModel {
   education: string;
   @prop({ required: false, index: false, zh: '专业' })
   speciality: string;
+  @prop({ required: false, index: false, zh: '职务' })
+  zw: string;
+  @prop({ required: false, index: false, zh: '职称' })
+  zc: string;
   @prop({ required: false, index: false, zh: '执业证号' })
   number: string;
   @prop({ required: false, index: false, zh: '工作经历' })
-  work: object;
+  work: Array<any>;
   @prop({ required: false, index: false, zh: '简介' })
   brief: string;
   @prop({ required: false, index: true, zh: '是否使用', default: '0' })

+ 16 - 22
src/interface/core/apply.interface.ts

@@ -42,7 +42,6 @@ export class FVO_apply {
   'status': string = undefined;
 }
 
-
 export class QDTO_apply extends SearchBase {
   constructor() {
     const like_prop = [];
@@ -60,7 +59,6 @@ export class QDTO_apply extends SearchBase {
   'type': string = undefined;
 }
 
-
 export class QVO_apply extends FVO_apply {
   constructor(data: object) {
     super(data);
@@ -68,50 +66,48 @@ export class QVO_apply extends FVO_apply {
   }
 }
 
-
 export class CDTO_apply {
   @ApiProperty({ description: '用户' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'user': string = undefined;
   @ApiProperty({ description: '公证员' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'admin': string = undefined;
   @ApiProperty({ description: '业务' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'business': string = undefined;
   @ApiProperty({ description: '材料' })
-@Rule(RuleType['object']().empty(''))
+  @Rule(RuleType['object']().empty(''))
   'material': object = undefined;
   @ApiProperty({ description: '类型' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'type': string = undefined;
   @ApiProperty({ description: '地址' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'address': string = undefined;
   @ApiProperty({ description: '签字' })
-@Rule(RuleType['array']().empty(''))
+  @Rule(RuleType['array']().empty(''))
   'sign': Array<any> = undefined;
   @ApiProperty({ description: '人脸识别' })
-@Rule(RuleType['array']().empty(''))
+  @Rule(RuleType['array']().empty(''))
   'face': Array<any> = undefined;
   @ApiProperty({ description: '支付信息' })
-@Rule(RuleType['object']().empty(''))
+  @Rule(RuleType['object']().empty(''))
   'pay': object = undefined;
   @ApiProperty({ description: '证书' })
-@Rule(RuleType['array']().empty(''))
+  @Rule(RuleType['array']().empty(''))
   'certificate': Array<any> = undefined;
   @ApiProperty({ description: '意见' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'opinion': string = undefined;
   @ApiProperty({ description: '时间' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'time': string = undefined;
   @ApiProperty({ description: '状态' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'status': string = undefined;
 }
 
-
 export class CVO_apply extends FVO_apply {
   constructor(data: object) {
     super(data);
@@ -119,14 +115,12 @@ export class CVO_apply extends FVO_apply {
   }
 }
 
-
 export class UDTO_apply extends CDTO_apply {
-    @ApiProperty({ description: '数据id' })
-    @Rule(RuleType['string']().empty(''))
-    _id: string = undefined;
+  @ApiProperty({ description: '数据id' })
+  @Rule(RuleType['string']().empty(''))
+  _id: string = undefined;
 }
 
-
 export class UVAO_apply extends FVO_apply {
   constructor(data: object) {
     super(data);

+ 11 - 17
src/interface/core/business.interface.ts

@@ -23,12 +23,11 @@ export class FVO_business {
   @ApiProperty({ description: '收费依据' })
   'basic': string = undefined;
   @ApiProperty({ description: '所需材料' })
-  'material': object = undefined;
+  'material': Array<any> = undefined;
   @ApiProperty({ description: '是否使用' })
   'is_use': string = undefined;
 }
 
-
 export class QDTO_business extends SearchBase {
   constructor() {
     const like_prop = [];
@@ -42,7 +41,6 @@ export class QDTO_business extends SearchBase {
   'is_use': string = undefined;
 }
 
-
 export class QVO_business extends FVO_business {
   constructor(data: object) {
     super(data);
@@ -50,29 +48,27 @@ export class QVO_business extends FVO_business {
   }
 }
 
-
 export class CDTO_business {
   @ApiProperty({ description: '名称' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'name': string = undefined;
   @ApiProperty({ description: '内容' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'content': string = undefined;
   @ApiProperty({ description: '收费标准' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'money': string = undefined;
   @ApiProperty({ description: '收费依据' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'basic': string = undefined;
   @ApiProperty({ description: '所需材料' })
-@Rule(RuleType['object']().empty(''))
-  'material': object = undefined;
+  @Rule(RuleType['array']().empty(''))
+  'material': Array<any> = undefined;
   @ApiProperty({ description: '是否使用' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'is_use': string = undefined;
 }
 
-
 export class CVO_business extends FVO_business {
   constructor(data: object) {
     super(data);
@@ -80,14 +76,12 @@ export class CVO_business extends FVO_business {
   }
 }
 
-
 export class UDTO_business extends CDTO_business {
-    @ApiProperty({ description: '数据id' })
-    @Rule(RuleType['string']().empty(''))
-    _id: string = undefined;
+  @ApiProperty({ description: '数据id' })
+  @Rule(RuleType['string']().empty(''))
+  _id: string = undefined;
 }
 
-
 export class UVAO_business extends FVO_business {
   constructor(data: object) {
     super(data);

+ 15 - 16
src/interface/core/path.interface.ts

@@ -19,12 +19,13 @@ export class FVO_path {
   @ApiProperty({ description: '图标' })
   'icon': Array<any> = undefined;
   @ApiProperty({ description: '排序' })
-  'sort': string = undefined;
+  'sort': number = undefined;
+  @ApiProperty({ description: '备注' })
+  'remark': string = undefined;
   @ApiProperty({ description: '是否使用' })
   'is_use': string = undefined;
 }
 
-
 export class QDTO_path extends SearchBase {
   constructor() {
     const like_prop = [];
@@ -35,12 +36,11 @@ export class QDTO_path extends SearchBase {
   @ApiProperty({ description: '名称' })
   'name': string = undefined;
   @ApiProperty({ description: '排序' })
-  'sort': string = undefined;
+  'sort': number = undefined;
   @ApiProperty({ description: '是否使用' })
   'is_use': string = undefined;
 }
 
-
 export class QVO_path extends FVO_path {
   constructor(data: object) {
     super(data);
@@ -48,23 +48,24 @@ export class QVO_path extends FVO_path {
   }
 }
 
-
 export class CDTO_path {
   @ApiProperty({ description: '名称' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'name': string = undefined;
   @ApiProperty({ description: '图标' })
-@Rule(RuleType['array']().empty(''))
+  @Rule(RuleType['array']().empty(''))
   'icon': Array<any> = undefined;
   @ApiProperty({ description: '排序' })
-@Rule(RuleType['string']().empty(''))
-  'sort': string = undefined;
+  @Rule(RuleType['number']().empty(''))
+  'sort': number = undefined;
+  @ApiProperty({ description: '备注' })
+  @Rule(RuleType['string']().empty(''))
+  'remark': string = undefined;
   @ApiProperty({ description: '是否使用' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'is_use': string = undefined;
 }
 
-
 export class CVO_path extends FVO_path {
   constructor(data: object) {
     super(data);
@@ -72,14 +73,12 @@ export class CVO_path extends FVO_path {
   }
 }
 
-
 export class UDTO_path extends CDTO_path {
-    @ApiProperty({ description: '数据id' })
-    @Rule(RuleType['string']().empty(''))
-    _id: string = undefined;
+  @ApiProperty({ description: '数据id' })
+  @Rule(RuleType['string']().empty(''))
+  _id: string = undefined;
 }
 
-
 export class UVAO_path extends FVO_path {
   constructor(data: object) {
     super(data);

+ 25 - 21
src/interface/core/personnel.interface.ts

@@ -26,17 +26,20 @@ export class FVO_personnel {
   'education': string = undefined;
   @ApiProperty({ description: '专业' })
   'speciality': string = undefined;
+  @ApiProperty({ description: '职务' })
+  'zw': string = undefined;
+  @ApiProperty({ description: '职称' })
+  'zc': string = undefined;
   @ApiProperty({ description: '执业证号' })
   'number': string = undefined;
   @ApiProperty({ description: '工作经历' })
-  'work': object = undefined;
+  'work': Array<any> = undefined;
   @ApiProperty({ description: '简介' })
   'brief': string = undefined;
   @ApiProperty({ description: '是否使用' })
   'is_use': string = undefined;
 }
 
-
 export class QDTO_personnel extends SearchBase {
   constructor() {
     const like_prop = [];
@@ -52,7 +55,6 @@ export class QDTO_personnel extends SearchBase {
   'is_use': string = undefined;
 }
 
-
 export class QVO_personnel extends FVO_personnel {
   constructor(data: object) {
     super(data);
@@ -60,41 +62,45 @@ export class QVO_personnel extends FVO_personnel {
   }
 }
 
-
 export class CDTO_personnel {
   @ApiProperty({ description: '头像' })
-@Rule(RuleType['array']().empty(''))
+  @Rule(RuleType['array']().empty(''))
   'logo': Array<any> = undefined;
   @ApiProperty({ description: '姓名' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'name': string = undefined;
   @ApiProperty({ description: '性别' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'gender': string = undefined;
   @ApiProperty({ description: '出生年月' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'birth': string = undefined;
   @ApiProperty({ description: '学历' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'education': string = undefined;
   @ApiProperty({ description: '专业' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'speciality': string = undefined;
+  @ApiProperty({ description: '职务' })
+  @Rule(RuleType['string']().empty(''))
+  'zw': string = undefined;
+  @ApiProperty({ description: '职称' })
+  @Rule(RuleType['string']().empty(''))
+  'zc': string = undefined;
   @ApiProperty({ description: '执业证号' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'number': string = undefined;
   @ApiProperty({ description: '工作经历' })
-@Rule(RuleType['object']().empty(''))
-  'work': object = undefined;
+  @Rule(RuleType['array']().empty(''))
+  'work': Array<any> = undefined;
   @ApiProperty({ description: '简介' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'brief': string = undefined;
   @ApiProperty({ description: '是否使用' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'is_use': string = undefined;
 }
 
-
 export class CVO_personnel extends FVO_personnel {
   constructor(data: object) {
     super(data);
@@ -102,14 +108,12 @@ export class CVO_personnel extends FVO_personnel {
   }
 }
 
-
 export class UDTO_personnel extends CDTO_personnel {
-    @ApiProperty({ description: '数据id' })
-    @Rule(RuleType['string']().empty(''))
-    _id: string = undefined;
+  @ApiProperty({ description: '数据id' })
+  @Rule(RuleType['string']().empty(''))
+  _id: string = undefined;
 }
 
-
 export class UVAO_personnel extends FVO_personnel {
   constructor(data: object) {
     super(data);

+ 1 - 1
src/service/init.service.ts

@@ -65,7 +65,7 @@ export class InitService {
     datas.push(...systemMenus, ...userMenus, password);
     // 项目业务菜单
     const busMenus = [
-      { name: '业务员管理', order_num: 5, path: '/personnel', component: '/personnel/index', type: '1' },
+      { name: '公证员管理', order_num: 5, path: '/personnel', component: '/personnel/index', type: '1' },
       { name: '申办流程管理', order_num: 6, path: '/path', component: '/path/index', type: '1' },
       { name: '业务管理', order_num: 7, path: '/business', component: '/business/index', type: '1' },
       { name: '申请记录管理', order_num: 8, path: '/apply', component: '/apply/index', type: '1' },