datadef.go 28.8 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 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 175 176 177 178 179 180 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 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 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 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095
package logic

type TestAddCatReq struct {
	Position int    `json:"position"`
	CatId    string `json:"catId"`
}

type TestAddCatData struct {
}

type TestAddCatResp struct {
	Code    int            `json:"code"`
	Data    TestAddCatData `json:"data"`
	Message string         `json:"message"`
}

type ChangeCoinReq struct {
	Type int   `json:"type"`
	Coin int64 `json:"coin"`
}

type AddAdCountReq struct {
	Count int `json:"count"`
}

type AddAdCountData struct {
}

type AddAdCountResp struct {
	Code    int            `json:"code"`
	Data    AddAdCountData `json:"data"`
	Message string         `json:"message"`
}

type AddFlopReq struct {
	Count int `json:"count"`
}

type AddFlopData struct {
}

type AddFlopResp struct {
	Code    int         `json:"code"`
	Data    AddFlopData `json:"data"`
	Message string      `json:"message"`
}

type SettlementReq struct {
	Round     int `json:"round"`
	RewardNum int `json:"rewardNum"`
}

type SettlementData struct {
}

type SettlementResp struct {
	Code    int            `json:"code"`
	Data    SettlementData `json:"data"`
	Message string         `json:"message"`
}

type ChangeCoinData struct {
	Coin DoBuyCatCoin `json:"coin"`
}

type ChangeCoinResp struct {
	Code    int            `json:"code"`
	Data    ChangeCoinData `json:"data"`
	Message string         `json:"message"`
}

type UserLoginReq struct {
	Lype    int    `json:"type"`
	UserId  int    `json:"userId"`
	Fromid  int    `json:"fromid"`
	Gameid  string `json:"gameid"`
	Channel string `json:"channel"`
}

type UserLoginData struct {
	UserId      string `json:"userId"`
	AccessToken string `json:"accessToken"`
	LoginType   int    `json:"loginType"`
	Nickname    string `json:"nickname"`
	HeadImg     string `json:"headImg"`
}

type UserLoginResp struct {
	Code    int           `json:"code"`
	Data    UserLoginData `json:"data"`
	Message string        `json:"message"`
}

type GetUserDataReq struct {
	//Uuid int `json:"uuid"`
}

type offlineRewardDesc struct {
	OfflineTime int    `json:"offlineTime"`
	Income      string `json:"income"`
	LeftTimes   int    `json:"leftTimes"`
}

type GetUserDataData struct {
	TimingReward      bool              `json:"timingReward"`
	OfflineReward     offlineRewardDesc `json:"offlineReward"`
	Output            string            `json:"output"`
	Coin              string            `json:"coin"`
	Now               int               `json:"now"`
	TimingRewardTimes int               `json:"timingRewardTimes"`
}

type GetUserDataResp struct {
	Code    int             `json:"code"`
	Message string          `json:"message"`
	Data    GetUserDataData `json:"data"`
}

type UserInfoData struct {
	FromUserId        int     `json:"fromUserId"`
	UserId            int     `json:"userId"`
	Nickname          string  `json:"nickname"`
	HeadImg           string  `json:"headImg"`
	Score             int     `json:"score"`
	FinishRate        float32 `json:"finishRate"`
	Cash              float32 `json:"cash"`
	InviteCode        int     `json:"inviteCode"`
	Auth              int     `json:"auth"`
	FriendCount       int     `json:"friendCount"`
	FriendFriendCount int     `json:"friendFriendCount"`
}

type UserInfoResp struct {
	Code    int          `json:"code"`
	Message string       `json:"message"`
	Data    UserInfoData `json:"data"`
}

type GetrandredbagReq struct {
	Optype int `json:"optype"`
}

type GetrandredbagData struct {
	Getnum float32 `json:"getnum"`
}

type GetrandredbagResp struct {
	Code    int               `json:"code"`
	Message string            `json:"message"`
	Data    GetrandredbagData `json:"data"`
}

