opple_objc_json_client.m 14.3 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 76 77 78 79 80 81 82 83 84 85
@end

@implementation GoodsCondition
@synthesize nameLike;
@synthesize categoryEquals;
@synthesize styleEquals;
@synthesize spaceEquals;
@synthesize materialEqueals;
@synthesize startprice;
@synthesize endprice;
@synthesize page;

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


91 92 93 94 95 96 97 98
@end

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

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


106 107 108 109 110 111
@end

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

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


121 122 123 124 125 126
@end

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

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


@end

@implementation SceneFilter
@synthesize styles;
@synthesize space;

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


146 147
@end

勾芒's avatar
勾芒 committed
148 149
@implementation DeleteCartRequest
@synthesize cartIds;
勾芒's avatar
勾芒 committed
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170

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


@end

@implementation ShopCartFilter
@synthesize consumerId;
@synthesize dp;

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


@end

勾芒's avatar
勾芒 committed
171
@implementation TOConsumerEntity
曹云霄's avatar
曹云霄 committed
172
@synthesize fid;
勾芒's avatar
勾芒 committed
173 174
@synthesize createName;
@synthesize createBy;
175
@synthesize createDate;
勾芒's avatar
勾芒 committed
176
@synthesize sysOrgCode;
177
@synthesize name;
勾芒's avatar
勾芒 committed
178 179 180 181 182 183 184
@synthesize mobile;
@synthesize province;
@synthesize city;
@synthesize country;
@synthesize address;
@synthesize picture;
@synthesize lastVisitedTime;
曹云霄's avatar
曹云霄 committed
185 186 187

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
188 189 190 191 192 193 194 195 196 197 198 199 200 201
    return YES;
}


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


@end

勾芒's avatar
勾芒 committed
202
@implementation TOGoodsBrandEntity
203
@synthesize fid;
勾芒's avatar
勾芒 committed
204 205 206 207 208
@synthesize createName;
@synthesize createBy;
@synthesize createDate;
@synthesize sysOrgCode;
@synthesize sysCompanyCode;
209 210
@synthesize code;
@synthesize name;
勾芒's avatar
勾芒 committed
211 212 213
@synthesize state;
@synthesize logo;
@synthesize fdescription;
214 215 216 217 218 219 220 221 222 223

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


+(JSONKeyMapper*)keyMapper
{
    return [[JSONKeyMapper alloc] initWithDictionary:@{
勾芒's avatar
勾芒 committed
224
                                                       @"description": @"fdescription",
225 226 227 228 229 230 231
                                                       @"id": @"fid",
                                                       }];
}


@end

勾芒's avatar
勾芒 committed
232
@implementation TOGoodsLabelEntity
233 234 235 236
@synthesize fid;
@synthesize sysOrgCode;
@synthesize sysCompanyCode;
@synthesize name;
勾芒's avatar
勾芒 committed
237
@synthesize categoryId;
238 239 240 241

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
    return YES;
曹云霄's avatar
曹云霄 committed
242 243 244 245 246
}


+(JSONKeyMapper*)keyMapper
{
247 248 249
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
250 251 252
}


253 254
@end

勾芒's avatar
勾芒 committed
255
@implementation TOHottagEntity
曹云霄's avatar
曹云霄 committed
256
@synthesize fid;
勾芒's avatar
勾芒 committed
257
@synthesize name;
曹云霄's avatar
曹云霄 committed
258 259 260

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


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


273 274
@end

勾芒's avatar
勾芒 committed
275
@implementation TOOrderdetailEntity
曹云霄's avatar
曹云霄 committed
276
@synthesize fid;
勾芒's avatar
勾芒 committed
277 278 279 280 281 282 283 284 285 286 287
@synthesize goodsId;
@synthesize goodsCode;
@synthesize goodsName;
@synthesize goodsCover;
@synthesize goodsSpec;
@synthesize goodsBrand;
@synthesize goodsNum;
@synthesize goodsPrice;
@synthesize goodsTotalPrice;
@synthesize orderId;
@synthesize remark;
曹云霄's avatar
曹云霄 committed
288 289 290

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
291
    return YES;
曹云霄's avatar
曹云霄 committed
292 293 294 295 296
}


+(JSONKeyMapper*)keyMapper
{
297 298 299 300 301 302 303 304
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
}


@end

勾芒's avatar
勾芒 committed
305
@implementation TOSceneEntity
306
@synthesize fid;
勾芒's avatar
勾芒 committed
307
@synthesize sceneCode;
308
@synthesize name;
勾芒's avatar
勾芒 committed
309 310 311 312
@synthesize pricure;
@synthesize category;
@synthesize style;
@synthesize space;
313 314 315 316 317 318 319 320 321 322 323 324

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


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


