12345678910111213141516171819202122232425262728293031 |
- //
- // KBGoodDetailModel.m
- // YouHuiProject
- //
- // Created by xiaoxi on 2018/1/24.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "KBGoodDetailModel.h"
- #import "KBDetailImgModel.h"
- @implementation KBGoodDetailModel
- + (NSDictionary<NSString *,id> *)modelCustomPropertyMapper {
- return @{@"Id":@"id"};
- }
- + (NSDictionary *)modelContainerPropertyGenericClass {
- return @{@"detail_pic":[KBDetailImgModel class]};
- }
- -(void)setCommission_price:(NSString *)commission_price{
- if ([@"" isEqualToString:commission_price]) {
- _commission_price=@"";
- }else{
- float tmp=[commission_price floatValue];
- _commission_price=[NSString stringWithFormat:@"%.2lf",tmp];
- }
-
- }
- @end
|