opple_objc_json_client.m 14.2 KB
Newer Older
1 2 3 4 5 6 7

#import "opple_objc_json_client.h"

@implementation PageRows
@synthesize page;
@synthesize rows;
@synthesize total;
曹云霄's avatar
曹云霄 committed
8 9 10

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
11
    return YES;
曹云霄's avatar
曹云霄 committed
12 13 14
}


15 16 17 18 19 20
@end

@implementation RsResponse
@synthesize code;
@synthesize message;
@synthesize data;
曹云霄's avatar
曹云霄 committed
21 22 23

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
24
    return YES;
曹云霄's avatar
曹云霄 committed
25 26 27
}


28 29 30 31 32
@end

@implementation LoginInfo
@synthesize username;
@synthesize password;
曹云霄's avatar
曹云霄 committed
33 34 35

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
36
    return YES;
曹云霄's avatar
曹云霄 committed
37 38 39
}


40 41 42 43 44
@end

@implementation ModifyPasswordRequest
@synthesize employeeId;
@synthesize oldPassword;
曹云霄's avatar
曹云霄 committed
45 46 47 48
@synthesize fnewPassword;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
49
    return YES;
曹云霄's avatar
曹云霄 committed
50 51 52 53 54
}


+(JSONKeyMapper*)keyMapper
{
55 56 57
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"newPassword": @"fnewPassword",
                                                       }];
曹云霄's avatar
曹云霄 committed
58 59 60
}


61 62
@end

63 64 65
@implementation DataDict
@synthesize typename;
@synthesize typecode;
曹云霄's avatar
曹云霄 committed
66 67 68

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
69
    return YES;
70
}
曹云霄's avatar
曹云霄 committed
71 72


73 74 75
@end

@implementation GoodsCondition
勾芒's avatar
勾芒 committed
76
@synthesize reseller_id;
77 78 79 80 81 82 83 84 85 86
@synthesize nameLike;
@synthesize categoryEquals;
@synthesize styleEquals;
@synthesize spaceEquals;
@synthesize materialEqueals;
@synthesize startprice;
@synthesize endprice;
@synthesize page;

+(BOOL)propertyIsOptional:(NSString*)propertyName
曹云霄's avatar
曹云霄 committed
87
{
88
    return YES;
曹云霄's avatar
曹云霄 committed
89 90 91
}


92 93 94 95 96 97 98 99
@end

@implementation GoodsFilter
@synthesize styles;
@synthesize categories;
@synthesize space;
@synthesize material;
@synthesize price;
曹云霄's avatar
曹云霄 committed
100 101 102

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
103
    return YES;
104
}
曹云霄's avatar
曹云霄 committed
105 106


107 108 109 110 111 112
@end

@implementation OrderBill
@synthesize datapage;
@synthesize order;
@synthesize orderdetailList;
113 114
@synthesize consumer;
@synthesize employee;
曹云霄's avatar
曹云霄 committed
115 116 117

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
118
    return YES;
119
}
曹云霄's avatar
曹云霄 committed
120 121


122 123 124 125 126 127
@end

@implementation SceneCondition
@synthesize styleEquals;
@synthesize spaceEquals;
@synthesize page;
曹云霄's avatar
曹云霄 committed
128 129 130

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
131 132 133 134 135 136 137 138 139 140 141 142 143
    return YES;
}


@end

@implementation SceneFilter
@synthesize styles;
@synthesize space;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
曹云霄's avatar
曹云霄 committed
144 145 146
}


147 148
@end

勾芒's avatar
勾芒 committed
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
@implementation SaveShoppingCartRequest
@synthesize consumerId;
@synthesize goodsId;
@synthesize count;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
}


@end

@implementation ShopCartFilter
@synthesize consumerId;
@synthesize dp;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
}


@end

@implementation TOGoodsEntity
曹云霄's avatar
曹云霄 committed
175
@synthesize fid;
176
@synthesize createDate;
勾芒's avatar
勾芒 committed
177 178 179
@synthesize onlineTime;
@synthesize company;
@synthesize code;
180
@synthesize name;
勾芒's avatar
勾芒 committed
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
@synthesize number;
@synthesize categoryId;
@synthesize brandId;
@synthesize keyword;
@synthesize guidePrice;
@synthesize tagPrice;
@synthesize costPrice;
@synthesize state;
@synthesize inv;
@synthesize detailedIntro;
@synthesize weight;
@synthesize unit;
@synthesize productProfile;
@synthesize power;
@synthesize colorTemperature;
@synthesize spec;
@synthesize function;
@synthesize material;
@synthesize lightSource;
@synthesize goodsStyle;
@synthesize series;
@synthesize area;
@synthesize size;
@synthesize space;
@synthesize installMethod;
@synthesize lightNumber;
@synthesize pictures;
@synthesize barcode;
曹云霄's avatar
曹云霄 committed
209 210 211

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
212 213 214 215 216 217 218 219 220 221 222 223 224 225
    return YES;
}