type GenerateboxData struct {
	Boixid int `json:"boixid"`
}

type GenerateboxResp struct {
	Code    int             `json:"code"`
	Message string          `json:"message"`
	Data    GenerateboxData `json:"data"`
}

type GetboxrewardReq struct {
	Optype int `json:"optype"`
}

type GetboxrewardData struct {
	Getgold   int64   `json:"getgold"`
	Getredbag float32 `json:"getredbag"`
}

type GetboxrewardResp struct {
	Code    int              `json:"code"`
	Message string           `json:"message"`
	Data    GetboxrewardData `json:"data"`
}

type WithDrawRecord struct {
	Coin        int    `json:"coin"`
	Create_time int    `json:"create_time"`
	Money       int    `json:"money"`
	No          string `json:"no"`
	Status      int    `json:"status"`
	Statusmsg   string `json:"statusmsg"`
	Typ         int    `json:"typ"`
}

type WithDrawList struct {
	Withdata []WithDrawRecord `json:"withdata"`
}

type GetcashrecordResp struct {
	Code    int          `json:"code"`
	Message string       `json:"message"`
	Data    WithDrawList `json:"data"`
}

type GethorsemessageData struct {
	Horsetype int    `json:"horsetype"`
	Name      string `json:"name"`
	Value     string `json:"value"`
}

type GethorsemessageResp struct {
	Code    int                 `json:"code"`
	Message string              `json:"message"`
	Data    GethorsemessageData `json:"data"`
}

type AddAdData struct {
}

type AddAdResp struct {
	Code    int       `json:"code"`
	Message string    `json:"message"`
	Data    AddAdData `json:"data"`
}

type DataDesc struct {
	Pos       int `json:"pos"`
	Catlv     int `json:"cat_lv"`
	Countdown int `json:"countdown"`
}

type ExchangePosReq struct {
	//Uuid  int `json:"uuid"`
	From int `json:"from"`
	To   int `json:"to"`
}

type ExchangePosData struct {
	CatList []CatPosInfo `json:"catList"`
	Coin    DoBuyCatCoin `json:"coin"`
	NewCat  int          `json:"newCat"`
	Reward  float32      `json:"reward"`
}
type ExchangePosResp struct {
	Code    int             `json:"code"`
	Message string          `json:"message"`
	Data    ExchangePosData `json:"data"`
}

type ClickBoxReq struct {
	//Uuid int `json:"uuid"`
	Pos int `json:"pos"`
}

type ClickBoxResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Pos     int    `json:"pos"`
	Lv      int    `json:"lv"`
}

type UpgradeBoxReq struct {
	//Uuid int `json:"uuid"`
}
type UpgradeBoxResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Boxlv   int    `json:"boxlv"`
}

type GenerateBoxReq struct {
	//Uuid int `json:"uuid"`
	Pos int `json:"pos"`
}

type GenerateBoxResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type AcclecteReq struct {
	//Uuid int `json:"uuid"`
}
type AcclectData struct {
	LeftTimes int          `json:"leftTimes"`
	Coin      DoBuyCatCoin `json:"coin"`
}
type AcclecteResp struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    AcclectData `json:"data"`
}

type WatchAdsGetGoldData struct {
	Reward    string       `json:"reward"`
	LeftTimes int          `json:"leftTimes"`
	Coin      DoBuyCatCoin `json:"coin"`
}
type WatchAdsGetGoldResp struct {
	Code    int                 `json:"code"`
	Message string              `json:"message"`
	Data    WatchAdsGetGoldData `json:"data"`
}

type RecvTimingRewardData struct {
	Reward string `json:"reward"`
}

type RecvTimingRewardResp struct {
	Code    int                  `json:"code"`
	Message string               `json:"message"`
	Data    RecvTimingRewardData `json:"data"`
}

type RecoveryReq struct {
	Position int `json:"position"`
}

