|
@@ -1,113 +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_orderDetail {
|
|
|
- constructor(data: object) {
|
|
|
- dealVO(this, data);
|
|
|
- }
|
|
|
- @ApiProperty({ description: '数据id' })
|
|
|
- _id: string = undefined;
|
|
|
- @ApiProperty({ description: '总订单id' })
|
|
|
- 'no': string = undefined;
|
|
|
- @ApiProperty({ description: '来源名称' })
|
|
|
- 'source_name': string = undefined;
|
|
|
- @ApiProperty({ description: '用户' })
|
|
|
- 'user': string = undefined;
|
|
|
- @ApiProperty({ description: '游客姓名' })
|
|
|
- 'name': string = undefined;
|
|
|
- @ApiProperty({ description: '游客身份证' })
|
|
|
- 'card': string = undefined;
|
|
|
- @ApiProperty({ description: '电话号' })
|
|
|
- 'phone': string = undefined;
|
|
|
- @ApiProperty({ description: '状态' })
|
|
|
- 'status': string = undefined;
|
|
|
-}
|
|
|
-
|
|
|
-export class QDTO_orderDetail extends SearchBase {
|
|
|
- constructor() {
|
|
|
- const like_prop = [];
|
|
|
- const props = [
|
|
|
- 'no',
|
|
|
- 'source_name',
|
|
|
- 'user',
|
|
|
- 'name',
|
|
|
- 'card',
|
|
|
- 'phone',
|
|
|
- 'status',
|
|
|
- ];
|
|
|
- const mapping = [];
|
|
|
- super({ like_prop, props, mapping });
|
|
|
- }
|
|
|
- @ApiProperty({ description: '总订单id' })
|
|
|
- 'no': string = undefined;
|
|
|
- @ApiProperty({ description: '来源名称' })
|
|
|
- 'source_name': string = undefined;
|
|
|
- @ApiProperty({ description: '用户' })
|
|
|
- 'user': string = undefined;
|
|
|
- @ApiProperty({ description: '游客姓名' })
|
|
|
- 'name': string = undefined;
|
|
|
- @ApiProperty({ description: '游客身份证' })
|
|
|
- 'card': string = undefined;
|
|
|
- @ApiProperty({ description: '电话号' })
|
|
|
- 'phone': string = undefined;
|
|
|
- @ApiProperty({ description: '状态' })
|
|
|
- 'status': string = undefined;
|
|
|
-}
|
|
|
-
|
|
|
-export class QVO_orderDetail extends FVO_orderDetail {
|
|
|
- constructor(data: object) {
|
|
|
- super(data);
|
|
|
- dealVO(this, data);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-export class CDTO_orderDetail {
|
|
|
- @ApiProperty({ description: '总订单id' })
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
- 'no': string = undefined;
|
|
|
- @ApiProperty({ description: '来源名称' })
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
- 'source_name': string = undefined;
|
|
|
- @ApiProperty({ description: '用户' })
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
- 'user': string = undefined;
|
|
|
- @ApiProperty({ description: '游客姓名' })
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
- 'name': string = undefined;
|
|
|
- @ApiProperty({ description: '游客身份证' })
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
- 'card': string = undefined;
|
|
|
- @ApiProperty({ description: '电话号' })
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
- 'phone': string = undefined;
|
|
|
- @ApiProperty({ description: '状态' })
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
- 'status': string = undefined;
|
|
|
-}
|
|
|
-
|
|
|
-export class CVO_orderDetail extends FVO_orderDetail {
|
|
|
- constructor(data: object) {
|
|
|
- super(data);
|
|
|
- dealVO(this, data);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-export class UDTO_orderDetail extends CDTO_orderDetail {
|
|
|
- @ApiProperty({ description: '数据id' })
|
|
|
- @Rule(RuleType['string']().empty(''))
|
|
|
- _id: string = undefined;
|
|
|
-}
|
|
|
-
|
|
|
-export class UVAO_orderDetail extends FVO_orderDetail {
|
|
|
- constructor(data: object) {
|
|
|
- super(data);
|
|
|
- dealVO(this, data);
|
|
|
- }
|
|
|
-}
|