+(JSONKeyMapper*)keyMapper
{
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
}


@end

勾芒's avatar
勾芒 committed
226
@implementation TOGoodsCategoryEntity
227 228 229
@synthesize fid;
@synthesize code;
@synthesize name;
勾芒's avatar
勾芒 committed
230 231
@synthesize upperId;
@synthesize level;
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
}


+(JSONKeyMapper*)keyMapper
{
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
}


@end

勾芒's avatar
勾芒 committed
249
@implementation TOGoodsLabelCategoryEntity
250 251 252
@synthesize fid;
@synthesize sysOrgCode;
@synthesize sysCompanyCode;
勾芒's avatar
勾芒 committed
253
@synthesize code;
254 255 256 257 258
@synthesize name;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
曹云霄's avatar
曹云霄 committed
259 260 261 262 263
}


+(JSONKeyMapper*)keyMapper
{
264 265 266
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
267 268 269
}


270 271
@end

勾芒's avatar
勾芒 committed
272
@implementation TOOrderEntity
曹云霄's avatar
曹云霄 committed
273
@synthesize fid;
勾芒's avatar
勾芒 committed
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
@synthesize createName;
@synthesize createBy;
@synthesize createDate;
@synthesize updateName;
@synthesize updateBy;
@synthesize updateDate;
@synthesize sysOrgCode;
@synthesize orderNumber;
@synthesize orderTime;
@synthesize guideId;
@synthesize orderState;
@synthesize consumerId;
@synthesize goodsNum;
@synthesize orderPrice;
@synthesize receiverName;
@synthesize receiverMobile;
@synthesize receiverAddress;
@synthesize isBill;
@synthesize billType;
@synthesize billTitle;
@synthesize payType;
曹云霄's avatar
曹云霄 committed
295 296 297

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
298
    return YES;
曹云霄's avatar
曹云霄 committed
299 300 301 302 303
}


+(JSONKeyMapper*)keyMapper
{
304 305 306
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
307 308 309
}


310 311
@end

勾芒's avatar
勾芒 committed
312
@implementation TOPositionEntity
曹云霄's avatar
曹云霄 committed
313
@synthesize fid;
勾芒's avatar
勾芒 committed
314 315 316 317
@synthesize code;
@synthesize name;
@synthesize commission;
@synthesize resellerCode;
曹云霄's avatar
曹云霄 committed
318 319 320

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
321
    return YES;
曹云霄's avatar
曹云霄 committed
322 323 324 325 326
}


+(JSONKeyMapper*)keyMapper
{
327 328 329 330 331 332 333 334
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
}


@end

勾芒's avatar
勾芒 committed
335
@implementation TOShippingAddrEntity
336
@synthesize fid;
勾芒's avatar
勾芒 committed
337 338
@synthesize createDate;
@synthesize sysOrgCode;
339
@synthesize name;
勾芒's avatar
勾芒 committed
340 341 342 343 344 345 346
@synthesize miblephone;
@synthesize province;
@synthesize city;
@synthesize country;
@synthesize address;
@synthesize state;
@synthesize consumerId;
347 348 349 350 351 352 353 354 355 356 357 358

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
}


+(JSONKeyMapper*)keyMapper
{
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
359 360 361
}


362 363 364
@end

@implementation TOShopcartEntity
勾芒's avatar
勾芒 committed
365
@synthesize goods;
曹云霄's avatar
曹云霄 committed
366
@synthesize fid;
367 368 369 370 371 372 373 374 375
@synthesize createName;
@synthesize createBy;
@synthesize createDate;
@synthesize updateName;
@synthesize updateBy;
@synthesize updateDate;
@synthesize goodsId;
@synthesize goodsNum;
@synthesize consumerId;
勾芒's avatar
勾芒 committed
376
@synthesize sysOrgCode;
曹云霄's avatar
曹云霄 committed
377 378 379

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
380
    return YES;
曹云霄's avatar
曹云霄 committed
381 382 383 384 385
}


+(JSONKeyMapper*)keyMapper
{
386 387 388
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
389 390 391
}


392 393
@end

勾芒's avatar
勾芒 committed
394 395 396 397 398 399
#ifndef DEF_SortDirection_M
#define DEF_SortDirection_M
NSString * const SORTDIRECTION_ASC = @"asc";
NSString * const SORTDIRECTION_DESC = @"desc";
#endif /* DEF_SortDirection_M */

400
@implementation IdEntity
曹云霄's avatar
曹云霄 committed
401 402 403 404
@synthesize fid;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
405
    return YES;
曹云霄's avatar
曹云霄 committed
406 407 408 409 410
}


+(JSONKeyMapper*)keyMapper
{
411 412 413
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
414 415 416
}