type RecoveryData struct {
	Coin DoBuyCatCoin `json:"coin"`
}

type RecoveryResp struct {
	Code    int          `json:"code"`
	Message string       `json:"message"`
	Data    RecoveryData `json:"data"`
}

type ComposeReq struct {
	PositionList []int `json:"positionList"`
}

type ComposeData struct {
	CatList []CatPosInfo `json:"catList"`
	Coin    DoBuyCatCoin `json:"coin"`
}

type ComposeResp struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    ComposeData `json:"data"`
}

type RecvRedCatReq struct {
	Rtype    int `json:"type"`
	RedCatId int `json:"redCatId"`
}

type RecvRedCatData struct {
	Num float32 `json:"num"`
}

type RecvRedCatResp struct {
	Code    int            `json:"code"`
	Message string         `json:"message"`
	Data    RecvRedCatData `json:"data"`
}

type LimitCatListData struct {
	CatId  int     `json:"catId"`
	Cash   float32 `json:"cash"`
	Status int     `json:"status"`
	Date   string  `json:"date"`
}

type LimitCatListResp struct {
	Code    int                `json:"code"`
	Message string             `json:"message"`
	Data    []LimitCatListData `json:"data"`
}

type QueryTurntableData struct {
	TicketCount int `json:"ticketCount"`
	LeftTime    int `json:"leftTime"`
	LimitTicket int `json:"limitTicket"`
}

type QueryTurntableResp struct {
	Code    int                `json:"code"`
	Message string             `json:"message"`
	Data    QueryTurntableData `json:"data"`
}

type AddTicketData struct {
}

type AddTicketResp struct {
	Code    int           `json:"code"`
	Message string        `json:"message"`
	Data    AddTicketData `json:"data"`
}

type MultipleData struct {
}

type MultipleReq struct {
	RewardId int `json:"rewardId"`
}

type MultipleResp struct {
	Code    int          `json:"code"`
	Message string       `json:"message"`
	Data    MultipleData `json:"data"`
}

type DrawTableData struct {
	RewardId int    `json:"rewardId"`
	Coin     string `json:"coin"`
}

type DrawTableResp struct {
	Code    int           `json:"code"`
	Message string        `json:"message"`
	Data    DrawTableData `json:"data"`
}

type QueryFlopData struct {
	LeftTimes int `json:"leftTimes"`
}

type QueryFlopResp struct {
	Code    int           `json:"code"`
	Message string        `json:"message"`
	Data    QueryFlopData `json:"data"`
}

type DoFlopRespReward struct {
	RewardId int    `json:"rewardId"`
	CatId    int    `json:"catId"`
	Coin     string `json:"coin"`
}

type DoFlopRespData struct {
	Reward    DoFlopRespReward `json:"reward"`
	LeftTimes int              `json:"leftTimes"`
	Coin      DoBuyCatCoin     `json:"coin"`
}
type DoFlopResp struct {
	Code    int            `json:"code"`
	Message string         `json:"message"`
	Data    DoFlopRespData `json:"data"`
}

type AcclecteBoxResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type AutomergeReq struct {
	//Uuid int `json:"uuid"`
}
type AutomergeResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type QueryBuyCatReq struct {
	//Uuid int `json:"uuid"`
}
type QueryBuyCatResp struct {
	Code    int          `json:"code"`
	Message string       `json:"message"`
	Data    []BuyCatDesc `json:"data"`
}

type LeftRateTimesDesc struct {
	LeftTimes  int `json:"leftTimes"`
	LimitTimes int `json:"limitTimes"`
}

type LeftRateTimesResp struct {
	Code    int               `json:"code"`
	Message string            `json:"message"`
	Data    LeftRateTimesDesc `json:"data"`
}

type BuyCatDesc struct {
	CatId int    `json:"catId"`
	Coin  string `json:"coin"`
}

