|
@@ -100,41 +100,25 @@ export class CDTO_upkeep {
|
|
|
@Rule(RuleType['string']().empty(''))
|
|
|
'order_id': string = undefined;
|
|
|
@ApiProperty({ description: '用户id' })
|
|
|
- @Rule(
|
|
|
- RuleType['string']()
|
|
|
- .required()
|
|
|
- .error(new ServiceError('缺少用户id', FrameworkErrorEnum.NEED_BODY))
|
|
|
- )
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
'user': string = undefined;
|
|
|
@ApiProperty({ description: '用户名称' })
|
|
|
@Rule(RuleType['string']().empty(''))
|
|
|
'user_name': string = undefined;
|
|
|
@ApiProperty({ description: '供应商id' })
|
|
|
- @Rule(
|
|
|
- RuleType['string']()
|
|
|
- .required()
|
|
|
- .error(new ServiceError('缺少供应商id', FrameworkErrorEnum.NEED_BODY))
|
|
|
- )
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
'supplier': string = undefined;
|
|
|
@ApiProperty({ description: '供应商名称' })
|
|
|
@Rule(RuleType['string']().empty(''))
|
|
|
'supplier_name': string = undefined;
|
|
|
@ApiProperty({ description: '商品id' })
|
|
|
- @Rule(
|
|
|
- RuleType['string']()
|
|
|
- .required()
|
|
|
- .error(new ServiceError('缺少商品id', FrameworkErrorEnum.NEED_BODY))
|
|
|
- )
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
'good': string = undefined;
|
|
|
@ApiProperty({ description: '商品名称' })
|
|
|
@Rule(RuleType['string']().empty(''))
|
|
|
'good_name': string = undefined;
|
|
|
@ApiProperty({ description: '规格id' })
|
|
|
- @Rule(
|
|
|
- RuleType['string']()
|
|
|
- .required()
|
|
|
- .error(new ServiceError('缺少规格id', FrameworkErrorEnum.NEED_BODY))
|
|
|
- )
|
|
|
+ @Rule(RuleType['string']().empty(''))
|
|
|
'spec': string = undefined;
|
|
|
@ApiProperty({ description: '规格名称' })
|
|
|
@Rule(RuleType['string']().empty(''))
|