stat-analysis-query 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/t_backend_service.rb +526 -0
- data/lib/t_hot_service.rb +112 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22a4a8c02e1fd3eafd53cd76d4a17a09469ab611
|
4
|
+
data.tar.gz: 94822c4266fa2cc69dc1cce727c87f02d4c9234b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdbef5377e116df023759d17b6c920c8a3d05540a30385b174d7a7b24d6fdc6ec523298ef772fc4ec93bd40f428368fbef87c20c741f442b18175261f0262e8f
|
7
|
+
data.tar.gz: 5d807aa4fe12b6671672e78a205da132bfcf08e1c0ac65752338853a2133d6ba29bce1a8acb678127b2499b479ffd0e2bb7c83fe8de3809e4874cd923cc7f822
|
data/lib/t_backend_service.rb
CHANGED
@@ -76,6 +76,83 @@ module Stat
|
|
76
76
|
def send_delHotAlbum(id, tagName, albums)
|
77
77
|
send_message('delHotAlbum', DelHotAlbum_args, :id => id, :tagName => tagName, :albums => albums)
|
78
78
|
end
|
79
|
+
def delHotSelectedAlbum(id, tagName, albums)
|
80
|
+
send_delHotSelectedAlbum(id, tagName, albums)
|
81
|
+
end
|
82
|
+
|
83
|
+
def send_delHotSelectedAlbum(id, tagName, albums)
|
84
|
+
send_message('delHotSelectedAlbum', DelHotSelectedAlbum_args, :id => id, :tagName => tagName, :albums => albums)
|
85
|
+
end
|
86
|
+
def delRecentAlbum(id, tagName, albums)
|
87
|
+
send_delRecentAlbum(id, tagName, albums)
|
88
|
+
end
|
89
|
+
|
90
|
+
def send_delRecentAlbum(id, tagName, albums)
|
91
|
+
send_message('delRecentAlbum', DelRecentAlbum_args, :id => id, :tagName => tagName, :albums => albums)
|
92
|
+
end
|
93
|
+
def delRecentFinishedAlbum(id, tagName, albums)
|
94
|
+
send_delRecentFinishedAlbum(id, tagName, albums)
|
95
|
+
end
|
96
|
+
|
97
|
+
def send_delRecentFinishedAlbum(id, tagName, albums)
|
98
|
+
send_message('delRecentFinishedAlbum', DelRecentFinishedAlbum_args, :id => id, :tagName => tagName, :albums => albums)
|
99
|
+
end
|
100
|
+
def delRecentUnfinishedAlbum(id, tagName, albums)
|
101
|
+
send_delRecentUnfinishedAlbum(id, tagName, albums)
|
102
|
+
end
|
103
|
+
|
104
|
+
def send_delRecentUnfinishedAlbum(id, tagName, albums)
|
105
|
+
send_message('delRecentUnfinishedAlbum', DelRecentUnfinishedAlbum_args, :id => id, :tagName => tagName, :albums => albums)
|
106
|
+
end
|
107
|
+
def delHotFinishedAlbum(id, tagName, albums)
|
108
|
+
send_delHotFinishedAlbum(id, tagName, albums)
|
109
|
+
end
|
110
|
+
|
111
|
+
def send_delHotFinishedAlbum(id, tagName, albums)
|
112
|
+
send_message('delHotFinishedAlbum', DelHotFinishedAlbum_args, :id => id, :tagName => tagName, :albums => albums)
|
113
|
+
end
|
114
|
+
def delHotUnfinishedAlbum(id, tagName, albums)
|
115
|
+
send_delHotUnfinishedAlbum(id, tagName, albums)
|
116
|
+
end
|
117
|
+
|
118
|
+
def send_delHotUnfinishedAlbum(id, tagName, albums)
|
119
|
+
send_message('delHotUnfinishedAlbum', DelHotUnfinishedAlbum_args, :id => id, :tagName => tagName, :albums => albums)
|
120
|
+
end
|
121
|
+
def delMostPlayAlbum(id, tagName, albums)
|
122
|
+
send_delMostPlayAlbum(id, tagName, albums)
|
123
|
+
end
|
124
|
+
|
125
|
+
def send_delMostPlayAlbum(id, tagName, albums)
|
126
|
+
send_message('delMostPlayAlbum', DelMostPlayAlbum_args, :id => id, :tagName => tagName, :albums => albums)
|
127
|
+
end
|
128
|
+
def delMostPlayFinishedAlbum(id, tagName, albums)
|
129
|
+
send_delMostPlayFinishedAlbum(id, tagName, albums)
|
130
|
+
end
|
131
|
+
|
132
|
+
def send_delMostPlayFinishedAlbum(id, tagName, albums)
|
133
|
+
send_message('delMostPlayFinishedAlbum', DelMostPlayFinishedAlbum_args, :id => id, :tagName => tagName, :albums => albums)
|
134
|
+
end
|
135
|
+
def delMostPlayUnfinishedAlbum(id, tagName, albums)
|
136
|
+
send_delMostPlayUnfinishedAlbum(id, tagName, albums)
|
137
|
+
end
|
138
|
+
|
139
|
+
def send_delMostPlayUnfinishedAlbum(id, tagName, albums)
|
140
|
+
send_message('delMostPlayUnfinishedAlbum', DelMostPlayUnfinishedAlbum_args, :id => id, :tagName => tagName, :albums => albums)
|
141
|
+
end
|
142
|
+
def delFistPageSound(id, tagName, albums)
|
143
|
+
send_delFistPageSound(id, tagName, albums)
|
144
|
+
end
|
145
|
+
|
146
|
+
def send_delFistPageSound(id, tagName, albums)
|
147
|
+
send_message('delFistPageSound', DelFistPageSound_args, :id => id, :tagName => tagName, :albums => albums)
|
148
|
+
end
|
149
|
+
def delFistPageUser(id, albums)
|
150
|
+
send_delFistPageUser(id, albums)
|
151
|
+
end
|
152
|
+
|
153
|
+
def send_delFistPageUser(id, albums)
|
154
|
+
send_message('delFistPageUser', DelFistPageUser_args, :id => id, :albums => albums)
|
155
|
+
end
|
79
156
|
end
|
80
157
|
|
81
158
|
class Processor
|
@@ -135,6 +212,72 @@ module Stat
|
|
135
212
|
return
|
136
213
|
end
|
137
214
|
|
215
|
+
def process_delHotSelectedAlbum(seqid, iprot, oprot)
|
216
|
+
args = read_args(iprot, DelHotSelectedAlbum_args)
|
217
|
+
@handler.delHotSelectedAlbum(args.id, args.tagName, args.albums)
|
218
|
+
return
|
219
|
+
end
|
220
|
+
|
221
|
+
def process_delRecentAlbum(seqid, iprot, oprot)
|
222
|
+
args = read_args(iprot, DelRecentAlbum_args)
|
223
|
+
@handler.delRecentAlbum(args.id, args.tagName, args.albums)
|
224
|
+
return
|
225
|
+
end
|
226
|
+
|
227
|
+
def process_delRecentFinishedAlbum(seqid, iprot, oprot)
|
228
|
+
args = read_args(iprot, DelRecentFinishedAlbum_args)
|
229
|
+
@handler.delRecentFinishedAlbum(args.id, args.tagName, args.albums)
|
230
|
+
return
|
231
|
+
end
|
232
|
+
|
233
|
+
def process_delRecentUnfinishedAlbum(seqid, iprot, oprot)
|
234
|
+
args = read_args(iprot, DelRecentUnfinishedAlbum_args)
|
235
|
+
@handler.delRecentUnfinishedAlbum(args.id, args.tagName, args.albums)
|
236
|
+
return
|
237
|
+
end
|
238
|
+
|
239
|
+
def process_delHotFinishedAlbum(seqid, iprot, oprot)
|
240
|
+
args = read_args(iprot, DelHotFinishedAlbum_args)
|
241
|
+
@handler.delHotFinishedAlbum(args.id, args.tagName, args.albums)
|
242
|
+
return
|
243
|
+
end
|
244
|
+
|
245
|
+
def process_delHotUnfinishedAlbum(seqid, iprot, oprot)
|
246
|
+
args = read_args(iprot, DelHotUnfinishedAlbum_args)
|
247
|
+
@handler.delHotUnfinishedAlbum(args.id, args.tagName, args.albums)
|
248
|
+
return
|
249
|
+
end
|
250
|
+
|
251
|
+
def process_delMostPlayAlbum(seqid, iprot, oprot)
|
252
|
+
args = read_args(iprot, DelMostPlayAlbum_args)
|
253
|
+
@handler.delMostPlayAlbum(args.id, args.tagName, args.albums)
|
254
|
+
return
|
255
|
+
end
|
256
|
+
|
257
|
+
def process_delMostPlayFinishedAlbum(seqid, iprot, oprot)
|
258
|
+
args = read_args(iprot, DelMostPlayFinishedAlbum_args)
|
259
|
+
@handler.delMostPlayFinishedAlbum(args.id, args.tagName, args.albums)
|
260
|
+
return
|
261
|
+
end
|
262
|
+
|
263
|
+
def process_delMostPlayUnfinishedAlbum(seqid, iprot, oprot)
|
264
|
+
args = read_args(iprot, DelMostPlayUnfinishedAlbum_args)
|
265
|
+
@handler.delMostPlayUnfinishedAlbum(args.id, args.tagName, args.albums)
|
266
|
+
return
|
267
|
+
end
|
268
|
+
|
269
|
+
def process_delFistPageSound(seqid, iprot, oprot)
|
270
|
+
args = read_args(iprot, DelFistPageSound_args)
|
271
|
+
@handler.delFistPageSound(args.id, args.tagName, args.albums)
|
272
|
+
return
|
273
|
+
end
|
274
|
+
|
275
|
+
def process_delFistPageUser(seqid, iprot, oprot)
|
276
|
+
args = read_args(iprot, DelFistPageUser_args)
|
277
|
+
@handler.delFistPageUser(args.id, args.albums)
|
278
|
+
return
|
279
|
+
end
|
280
|
+
|
138
281
|
end
|
139
282
|
|
140
283
|
# HELPER FUNCTIONS AND STRUCTURES
|
@@ -446,6 +589,389 @@ module Stat
|
|
446
589
|
::Thrift::Struct.generate_accessors self
|
447
590
|
end
|
448
591
|
|
592
|
+
class DelHotSelectedAlbum_args
|
593
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
594
|
+
ID = 1
|
595
|
+
TAGNAME = 2
|
596
|
+
ALBUMS = 3
|
597
|
+
|
598
|
+
FIELDS = {
|
599
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
600
|
+
TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
|
601
|
+
ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::I64}}
|
602
|
+
}
|
603
|
+
|
604
|
+
def struct_fields; FIELDS; end
|
605
|
+
|
606
|
+
def validate
|
607
|
+
end
|
608
|
+
|
609
|
+
::Thrift::Struct.generate_accessors self
|
610
|
+
end
|
611
|
+
|
612
|
+
class DelHotSelectedAlbum_result
|
613
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
614
|
+
|
615
|
+
FIELDS = {
|
616
|
+
|
617
|
+
}
|
618
|
+
|
619
|
+
def struct_fields; FIELDS; end
|
620
|
+
|
621
|
+
def validate
|
622
|
+
end
|
623
|
+
|
624
|
+
::Thrift::Struct.generate_accessors self
|
625
|
+
end
|
626
|
+
|
627
|
+
class DelRecentAlbum_args
|
628
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
629
|
+
ID = 1
|
630
|
+
TAGNAME = 2
|
631
|
+
ALBUMS = 3
|
632
|
+
|
633
|
+
FIELDS = {
|
634
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
635
|
+
TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
|
636
|
+
ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::I64}}
|
637
|
+
}
|
638
|
+
|
639
|
+
def struct_fields; FIELDS; end
|
640
|
+
|
641
|
+
def validate
|
642
|
+
end
|
643
|
+
|
644
|
+
::Thrift::Struct.generate_accessors self
|
645
|
+
end
|
646
|
+
|
647
|
+
class DelRecentAlbum_result
|
648
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
649
|
+
|
650
|
+
FIELDS = {
|
651
|
+
|
652
|
+
}
|
653
|
+
|
654
|
+
def struct_fields; FIELDS; end
|
655
|
+
|
656
|
+
def validate
|
657
|
+
end
|
658
|
+
|
659
|
+
::Thrift::Struct.generate_accessors self
|
660
|
+
end
|
661
|
+
|
662
|
+
class DelRecentFinishedAlbum_args
|
663
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
664
|
+
ID = 1
|
665
|
+
TAGNAME = 2
|
666
|
+
ALBUMS = 3
|
667
|
+
|
668
|
+
FIELDS = {
|
669
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
670
|
+
TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
|
671
|
+
ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::I64}}
|
672
|
+
}
|
673
|
+
|
674
|
+
def struct_fields; FIELDS; end
|
675
|
+
|
676
|
+
def validate
|
677
|
+
end
|
678
|
+
|
679
|
+
::Thrift::Struct.generate_accessors self
|
680
|
+
end
|
681
|
+
|
682
|
+
class DelRecentFinishedAlbum_result
|
683
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
684
|
+
|
685
|
+
FIELDS = {
|
686
|
+
|
687
|
+
}
|
688
|
+
|
689
|
+
def struct_fields; FIELDS; end
|
690
|
+
|
691
|
+
def validate
|
692
|
+
end
|
693
|
+
|
694
|
+
::Thrift::Struct.generate_accessors self
|
695
|
+
end
|
696
|
+
|
697
|
+
class DelRecentUnfinishedAlbum_args
|
698
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
699
|
+
ID = 1
|
700
|
+
TAGNAME = 2
|
701
|
+
ALBUMS = 3
|
702
|
+
|
703
|
+
FIELDS = {
|
704
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
705
|
+
TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
|
706
|
+
ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::I64}}
|
707
|
+
}
|
708
|
+
|
709
|
+
def struct_fields; FIELDS; end
|
710
|
+
|
711
|
+
def validate
|
712
|
+
end
|
713
|
+
|
714
|
+
::Thrift::Struct.generate_accessors self
|
715
|
+
end
|
716
|
+
|
717
|
+
class DelRecentUnfinishedAlbum_result
|
718
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
719
|
+
|
720
|
+
FIELDS = {
|
721
|
+
|
722
|
+
}
|
723
|
+
|
724
|
+
def struct_fields; FIELDS; end
|
725
|
+
|
726
|
+
def validate
|
727
|
+
end
|
728
|
+
|
729
|
+
::Thrift::Struct.generate_accessors self
|
730
|
+
end
|
731
|
+
|
732
|
+
class DelHotFinishedAlbum_args
|
733
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
734
|
+
ID = 1
|
735
|
+
TAGNAME = 2
|
736
|
+
ALBUMS = 3
|
737
|
+
|
738
|
+
FIELDS = {
|
739
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
740
|
+
TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
|
741
|
+
ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::I64}}
|
742
|
+
}
|
743
|
+
|
744
|
+
def struct_fields; FIELDS; end
|
745
|
+
|
746
|
+
def validate
|
747
|
+
end
|
748
|
+
|
749
|
+
::Thrift::Struct.generate_accessors self
|
750
|
+
end
|
751
|
+
|
752
|
+
class DelHotFinishedAlbum_result
|
753
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
754
|
+
|
755
|
+
FIELDS = {
|
756
|
+
|
757
|
+
}
|
758
|
+
|
759
|
+
def struct_fields; FIELDS; end
|
760
|
+
|
761
|
+
def validate
|
762
|
+
end
|
763
|
+
|
764
|
+
::Thrift::Struct.generate_accessors self
|
765
|
+
end
|
766
|
+
|
767
|
+
class DelHotUnfinishedAlbum_args
|
768
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
769
|
+
ID = 1
|
770
|
+
TAGNAME = 2
|
771
|
+
ALBUMS = 3
|
772
|
+
|
773
|
+
FIELDS = {
|
774
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
775
|
+
TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
|
776
|
+
ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::I64}}
|
777
|
+
}
|
778
|
+
|
779
|
+
def struct_fields; FIELDS; end
|
780
|
+
|
781
|
+
def validate
|
782
|
+
end
|
783
|
+
|
784
|
+
::Thrift::Struct.generate_accessors self
|
785
|
+
end
|
786
|
+
|
787
|
+
class DelHotUnfinishedAlbum_result
|
788
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
789
|
+
|
790
|
+
FIELDS = {
|
791
|
+
|
792
|
+
}
|
793
|
+
|
794
|
+
def struct_fields; FIELDS; end
|
795
|
+
|
796
|
+
def validate
|
797
|
+
end
|
798
|
+
|
799
|
+
::Thrift::Struct.generate_accessors self
|
800
|
+
end
|
801
|
+
|
802
|
+
class DelMostPlayAlbum_args
|
803
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
804
|
+
ID = 1
|
805
|
+
TAGNAME = 2
|
806
|
+
ALBUMS = 3
|
807
|
+
|
808
|
+
FIELDS = {
|
809
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
810
|
+
TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
|
811
|
+
ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::I64}}
|
812
|
+
}
|
813
|
+
|
814
|
+
def struct_fields; FIELDS; end
|
815
|
+
|
816
|
+
def validate
|
817
|
+
end
|
818
|
+
|
819
|
+
::Thrift::Struct.generate_accessors self
|
820
|
+
end
|
821
|
+
|
822
|
+
class DelMostPlayAlbum_result
|
823
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
824
|
+
|
825
|
+
FIELDS = {
|
826
|
+
|
827
|
+
}
|
828
|
+
|
829
|
+
def struct_fields; FIELDS; end
|
830
|
+
|
831
|
+
def validate
|
832
|
+
end
|
833
|
+
|
834
|
+
::Thrift::Struct.generate_accessors self
|
835
|
+
end
|
836
|
+
|
837
|
+
class DelMostPlayFinishedAlbum_args
|
838
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
839
|
+
ID = 1
|
840
|
+
TAGNAME = 2
|
841
|
+
ALBUMS = 3
|
842
|
+
|
843
|
+
FIELDS = {
|
844
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
845
|
+
TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
|
846
|
+
ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::I64}}
|
847
|
+
}
|
848
|
+
|
849
|
+
def struct_fields; FIELDS; end
|
850
|
+
|
851
|
+
def validate
|
852
|
+
end
|
853
|
+
|
854
|
+
::Thrift::Struct.generate_accessors self
|
855
|
+
end
|
856
|
+
|
857
|
+
class DelMostPlayFinishedAlbum_result
|
858
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
859
|
+
|
860
|
+
FIELDS = {
|
861
|
+
|
862
|
+
}
|
863
|
+
|
864
|
+
def struct_fields; FIELDS; end
|
865
|
+
|
866
|
+
def validate
|
867
|
+
end
|
868
|
+
|
869
|
+
::Thrift::Struct.generate_accessors self
|
870
|
+
end
|
871
|
+
|
872
|
+
class DelMostPlayUnfinishedAlbum_args
|
873
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
874
|
+
ID = 1
|
875
|
+
TAGNAME = 2
|
876
|
+
ALBUMS = 3
|
877
|
+
|
878
|
+
FIELDS = {
|
879
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
880
|
+
TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
|
881
|
+
ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::I64}}
|
882
|
+
}
|
883
|
+
|
884
|
+
def struct_fields; FIELDS; end
|
885
|
+
|
886
|
+
def validate
|
887
|
+
end
|
888
|
+
|
889
|
+
::Thrift::Struct.generate_accessors self
|
890
|
+
end
|
891
|
+
|
892
|
+
class DelMostPlayUnfinishedAlbum_result
|
893
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
894
|
+
|
895
|
+
FIELDS = {
|
896
|
+
|
897
|
+
}
|
898
|
+
|
899
|
+
def struct_fields; FIELDS; end
|
900
|
+
|
901
|
+
def validate
|
902
|
+
end
|
903
|
+
|
904
|
+
::Thrift::Struct.generate_accessors self
|
905
|
+
end
|
906
|
+
|
907
|
+
class DelFistPageSound_args
|
908
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
909
|
+
ID = 1
|
910
|
+
TAGNAME = 2
|
911
|
+
ALBUMS = 3
|
912
|
+
|
913
|
+
FIELDS = {
|
914
|
+
ID => {:type => ::Thrift::Types::I32, :name => 'id'},
|
915
|
+
TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'},
|
916
|
+
ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::I64}}
|
917
|
+
}
|
918
|
+
|
919
|
+
def struct_fields; FIELDS; end
|
920
|
+
|
921
|
+
def validate
|
922
|
+
end
|
923
|
+
|
924
|
+
::Thrift::Struct.generate_accessors self
|
925
|
+
end
|
926
|
+
|
927
|
+
class DelFistPageSound_result
|
928
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
929
|
+
|
930
|
+
FIELDS = {
|
931
|
+
|
932
|
+
}
|
933
|
+
|
934
|
+
def struct_fields; FIELDS; end
|
935
|
+
|
936
|
+
def validate
|
937
|
+
end
|
938
|
+
|
939
|
+
::Thrift::Struct.generate_accessors self
|
940
|
+
end
|
941
|
+
|
942
|
+
class DelFistPageUser_args
|
943
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
944
|
+
ID = 1
|
945
|
+
ALBUMS = 2
|
946
|
+
|
947
|
+
FIELDS = {
|
948
|
+
ID => {:type => ::Thrift::Types::I32, :name => 'id'},
|
949
|
+
ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::I64}}
|
950
|
+
}
|
951
|
+
|
952
|
+
def struct_fields; FIELDS; end
|
953
|
+
|
954
|
+
def validate
|
955
|
+
end
|
956
|
+
|
957
|
+
::Thrift::Struct.generate_accessors self
|
958
|
+
end
|
959
|
+
|
960
|
+
class DelFistPageUser_result
|
961
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
962
|
+
|
963
|
+
FIELDS = {
|
964
|
+
|
965
|
+
}
|
966
|
+
|
967
|
+
def struct_fields; FIELDS; end
|
968
|
+
|
969
|
+
def validate
|
970
|
+
end
|
971
|
+
|
972
|
+
::Thrift::Struct.generate_accessors self
|
973
|
+
end
|
974
|
+
|
449
975
|
end
|
450
976
|
|
451
977
|
end
|
data/lib/t_hot_service.rb
CHANGED
@@ -328,6 +328,36 @@ module Stat
|
|
328
328
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'hotRadioRandom failed: unknown result')
|
329
329
|
end
|
330
330
|
|
331
|
+
def firstPageSound(categories, size)
|
332
|
+
send_firstPageSound(categories, size)
|
333
|
+
return recv_firstPageSound()
|
334
|
+
end
|
335
|
+
|
336
|
+
def send_firstPageSound(categories, size)
|
337
|
+
send_message('firstPageSound', FirstPageSound_args, :categories => categories, :size => size)
|
338
|
+
end
|
339
|
+
|
340
|
+
def recv_firstPageSound()
|
341
|
+
result = receive_message(FirstPageSound_result)
|
342
|
+
return result.success unless result.success.nil?
|
343
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'firstPageSound failed: unknown result')
|
344
|
+
end
|
345
|
+
|
346
|
+
def firstPageUser(categories, size)
|
347
|
+
send_firstPageUser(categories, size)
|
348
|
+
return recv_firstPageUser()
|
349
|
+
end
|
350
|
+
|
351
|
+
def send_firstPageUser(categories, size)
|
352
|
+
send_message('firstPageUser', FirstPageUser_args, :categories => categories, :size => size)
|
353
|
+
end
|
354
|
+
|
355
|
+
def recv_firstPageUser()
|
356
|
+
result = receive_message(FirstPageUser_result)
|
357
|
+
return result.success unless result.success.nil?
|
358
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'firstPageUser failed: unknown result')
|
359
|
+
end
|
360
|
+
|
331
361
|
end
|
332
362
|
|
333
363
|
class Processor
|
@@ -480,6 +510,20 @@ module Stat
|
|
480
510
|
write_result(result, oprot, 'hotRadioRandom', seqid)
|
481
511
|
end
|
482
512
|
|
513
|
+
def process_firstPageSound(seqid, iprot, oprot)
|
514
|
+
args = read_args(iprot, FirstPageSound_args)
|
515
|
+
result = FirstPageSound_result.new()
|
516
|
+
result.success = @handler.firstPageSound(args.categories, args.size)
|
517
|
+
write_result(result, oprot, 'firstPageSound', seqid)
|
518
|
+
end
|
519
|
+
|
520
|
+
def process_firstPageUser(seqid, iprot, oprot)
|
521
|
+
args = read_args(iprot, FirstPageUser_args)
|
522
|
+
result = FirstPageUser_result.new()
|
523
|
+
result.success = @handler.firstPageUser(args.categories, args.size)
|
524
|
+
write_result(result, oprot, 'firstPageUser', seqid)
|
525
|
+
end
|
526
|
+
|
483
527
|
end
|
484
528
|
|
485
529
|
# HELPER FUNCTIONS AND STRUCTURES
|
@@ -1259,6 +1303,74 @@ module Stat
|
|
1259
1303
|
::Thrift::Struct.generate_accessors self
|
1260
1304
|
end
|
1261
1305
|
|
1306
|
+
class FirstPageSound_args
|
1307
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1308
|
+
CATEGORIES = 1
|
1309
|
+
SIZE = 2
|
1310
|
+
|
1311
|
+
FIELDS = {
|
1312
|
+
CATEGORIES => {:type => ::Thrift::Types::LIST, :name => 'categories', :element => {:type => ::Thrift::Types::I32}},
|
1313
|
+
SIZE => {:type => ::Thrift::Types::I32, :name => 'size'}
|
1314
|
+
}
|
1315
|
+
|
1316
|
+
def struct_fields; FIELDS; end
|
1317
|
+
|
1318
|
+
def validate
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
::Thrift::Struct.generate_accessors self
|
1322
|
+
end
|
1323
|
+
|
1324
|
+
class FirstPageSound_result
|
1325
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1326
|
+
SUCCESS = 0
|
1327
|
+
|
1328
|
+
FIELDS = {
|
1329
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I32}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::I64}}}
|
1330
|
+
}
|
1331
|
+
|
1332
|
+
def struct_fields; FIELDS; end
|
1333
|
+
|
1334
|
+
def validate
|
1335
|
+
end
|
1336
|
+
|
1337
|
+
::Thrift::Struct.generate_accessors self
|
1338
|
+
end
|
1339
|
+
|
1340
|
+
class FirstPageUser_args
|
1341
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1342
|
+
CATEGORIES = 1
|
1343
|
+
SIZE = 2
|
1344
|
+
|
1345
|
+
FIELDS = {
|
1346
|
+
CATEGORIES => {:type => ::Thrift::Types::LIST, :name => 'categories', :element => {:type => ::Thrift::Types::I32}},
|
1347
|
+
SIZE => {:type => ::Thrift::Types::I32, :name => 'size'}
|
1348
|
+
}
|
1349
|
+
|
1350
|
+
def struct_fields; FIELDS; end
|
1351
|
+
|
1352
|
+
def validate
|
1353
|
+
end
|
1354
|
+
|
1355
|
+
::Thrift::Struct.generate_accessors self
|
1356
|
+
end
|
1357
|
+
|
1358
|
+
class FirstPageUser_result
|
1359
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1360
|
+
SUCCESS = 0
|
1361
|
+
|
1362
|
+
FIELDS = {
|
1363
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I32}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::I64}}}
|
1364
|
+
}
|
1365
|
+
|
1366
|
+
def struct_fields; FIELDS; end
|
1367
|
+
|
1368
|
+
def validate
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
::Thrift::Struct.generate_accessors self
|
1372
|
+
end
|
1373
|
+
|
1262
1374
|
end
|
1263
1375
|
|
1264
1376
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stat-analysis-query
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ted Wang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thrift
|