|
@@ -1,177 +0,0 @@
|
|
-import { Rule, RuleType } from '@midwayjs/validate';
|
|
|
|
-import { ApiProperty } from '@midwayjs/swagger';
|
|
|
|
-import { SearchBase } from 'free-midway-component';
|
|
|
|
-import get = require('lodash/get');
|
|
|
|
-const dealVO = (cla, data) => {
|
|
|
|
- for (const key in cla) {
|
|
|
|
- const val = get(data, key);
|
|
|
|
- if (val || val === 0) cla[key] = val;
|
|
|
|
- }
|
|
|
|
-};
|
|
|
|
-export class FVO_scientist {
|
|
|
|
- constructor(data: object) {
|
|
|
|
- dealVO(this, data);
|
|
|
|
- }
|
|
|
|
- @ApiProperty({ description: '数据id' })
|
|
|
|
- _id: 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: '上传身份证照片' })
|
|
|
|
- 'card': Array<any> = undefined;
|
|
|
|
- @ApiProperty({ description: '所在单位全称' })
|
|
|
|
- 'company': string = undefined;
|
|
|
|
- @ApiProperty({ description: '所在单位地址' })
|
|
|
|
- 'address': string = undefined;
|
|
|
|
- @ApiProperty({ description: '专业技术职称' })
|
|
|
|
- 'zc': string = undefined;
|
|
|
|
- @ApiProperty({ description: '职称证明' })
|
|
|
|
- 'zc_file': Array<any> = undefined;
|
|
|
|
- @ApiProperty({ description: '单位同意入驻证明' })
|
|
|
|
- 'settle_file': Array<any> = undefined;
|
|
|
|
- @ApiProperty({ description: '用户状态' })
|
|
|
|
- 'status': string = undefined;
|
|
|
|
- @ApiProperty({ description: '记录' })
|
|
|
|
- 'record': Array<any> = undefined;
|
|
|
|
- @ApiProperty({ description: '角色' })
|
|
|
|
- 'role_id': string = undefined;
|
|
|
|
- @ApiProperty({ description: '是否为在职人员' })
|
|
|
|
- 'is_job': string = undefined;
|
|
|
|
- @ApiProperty({ description: '退休前所在单位' })
|
|
|
|
- 'job_company': string = undefined;
|
|
|
|
- @ApiProperty({ description: '上传退休证明材料' })
|
|
|
|
- 'job_file': Array<any> = undefined;
|
|
|
|
- @ApiProperty({ description: '上传职称证明' })
|
|
|
|
- 'job_zc_file': Array<any> = undefined;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-export class QDTO_scientist extends SearchBase {
|
|
|
|
- constructor() {
|
|
|
|
- const like_prop = [];
|
|
|
|
- const props = [
|
|
|
|
- 'account',
|
|
|
|
- 'password',
|
|
|
|
- 'name',
|
|
|
|
- 'phone',
|
|
|
|
- 'email',
|
|
|
|
- 'company',
|
|
|
|
- 'address',
|
|
|
|
- 'zc',
|
|
|
|
- 'status',
|
|
|
|
- 'role_id',
|
|
|
|
- ];
|
|
|
|
- const mapping = [];
|
|
|
|
- super({ like_prop, props, mapping });
|
|
|
|
- }
|
|
|
|
- @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: '所在单位全称' })
|
|
|
|
- 'company': string = undefined;
|
|
|
|
- @ApiProperty({ description: '所在单位地址' })
|
|
|
|
- 'address': string = undefined;
|
|
|
|
- @ApiProperty({ description: '专业技术职称' })
|
|
|
|
- 'zc': string = undefined;
|
|
|
|
- @ApiProperty({ description: '用户状态' })
|
|
|
|
- 'status': string = undefined;
|
|
|
|
- @ApiProperty({ description: '角色' })
|
|
|
|
- 'role_id': string = undefined;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-export class QVO_scientist extends FVO_scientist {
|
|
|
|
- constructor(data: object) {
|
|
|
|
- super(data);
|
|
|
|
- dealVO(this, data);
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-export class CDTO_scientist {
|
|
|
|
- @ApiProperty({ description: '登陆账号' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'account': string = undefined;
|
|
|
|
- @ApiProperty({ description: '登陆密码' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'password': string = undefined;
|
|
|
|
- @ApiProperty({ description: '姓名' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'name': string = undefined;
|
|
|
|
- @ApiProperty({ description: '常用手机号码' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'phone': string = undefined;
|
|
|
|
- @ApiProperty({ description: '邮箱' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'email': string = undefined;
|
|
|
|
- @ApiProperty({ description: '上传身份证照片' })
|
|
|
|
- @Rule(RuleType['array']().empty(''))
|
|
|
|
- 'card': Array<any> = undefined;
|
|
|
|
- @ApiProperty({ description: '所在单位全称' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'company': string = undefined;
|
|
|
|
- @ApiProperty({ description: '所在单位地址' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'address': string = undefined;
|
|
|
|
- @ApiProperty({ description: '专业技术职称' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'zc': string = undefined;
|
|
|
|
- @ApiProperty({ description: '职称证明' })
|
|
|
|
- @Rule(RuleType['array']().empty(''))
|
|
|
|
- 'zc_file': Array<any> = undefined;
|
|
|
|
- @ApiProperty({ description: '单位同意入驻证明' })
|
|
|
|
- @Rule(RuleType['array']().empty(''))
|
|
|
|
- 'settle_file': Array<any> = undefined;
|
|
|
|
- @ApiProperty({ description: '用户状态' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'status': string = undefined;
|
|
|
|
- @ApiProperty({ description: '记录' })
|
|
|
|
- @Rule(RuleType['array']().empty(''))
|
|
|
|
- 'record': Array<any> = undefined;
|
|
|
|
- @ApiProperty({ description: '角色' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'role_id': string = undefined;
|
|
|
|
- @ApiProperty({ description: '是否为在职人员' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'is_job': string = undefined;
|
|
|
|
- @ApiProperty({ description: '退休前所在单位' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- 'job_company': string = undefined;
|
|
|
|
- @ApiProperty({ description: '上传退休证明材料' })
|
|
|
|
- @Rule(RuleType['array']().empty(''))
|
|
|
|
- 'job_file': Array<any> = undefined;
|
|
|
|
- @ApiProperty({ description: '上传职称证明' })
|
|
|
|
- @Rule(RuleType['array']().empty(''))
|
|
|
|
- 'job_zc_file': Array<any> = undefined;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-export class CVO_scientist extends FVO_scientist {
|
|
|
|
- constructor(data: object) {
|
|
|
|
- super(data);
|
|
|
|
- dealVO(this, data);
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-export class UDTO_scientist extends CDTO_scientist {
|
|
|
|
- @ApiProperty({ description: '数据id' })
|
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
|
- _id: string = undefined;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-export class UVAO_scientist extends FVO_scientist {
|
|
|
|
- constructor(data: object) {
|
|
|
|
- super(data);
|
|
|
|
- dealVO(this, data);
|
|
|
|
- }
|
|
|
|
-}
|
|
|