328 329 330
@end

@implementation TOShopcartEntity
勾芒's avatar
勾芒 committed
331
@synthesize goods;
曹云霄's avatar
曹云霄 committed
332
@synthesize fid;
333 334 335 336 337 338 339 340 341
@synthesize createName;
@synthesize createBy;
@synthesize createDate;
@synthesize updateName;
@synthesize updateBy;
@synthesize updateDate;
@synthesize goodsId;
@synthesize goodsNum;
@synthesize consumerId;
勾芒's avatar
勾芒 committed
342
@synthesize resellerId;
曹云霄's avatar
曹云霄 committed
343 344 345

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
346
    return YES;
曹云霄's avatar
曹云霄 committed
347 348 349 350 351
}


+(JSONKeyMapper*)keyMapper
{
352 353 354
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
355 356 357
}


358 359 360
@end

@implementation IdEntity
曹云霄's avatar
曹云霄 committed
361 362 363 364
@synthesize fid;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
365
    return YES;
曹云霄's avatar
曹云霄 committed
366 367 368 369 370
}


+(JSONKeyMapper*)keyMapper
{
371 372 373
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
374 375 376
}


377 378
@end

勾芒's avatar
勾芒 committed
379 380 381 382 383 384 385
#ifndef DEF_SortDirection_M
#define DEF_SortDirection_M
NSString * const SORTDIRECTION_ASC = @"asc";
NSString * const SORTDIRECTION_DESC = @"desc";
#endif /* DEF_SortDirection_M */

@implementation TOShippingAddrEntity
曹云霄's avatar
曹云霄 committed
386
@synthesize fid;
勾芒's avatar
勾芒 committed
387 388
@synthesize createDate;
@synthesize sysOrgCode;
389
@synthesize name;
勾芒's avatar
勾芒 committed
390 391 392 393 394 395
@synthesize miblephone;
@synthesize province;
@synthesize city;
@synthesize country;
@synthesize address;
@synthesize consumerId;
曹云霄's avatar
曹云霄 committed
396 397 398

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
399
    return YES;
曹云霄's avatar
曹云霄 committed
400 401 402 403 404
}


+(JSONKeyMapper*)keyMapper
{
405 406 407 408 409 410 411 412
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
}


@end

勾芒's avatar
勾芒 committed
413
@implementation TOPositionEntity
414
@synthesize fid;
勾芒's avatar
勾芒 committed
415 416 417 418
@synthesize code;
@synthesize name;
@synthesize commission;
@synthesize resellerCode;
419 420 421 422 423 424 425 426 427 428 429 430

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


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


434 435
@end

勾芒's avatar
勾芒 committed
436
@implementation TOOrderEntity
曹云霄's avatar
曹云霄 committed
437
@synthesize fid;
勾芒's avatar
勾芒 committed
438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458
@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
459 460 461

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
462
    return YES;
曹云霄's avatar
曹云霄 committed
463 464 465 466 467
}


+(JSONKeyMapper*)keyMapper
{
468 469 470 471 472 473 474 475
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
}


@end

勾芒's avatar
勾芒 committed
476
@implementation TOGoodsLabelCategoryEntity
477 478 479
@synthesize fid;
@synthesize sysOrgCode;
@synthesize sysCompanyCode;
勾芒's avatar
勾芒 committed
480
@synthesize code;
481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498
@synthesize name;

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


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


@end

勾芒's avatar
勾芒 committed
499
@implementation TOGoodsCategoryEntity
500 501 502
@synthesize fid;
@synthesize code;
@synthesize name;
勾芒's avatar
勾芒 committed
503 504
@synthesize upperId;
@synthesize level;
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",
                                                       }];
曹云霄's avatar
曹云霄 committed
517 518 519
}


520 521
@end

勾芒's avatar
勾芒 committed
522
@implementation TOGoodsEntity
曹云霄's avatar
曹云霄 committed
523
@synthesize fid;
524
@synthesize createDate;
勾芒's avatar
勾芒 committed
525 526 527
@synthesize onlineTime;
@synthesize company;
@synthesize code;
528
@synthesize name;
勾芒's avatar
勾芒 committed
529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556
@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
557 558 559

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
560
    return YES;
曹云霄's avatar
曹云霄 committed
561 562 563 564 565
}


+(JSONKeyMapper*)keyMapper
{
566 567 568
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"id": @"fid",
                                                       }];
曹云霄's avatar
曹云霄 committed
569 570 571
}


勾芒's avatar
勾芒 committed
572 573
@end