417 418
@end

勾芒's avatar
勾芒 committed
419
@implementation TOSceneEntity
曹云霄's avatar
曹云霄 committed
420
@synthesize fid;
勾芒's avatar
勾芒 committed
421
@synthesize sceneCode;
422
@synthesize name;
勾芒's avatar
勾芒 committed
423 424 425 426
@synthesize pricure;
@synthesize category;
@synthesize style;
@synthesize space;
曹云霄's avatar
曹云霄 committed
427 428 429

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
430
    return YES;
曹云霄's avatar
曹云霄 committed
431 432 433 434 435
}


+(JSONKeyMapper*)keyMapper
{
436 437 438 439 440 441 442 443
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
}


@end

勾芒's avatar
勾芒 committed
444
@implementation TOOrderdetailEntity
445
@synthesize fid;
勾芒's avatar
勾芒 committed
446 447 448 449 450 451 452 453 454 455 456
@synthesize goodsId;
@synthesize goodsCode;
@synthesize goodsName;
@synthesize goodsCover;
@synthesize goodsSpec;
@synthesize goodsBrand;
@synthesize goodsNum;
@synthesize goodsPrice;
@synthesize goodsTotalPrice;
@synthesize orderId;
@synthesize remark;
457 458 459 460 461 462 463 464 465 466 467 468

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
}


+(JSONKeyMapper*)keyMapper
{
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
469 470 471
}


472 473
@end

勾芒's avatar
勾芒 committed
474
@implementation TOHottagEntity
曹云霄's avatar
曹云霄 committed
475
@synthesize fid;
勾芒's avatar
勾芒 committed
476
@synthesize name;
曹云霄's avatar
曹云霄 committed
477 478 479

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
480
    return YES;
曹云霄's avatar
曹云霄 committed
481 482 483 484 485
}


+(JSONKeyMapper*)keyMapper
{
486 487 488 489 490 491 492 493
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
}


@end

勾芒's avatar
勾芒 committed
494
@implementation TOGoodsLabelEntity
495 496 497 498
@synthesize fid;
@synthesize sysOrgCode;
@synthesize sysCompanyCode;
@synthesize name;
勾芒's avatar
勾芒 committed
499
@synthesize categoryId;
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
}


+(JSONKeyMapper*)keyMapper
{
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
}


@end

勾芒's avatar
勾芒 committed
517
@implementation TOGoodsBrandEntity
518
@synthesize fid;
勾芒's avatar
勾芒 committed
519 520 521 522 523
@synthesize createName;
@synthesize createBy;
@synthesize createDate;
@synthesize sysOrgCode;
@synthesize sysCompanyCode;
524 525
@synthesize code;
@synthesize name;
勾芒's avatar
勾芒 committed
526 527 528
@synthesize state;
@synthesize logo;
@synthesize fdescription;
529 530 531 532 533 534 535 536 537 538

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
}


+(JSONKeyMapper*)keyMapper
{
    return [[JSONKeyMapper alloc] initWithDictionary:@{
勾芒's avatar
勾芒 committed
539
                                                       @"description": @"fdescription",
540 541
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
542 543 544
}


545 546
@end

勾芒's avatar
勾芒 committed
547
@implementation TOConsumerEntity
曹云霄's avatar
曹云霄 committed
548
@synthesize fid;
勾芒's avatar
勾芒 committed
549 550
@synthesize createName;
@synthesize createBy;
551
@synthesize createDate;
勾芒's avatar
勾芒 committed
552
@synthesize sysOrgCode;
553
@synthesize name;
勾芒's avatar
勾芒 committed
554 555 556 557 558 559 560
@synthesize mobile;
@synthesize province;
@synthesize city;
@synthesize country;
@synthesize address;
@synthesize picture;
@synthesize lastVisitedTime;
曹云霄's avatar
曹云霄 committed
561 562 563

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
564
    return YES;
曹云霄's avatar
曹云霄 committed
565 566 567 568 569
}


+(JSONKeyMapper*)keyMapper
{
570 571 572
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
573 574 575
}


勾芒's avatar
勾芒 committed
576 577 578 579 580 581 582 583 584 585 586
@end

@implementation DeleteCartRequest
@synthesize cartIds;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
}


587 588
@end

589 590
@implementation HotTagResponse
@synthesize list;
曹云霄's avatar
曹云霄 committed
591 592 593

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615
    return YES;
}


@end

@implementation GoodsCategory
@synthesize fid;
@synthesize name;
@synthesize children;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
}


+(JSONKeyMapper*)keyMapper
{
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
616 617 618
}


619 620 621 622 623
@end

@implementation ResetPasswordRequest
@synthesize username;
@synthesize smsCode;
曹云霄's avatar
曹云霄 committed
624 625 626 627
@synthesize fnewPassword;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
628
    return YES;