type ClickRandGiftReq struct {
	//Uuid int `json:"uuid"`
}
type ClickRandGiftResp struct {
	Code     int    `json:"code"`
	Message  string `json:"message"`
	Gold     int64  `json:"gold"`
	Lefttime int    `json:"lefttime"`
}

type DoBuyCatReq struct {
	CatId int `json:"catId"`
}

type DoBuyCatCoin struct {
	UserId     int    `json:"userId"`
	UpdateTime int    `json:"updateTime"`
	Coin       string `json:"coin"`
	IcomeRate  string `json:"icomeRate"`
}

type DoBuyCatData struct {
	Position int          `json:"position"`
	Price    string       `json:"price"`
	Coin     DoBuyCatCoin `json:"coin"`
}
type DoBuyCatResp struct {
	Code    int          `json:"code"`
	Message string       `json:"message"`
	Data    DoBuyCatData `json:"data"`
}

type QueryWareHouseData struct {
	CatList     []int `json:"catList"`
	CatCapacity int   `json:"catCapacity"`
}

type QueryWareHouseResp struct {
	Code    int                `json:"code"`
	Message string             `json:"message"`
	Data    QueryWareHouseData `json:"data"`
}

type QueryAutomergeResp struct {
	Code         int        `json:"code"`
	Message      string     `json:"message"`
	Goldrate     int64      `json:"goldrate"`
	Higestlv     int        `json:"higestlv"`
	Curcatjianum int        `json:"curcatjianum"`
	Data         []DataDesc `json:"data"`
}

type PutWareHouseReq struct {
	Position int `json:"position"`
}
type PutWareHouseData struct {
	Coin DoBuyCatCoin `json:"coin"`
}
type PutWareHouseResp struct {
	Code    int              `json:"code"`
	Message string           `json:"message"`
	Data    PutWareHouseData `json:"data"`
}

type QueryGamblingData struct {
	CatId        int    `json:"catId"`
	Round        int    `json:"round"`
	RewardNumber int    `json:"rewardNumber"`
	MyNumber     int    `json:"myNumber"`
	Status       int    `json:"status"`
	Nickname     string `json:"nickname"`
	HeadImg      string `json:"headImg"`
}

type GetcashReq struct {
	Money  float32 `json:"money"`
	Openid string  `json:"openid"`
	Ver    string  `json:"ver"`
}

type GetcashData struct {
	Redbag float32 `json:"redbag"`
}

type GetcashResp struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    GetcashData `json:"data"`
}

type QueryGamblingResp struct {
	Code    int                 `json:"code"`
	Message string              `json:"message"`
	Data    []QueryGamblingData `json:"data"`
}

type NumberListDesc struct {
	Number  int  `json:"number"`
	Choosed bool `json:"choosed"`
}

type NumberListData struct {
	Round      int              `json:"round"`
	NumberList []NumberListDesc `json:"numberList"`
}

type NumberListResp struct {
	Code    int            `json:"code"`
	Message string         `json:"message"`
	Data    NumberListData `json:"data"`
}

type ChooseNumReq struct {
	Number int `json:"number"`
	Round  int `json:"round"`
	CatId  int `json:"catId"`
}

type ChooseNumData struct {
}
type ChooseNumResp struct {
	Code    int           `json:"code"`
	Message string        `json:"message"`
	Data    ChooseNumData `json:"data"`
}

type TakeWareHouseReq struct {
	CatId string `json:"catId"`
}
type TakeWareHouseResp struct {
	Code    int              `json:"code"`
	Message string           `json:"message"`
	Data    PutWareHouseData `json:"data"`
}

type CatRoomDesc struct {
	Pos   int `json:"pos"`
	Catlv int `json:"cat_lv"`
}

type QueryCatRoomInfoResp struct {
	Code    int           `json:"code"`
	Message string        `json:"message"`
	Data    []CatRoomDesc `json:"data"`
}

type BuyCatRoomReq struct {
	Lv int `json:"lv"`
}

type BuyCatRoomResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type UpCattoRoomReq struct {
	Roompos int `json:"roompos"`
	Callv   int `json:"callv"`
	Optype  int `json:"optype"`
}

type UpCattoRoommResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type QueryCatShopInfoResp struct {
	Code        int    `json:"code"`
	Message     string `json:"message"`
	Chapter     int    `json:"chapter"`
	Section     int    `json:"section"`
	Lefttime    int    `json:"lefttime"`
	Canwatch    int    `json:"canwatch"`
	Storyhappen int    `json:"storyhappen"`
}

type CatShoPlayReq struct {
	Catlv int `json:"catlv"`
}
type CatShoPlayResp struct {
	Code     int    `json:"code"`
	Message  string `json:"message"`
	Lefttime int    `json:"lefttime"`
	Canwatch int    `json:"canwatch"`
}

type GetCatShopRewardReq struct {
	Optype int `json:"optype"`
}

type GetCatShopRewardResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Love    int64  `json:"love"`
}

type AcclecteCatStoryResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type UpdateUserInfoReq struct {
	Headurl  string `json:"headurl"`
	Nickname string `json:"nickname"`
	Realname string `json:"realname"`
}

type UpdateUserInfoResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type RankInfoDesc struct {
	Rank     int    `json:"rank"`
	UserId   int    `json:"userId"`
	Headurl  string `json:"headurl"`
	Nickname string `json:"nickname"`
	CatName  string `json:"text"`
	Income   int64  `json:"income"`
	Level    int    `json:"level"`
}

type QueryPlayerRankResp struct {
	Code    int            `json:"code"`
	Message string         `json:"message"`
	Data    []RankInfoDesc `json:"data"`
}

type CatPosInfo struct {
	Position  int     `json:"position"`
	Cat       int     `json:"cat"`
	RedPacket float32 `json:"redPacket"`
	Time      int     `json:"time"`
	StartTime int     `json:"startTime"`
}

type adRateData struct {
	Multiple int `json:"multiple"`
	EndTime  int `json:"endTime"`
}

type GetMainPageInfoData struct {
	LimitCatList    []int        `json:"limitCatList"`
	CatList         []CatPosInfo `json:"catList"`
	Coin            DoBuyCatCoin `json:"coin"`
	AdRate          adRateData   `json:"adRate"`
	Level           int          `json:"level"`
	TotalCashReward float32      `json:"totalCashReward"`
	Guide           bool         `json:"guide"`
	Redbagnum       int          `json:"redbagnum"`
	Flyboxnum       int          `json:"flyboxnum"`
}

type GetMainPageInfoResp struct {
	Code    int                 `json:"code"`
	Message string              `json:"message"`
	Data    GetMainPageInfoData `json:"data"`
}

type QueryCompleteTaskDesc struct {
	Taskid int `json:"taskid"`
}

type QueryOnlienTaskDesc struct {
	Taskid   int   `json:"taskid"`
	Lefttime int64 `json:"lefttime"`
}

type QueryCompleteTaskResp struct {
	Code    int                     `json:"code"`
	Message string                  `json:"message"`
	Data    []QueryCompleteTaskDesc `json:"data"`
	Online  []QueryOnlienTaskDesc   `json:"online"`
}

type QueryCompleteAchievementDesc struct {
	Achieveid int `json:"achieveid"`
}

type QueryCompleteAchievementResp struct {
	Code    int                            `json:"code"`
	Message string                         `json:"message"`
	Data    []QueryCompleteAchievementDesc `json:"data"`
}

type GetTaskRewardReq struct {
	Taskid int `json:"taskid"`
}

type GetTaskRewardResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type GetAchieveRewardReq struct {
	Achieveid int `json:"achieveid"`
}

type GetAchieveRewardResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type StartOnlineTaskReq struct {
	Taskid int `json:"taskid"`
}