勾芒's avatar
勾芒 committed
574 575 576 577 578 579 580 581 582 583 584 585 586 587 588
@implementation SaveShoppingCartRequest
@synthesize consumerId;
@synthesize goodsId;
@synthesize count;

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


@end

@implementation RsShippingAddrEntity
@synthesize list;
勾芒's avatar
勾芒 committed
589 590 591 592 593 594 595

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


596 597
@end

598 599
@implementation HotTagResponse
@synthesize list;
曹云霄's avatar
曹云霄 committed
600 601 602

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624
    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
625 626 627
}


628 629 630 631 632
@end

@implementation ResetPasswordRequest
@synthesize username;
@synthesize smsCode;
曹云霄's avatar
曹云霄 committed
633 634 635 636
@synthesize fnewPassword;

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
637
    return YES;
曹云霄's avatar
曹云霄 committed
638 639 640 641 642
}


+(JSONKeyMapper*)keyMapper
{
643 644 645
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"newPassword": @"fnewPassword",
                                                       }];
曹云霄's avatar
曹云霄 committed
646 647 648
}


649 650 651 652 653
@end

@implementation LoginResult
@synthesize employee;
@synthesize commission;
曹云霄's avatar
曹云霄 committed
654 655 656

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
657
    return YES;
曹云霄's avatar
曹云霄 committed
658 659 660
}


661 662 663 664 665
@end

@implementation ConsumerQueryCondition
@synthesize nameEquals;
@synthesize mobileEquals;
勾芒's avatar
勾芒 committed
666 667
@synthesize createTimeBegin;
@synthesize createTimeEnd;
668
@synthesize page;
曹云霄's avatar
曹云霄 committed
669 670 671

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
672
    return YES;
曹云霄's avatar
曹云霄 committed
673 674 675
}


676 677 678 679 680
@end

@implementation ExceptionCode
@synthesize code;
@synthesize message;
曹云霄's avatar
曹云霄 committed
681 682 683

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
684
    return YES;
曹云霄's avatar
曹云霄 committed
685 686 687
}


688 689 690 691 692 693 694 695
@end

@implementation DataPage
@synthesize total;
@synthesize page;
@synthesize rows;
@synthesize sort;
@synthesize order;
曹云霄's avatar
曹云霄 committed
696 697 698

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
699
    return YES;
曹云霄's avatar
曹云霄 committed
700 701 702
}


703 704 705 706 707 708 709 710 711 712 713 714 715 716
@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
717 718 719

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
720
    return YES;
721
}
曹云霄's avatar
曹云霄 committed
722 723


724 725 726 727 728
@end

@implementation TSDepart
@synthesize TSPDepart;
@synthesize departname;
曹云霄's avatar
曹云霄 committed
729
@synthesize fdescription;
730 731 732 733 734 735
@synthesize TSDeparts;
@synthesize orgCode;
@synthesize orgType;
@synthesize mobile;
@synthesize fax;
@synthesize address;
曹云霄's avatar
曹云霄 committed
736 737 738

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
739
    return YES;
曹云霄's avatar
曹云霄 committed
740 741 742 743 744
}


+(JSONKeyMapper*)keyMapper
{
745 746 747 748 749 750
    return [[JSONKeyMapper alloc] initWithDictionary:@{
                                                       @"description": @"fdescription",
                                                       }];
}


勾芒's avatar
勾芒 committed
751 752 753 754 755 756 757 758 759 760 761
@end

@implementation ShopCartResponse
@synthesize shopcart;

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


762 763 764 765 766 767 768 769 770 771 772 773 774 775
@end

@implementation TSUserOrg
@synthesize tsUser;
@synthesize tsDepart;

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


@end

勾芒's avatar
勾芒 committed
776 777
@implementation SceneResponse
@synthesize list;
778 779 780 781

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


785 786 787 788
@end

@implementation OrderResponse
@synthesize orderBillList;
曹云霄's avatar
曹云霄 committed
789 790 791

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


796 797 798
@end

@implementation GoodsResponse
曹云霄's avatar
曹云霄 committed
799 800 801 802
@synthesize goodsEntity;

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


807 808 809 810
@end

@implementation ConsumerPageResult
@synthesize results;
曹云霄's avatar
曹云霄 committed
811 812 813

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
814
    return YES;
815
}
曹云霄's avatar
曹云霄 committed
816 817


818 819 820 821 822 823 824 825 826 827 828 829 830
@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
831 832 833

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


838 839 840 841
@end

@implementation TOEmployee
@synthesize positions;
曹云霄's avatar
曹云霄 committed
842 843 844

+(BOOL)propertyIsOptional:(NSString*)propertyName
{
845
    return YES;
曹云霄's avatar
曹云霄 committed
846 847 848
}


849 850
@end