曹云霄's avatar
曹云霄 committed
629 630 631 632 633
}


+(JSONKeyMapper*)keyMapper
{
634 635 636
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"newPassword": @"fnewPassword",
                                                       }];
曹云霄's avatar
曹云霄 committed
637 638 639
}


640 641 642 643 644
@end

@implementation LoginResult
@synthesize employee;
@synthesize commission;
曹云霄's avatar
曹云霄 committed
645 646 647

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
648
    return YES;
曹云霄's avatar
曹云霄 committed
649 650 651
}


652 653 654 655 656
@end

@implementation ConsumerQueryCondition
@synthesize nameEquals;
@synthesize mobileEquals;
勾芒's avatar
勾芒 committed
657 658
@synthesize createTimeBegin;
@synthesize createTimeEnd;
659
@synthesize page;
曹云霄's avatar
曹云霄 committed
660 661 662

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
663
    return YES;
曹云霄's avatar
曹云霄 committed
664 665 666
}


667 668 669 670 671
@end

@implementation ExceptionCode
@synthesize code;
@synthesize message;
曹云霄's avatar
曹云霄 committed
672 673 674

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
675
    return YES;
曹云霄's avatar
曹云霄 committed
676 677 678
}


679 680 681 682 683 684 685 686
@end

@implementation DataPage
@synthesize total;
@synthesize page;
@synthesize rows;
@synthesize sort;
@synthesize order;
曹云霄's avatar
曹云霄 committed
687 688 689

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
690
    return YES;
曹云霄's avatar
曹云霄 committed
691 692 693
}


694 695 696 697 698 699 700 701 702 703 704 705 706 707
@end

@implementation TSBaseUser
@synthesize departid;
@synthesize signature;
@synthesize browser;
@synthesize userKey;
@synthesize status;
@synthesize activitiSync;
@synthesize password;
@synthesize userName;
@synthesize realName;
@synthesize currentDepart;
@synthesize userOrgList;
曹云霄's avatar
曹云霄 committed
708 709 710

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
711
    return YES;
712
}
曹云霄's avatar
曹云霄 committed
713 714


715 716 717 718 719
@end

@implementation TSDepart
@synthesize TSPDepart;
@synthesize departname;
曹云霄's avatar
曹云霄 committed
720
@synthesize fdescription;
721 722 723 724 725 726
@synthesize TSDeparts;
@synthesize orgCode;
@synthesize orgType;
@synthesize mobile;
@synthesize fax;
@synthesize address;
曹云霄's avatar
曹云霄 committed
727 728 729

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
730
    return YES;
曹云霄's avatar
曹云霄 committed
731 732 733 734 735
}


+(JSONKeyMapper*)keyMapper
{
736 737 738 739 740 741
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"description": @"fdescription",
                                                       }];
}


勾芒's avatar
勾芒 committed
742 743 744 745 746 747 748 749 750 751 752
@end

@implementation ShopCartResponse
@synthesize shopcart;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
}


753 754 755 756 757 758 759 760 761 762 763 764 765 766
@end

@implementation TSUserOrg
@synthesize tsUser;
@synthesize tsDepart;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
}


@end

勾芒's avatar
勾芒 committed
767 768
@implementation SceneResponse
@synthesize list;
769 770 771 772

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
773
}
曹云霄's avatar
曹云霄 committed
774 775


776 777 778 779
@end

@implementation OrderResponse
@synthesize orderBillList;
曹云霄's avatar
曹云霄 committed
780 781 782

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
783
    return YES;
784
}
曹云霄's avatar
曹云霄 committed
785 786


787 788 789
@end

@implementation GoodsResponse
曹云霄's avatar
曹云霄 committed
790 791 792 793
@synthesize goodsEntity;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
794
    return YES;
795
}
曹云霄's avatar
曹云霄 committed
796 797


798 799 800 801
@end

@implementation ConsumerPageResult
@synthesize results;
曹云霄's avatar
曹云霄 committed
802 803 804

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
805
    return YES;
806
}
曹云霄's avatar
曹云霄 committed
807 808


809 810 811 812 813 814 815 816 817 818 819 820 821
@end

@implementation TSUser
@synthesize signatureFile;
@synthesize mobilePhone;
@synthesize officePhone;
@synthesize email;
@synthesize createDate;
@synthesize createBy;
@synthesize createName;
@synthesize updateDate;
@synthesize updateBy;
@synthesize updateName;
曹云霄's avatar
曹云霄 committed
822 823 824

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
825
    return YES;
曹云霄's avatar
曹云霄 committed
826 827 828
}


829 830 831 832
@end

@implementation TOEmployee
@synthesize positions;
曹云霄's avatar
曹云霄 committed
833 834 835

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
836
    return YES;
曹云霄's avatar
曹云霄 committed
837 838 839
}


840 841
@end