type StartOnlineTaskResp struct {
	Code     int    `json:"code"`
	Message  string `json:"message"`
	Lefttime int    `json:"lefttime"`
}

type GetOfflineRewardReq struct {
	Reward string `json:"reward"`
	Optype int    `json:"type"`
}
type GetOfflineRewardData struct {
}

type GetOfflineRewardResp struct {
	Code    int                  `json:"code"`
	Message string               `json:"message"`
	Data    GetOfflineRewardData `json:"data"`
}

type QuerygetcashinfoData struct {
	Logindaysum      int            `json:"logindaysum"`
	Logindaycontinue int            `json:"logindaycontinue"`
	Cashdata         []WithDrawDesc `json:"cashdata"`
}

type QuerygetcashinfoResp struct {
	Code    int                  `json:"code"`
	Message string               `json:"message"`
	Data    QuerygetcashinfoData `json:"data"`
}

//**********************************************************************************************************

type PosData struct {
	Pos       int
	Catlv     int
	Countdown int //倒计时 为0表示没有
	//UpPos     int //上阵的位置 0表示未上阵
}

//玩家购买猫详情
type BuyCatInfoData struct {
	Buytime      int   //购买次数
	IsMaxBuytime int   //是否达到涨价上线 1是0否
	CurPrice     int64 //当前价格
}

//猫咖店家具数据
type CatRoomData struct {
	LvCatlv int //入住猫的等级
}

//猫咖门店数据
type CatShopData struct {
	Chapter           int //当前所处进度 对应shopcaofig的id
	Section           int //当前小节进度 ,即当前大章节第几次故事
	IsPlaying         int //是否处于探险模式 1是0否
	LeftTime          int //探险剩余时间
	PlayTimes         int //当前为第几次探险
	DayNum            int //当天日期,用于判断跨天
	TotalWatchNumLeft int //当天剩余看视频次数
	ThisIsWatch       int //本次探险是否已经看过视频
	IsMax             int //是否已经通关 1是0否
	CurCatLv          int //参加探险的猫等级
	IsStoryHappen     int //此次是否触发故事
}

//玩家排行榜数据
type UserRankInfo struct {
	Gold      int64  //金币
	Head      string //头像地址
	NickName  string //昵称
	Highestlv int    //当前最高猫等级
	Uuid      int    //uuid
}

//玩家任务数据 每日清零
type TaskData struct {
	//StartOnline  int         //开始计算在线时间
	StartOnline  map[int]int64 //记录对应takid 和开始计时的时间
	BuyCatTime   int           //商店购买猫次数
	MergeTime    int           //合成猫次数
	PlayWithTime int           //陪玩次数
	WatchAddTime int           //看广告次数
	CompleteId   map[int]int   //已经完成的任务的id,对应task表的id value无用
	HaveComplete map[int]int   //记录当日已完成的任务,已完成则不再完成
}

//玩家成就数据
type AchieveMentData struct {
	GetNewCatTime int         //累计解锁新猫次数
	GetAllJia     int         //累计获得猫爬架次数
	GetRoomJu     int         //累计解锁新家具次数
	StoryTime     int         //累计解锁故事
	ShopTime      int         //累计解锁店铺
	CompleteId    map[int]int //已经完成的任务的id,对应achievement表id value为无用
	HaveComplete  map[int]int //记录已完成成就已完成则不再触发
}

type WithDrawDesc struct {
	Cid           int     `json:"cid"`
	Cnum          float32 `json:"cnum"`
	Isnew         int     `json:"isnew"`
	Limitlv       int     `json:"limitlv"`
	LoginDayLimit int     `json:"loginDayLimit"`
	Preisfind     int     `json:"preisfind"`
	IsFit         int     `json:"isfit"`
}

type WithDrawInfo struct {
	Cashdata []WithDrawDesc `json:"cashdata"`
}

//玩家数据
type UserData struct {
	UserId                int                  //玩家id
	Gameid                string               //玩家Gameid
	Channel               string               //玩家Channel
	RegTime               int                  //注册时间
	ContinueLoginDay      int                  //连续登陆天数
	SumLoginDay           int                  //累计登录天数
	Gold                  int64                //金币
	GoldSum               int64                //玩家累计金币
	Love                  int64                //爱心值
	Goldrate              int64                //金币生成速率
	Loverate              int64                //爱心生产速率
	Highestlv             int                  //当前最高猫等级
	InviteId              int                  //邀请者uid
	CurBoxLv              int                  //当前猫箱子等级
	IsDouble              int                  //当前加速标签  1表示3倍收益 0表示正常
	StartDoubleTime       int                  //开始双倍时间
	DoubleLeftTimes       int                  //剩余加速金币次数
	GetWatchAdsGoldTime   int                  //看广告领金币次数
	DrawTicket            int                  //抽奖券次数
	DrawTicketTimes       int                  //剩余增加抽奖券次数
	DratMult              int                  //下次抽奖的倍数
	DrawLastRewardId      int                  //上一次的奖励ID
	DrawTableCount        int                  //当前抽奖次数  5次以后归零
	IsAuto                int                  //当前是否自动合成
	IsBoxAcc              int                  //是否处于加速生成箱子状态
	RandGiftNum           int                  //当前剩余空投猫粮次数
	RandGiftDay           int                  //记录当前猫粮日期,当日期变化则重置RandGiftNum
	RandGiftTime          int                  //记录上一次空投猫粮时间
	Redbag                float32              //红包值 单位为分
	Head                  string               //头像地址
	NickName              string               //昵称
	RealName              string               //实名
	IsFirstRedBgCat       int                  //是否合成过红包猫 0表示否1表示是
	OfflineGold           int64                //离线金币
	OfflineLove           int64                //离线爱心
	LastLoginTime         int                  //上次登陆时间
	LastTimingRewardHour  int                  //当天领取整点奖励的次数
	LeftTimingRewardTimes int                  //剩余整点奖励次数
	FlopCardCnt           int                  //翻牌次数计数
	FlopCardLefCnt        int                  //剩余翻拍次数
	TodayZhaocai          float32              //当天招财猫收益
	IsNew                 int                  //是否需要引导
	RandRedBagLeftTime    int                  //剩余随机红包次数
	SumRandRedBagTimes    int                  //已领取的随机红包总次数
	StoreRandRedBag       int                  //存储的随机红包个数
	FlyBoxNumTimes        int                  //生意飞天宝箱次数
	LeftOfflineTimes      int                  //离线奖励剩余领取次数
	CatShopInfo           CatShopData          //猫咖门店数据
	Taskinfo              TaskData             //任务数据
	AchieveMent           AchieveMentData      //成就数据
	PosInfo               []CatPosInfo         //位置信息 从0开始
	DuboCat               []DuboCatInfo        //赌博猫信息
	BuyCatInfo            []BuyCatInfoData     //商店购买猫数据 第一个元素为1级猫 第二个为2级猫以此类推
	CatRoomInfo           []CatRoomData        //猫咖店数据
	CaiPiaoInfo           []UserCaiPiaoHistory //记录玩家参与过的赌博猫历史记录
	WithDraw              WithDrawInfo         //提现记录信息

}

type DuboCatInfo struct {
	CatID     int
	ChooseNum int //选择的号码
}

type UserCaiPiaoHistory struct {
	Cnum      int //选择的号码
	RewardNum int //当期开奖的号码
	Round     int //轮数
	CatId     int //猫ID
}

//仓库数据详情
type WareHouseDesc struct {
	Warelv    int //红包猫等级 对应表id
	RedPacket float32
	Time      int
	StartTime int
}

//玩家仓库数据
type UserWareHouseData struct {
	Info []WareHouseDesc //下标表示位置
}

const (
	TASK_TYPE_ONLINE       = 1  //在线
	TASK_TYPE_BUYCAT       = 2  //商店购买猫
	TASK_TYPE_MERGE        = 3  //合成猫
	TASK_TYPE_PLAYWITHCAT  = 4  //猫咪陪玩
	TASK_TYPE_WATCHADD     = 5  //观看广告
	ACH_TYPE_GETCAT        = 6  //累计解锁猫
	ACH_TYPE_GETCATJIA     = 7  //累计获得猫爬架
	ACH_TYPE_GETCATROOMJIA = 8  //累计解锁新家具
	ACH_TYPE_GETSTORY      = 9  //累计解锁新故事
	ACH_TYPE_GBESHOP       = 10 //累计用于新店铺
)

//赌博猫相关数据结构
type UserCaiPiaoInfo struct {
	CatId     int //猫ID
	UserId    int //uuid
	ChooseNum int //选择号码
}

//当期奖池信息
type CurDuboCatList struct {
	CurRound int               //当前轮次
	CurNum   int               //当前人数
	FakeNum  int               //当期不开奖号码  如果0表示当期真实开奖
	List     []UserCaiPiaoInfo //当期彩池人数
}

//待开奖奖池信息
type WaitDuboCatList struct {
	CurRound   int               //当前轮次
	RewardNum  int               //开奖号码
	List       []UserCaiPiaoInfo //当期彩池人数
	RewardUser int               //中奖者ID 如果假中奖为0
	FakeNum    int               //当期不开奖号码  如果0表示当期真实开奖
}

//已开奖列表
type AlreadyDuboCatList struct {
	CurRound   int               //当前轮次
	RewardNum  int               //开奖号码
	List       []UserCaiPiaoInfo //当期彩池人数
	RewardUser int               //中奖者ID 如果假中奖为0
	TimeStr    int               //开奖时刻
}

//.....
type TixianDesc struct {
	Sign       string `json:"sign"`
	Sign_type  string `json:"sign_type"`
	Time_stamp string `json:"time_stamp"`
	Gameid     string `json:"gameid"`
	Channel    string `json:"channel"`
	Uid        int    `json:"uid"`
	Typ        int    `json:"typ"`
	Money      int    `json:"money"`
	Openid     string `json:"openid"`
	Nickname   string `json:"nickname"`
	Headurl    string `json:"headurl"`
	Editcoin   int    `json:"editcoin"`
	Ver        string `json:"ver"`
	Checkcoin  int    `json:"checkcoin"`
}

type GetCashResp struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
}

type GetCoinDesc struct {
	Sign       string `json:"sign"`
	Sign_type  string `json:"sign_type"`
	Time_stamp string `json:"time_stamp"`
	Gameid     string `json:"gameid"`
	Channel    string `json:"channel"`
	Uid        int    `json:"uid"`
}

type AddCoinResultData struct {
	Mycoin int `json:"mycoin"`
}

type AddCoinResp struct {
	Code string            `json:"code"`
	Msg  string            `json:"msg"`
	Data AddCoinResultData `json:"data"`
}

type AddCoinDesc struct {
	Sign       string `json:"sign"`
	Sign_type  string `json:"sign_type"`
	Time_stamp string `json:"time_stamp"`
	Gameid     string `json:"gameid"`
	Channel    string `json:"channel"`
	Uid        int    `json:"uid"`
	Coin       int    `json:"coin"`
	Typ        int    `json:"typ"`
}

type GetCashListDesc struct {
	Sign       string `json:"sign"`
	Sign_type  string `json:"sign_type"`
	Time_stamp string `json:"time_stamp"`
	Gameid     string `json:"gameid"`
	Channel    string `json:"channel"`
	Uid        int    `json:"uid"`
	Start      int    `json:"start"`
	Number     int    `json:"number"`
}

type GetCashListResp struct {
	Code string           `json:"code"`
	Msg  string           `json:"msg"`
	Data []WithDrawRecord `json:"data"`
}