developer
2023-05-20 c1ffd99c4b60066774eb2c97b31e4aaa014e7f51
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
//
//  YTHNetdata.h
//  PapayaPlayerDaqo
//
//  Created by 味口 on 15-6-15.
//  Copyright (c) 2015年 wgj. All rights reserved.
//
 
#import <Foundation/Foundation.h>
#import "NSString+YTH.h"
 
@interface YTHNetdata : NSObject
 
+ (NSMutableDictionary *)baseParams:(NSMutableDictionary *)params;
 
/**
 *  获取用户名
 */
+ (NSMutableDictionary *)userWithDevice:(NSString *)device withSystem:(NSString *)system;
 
/**
 *  我的Banner获取
 */
+ (NSMutableDictionary *)BannerWithUid:(NSString *)uid withSystem:(NSString *)system;
 
/**
 *  推荐里面的小广告推广视图
 */
+ (NSMutableDictionary *)SpreadWithUid:(NSString *)uid withSystem:(NSString *)system;
 
/**
 *  上传点击发现页面的广告
 *
 *  @param uid      用户ID
 *  @param system   1
 *
 *  @return return value description
 */
+(NSMutableDictionary*)UploadClickAD:(NSString*)uid WithSystem:(NSString *)system WithId:(NSString*)Id WithPid:(NSString*)Pid WithType:(NSString*)Type;
 
/**
 *  意见搜索
 */
+ (NSMutableDictionary *)suggestSearchWithUid:(NSString *)uid withKey:(NSString *)key withSystem:(NSString *)system withPage:(NSString *)page;
 
/**
 *  搜索
 */
+ (NSMutableDictionary *)serachWithUid:(NSString *)uid withKey:(NSString *)key withType:(NSString *)type withVideoType:(NSString *)vType withSystem:(NSString *)system withPage:(NSString *)page;
 
/**
 *  热门搜索
 */
+ (NSMutableDictionary *)HotSerachWithUid:(NSString *)uid withSystem:(NSString *)system;
 
/**
 *  相关视频
 */
+ (NSMutableDictionary *)RelativeVideosWithUid:(NSString *)uid withVideoId:(NSString *)videoid withSystem:(NSString *)system;
 
/**
 *  猜你喜欢
 */
+ (NSMutableDictionary *)guessLikeWithUid:(NSString *)uid withVideoId:(NSString *)videoid withSystem:(NSString *)system;
/**
 *  大家都在看
 */
+ (NSMutableDictionary *)PeopleSeeVideoWithUid:(NSString *)uid withVideoId:(NSString *)videoid withSystem:(NSString *)system;
 
/**
 *  获取用户信息
 */
//+ (NSMutableDictionary *)UserInfoWithKey:(NSString *)key withSystem:(NSString *)system;
 
/**
 *  获取收藏的视频
 */
+ (NSMutableDictionary *)CollectedVideoWithUid:(NSString *)uid withSystem:(NSString *)system withPage:(NSString *)page;
 
/**
 *  获取我观看过的视频
 */
+ (NSMutableDictionary *)WatchHistoryWithUid:(NSString *)uid withSystem:(NSString *)system withPage:(NSString *)page;
 
/**
 *  收藏与取消收藏 0取消收藏  1-收藏
 */
+ (NSMutableDictionary *)getScoreCollectWithUid:(NSString *)uid withId:(NSString *)VideoId withThirdType:(NSString *)ThirdType WithType:(NSString *)type withSystem:(NSString *)system;
 
/**
 *  获取是否被收藏
 */
+ (NSMutableDictionary *)getIsCollectedWithUid:(NSString *)uid withId:(NSString *)VideoId withThirdType:(NSString *)ThirdType withSystem:(NSString *)system;
 
//=================================
 
 
/**
 *  顶部推荐广告
 */
+ (NSMutableDictionary *)HomeAdWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system;
+ (NSMutableDictionary *)getRecommendCategoryVideoBannerWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system;
/**
 *  推荐分类
 */
+ (NSMutableDictionary *)HomeTypeWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system DataKey:(NSString *)DataKey PageSize:(NSUInteger)PageSize Page:(NSUInteger)Page;
 
//首页底部明星
+(NSMutableDictionary *)getHotStarMainList:(NSString *)uid  WithSystem:(NSString *)system;
 
/**
 *  更多视频
 */
+ (NSMutableDictionary *)MoreVideoWithUid:(NSString *)uid withType:(NSString *)type withSystem:(NSString *)system withPage:(NSString *)page;
 
/**
 *  推荐下面的更多视频
 */
+ (NSMutableDictionary *)MoreHomeVideoWithUid:(NSString *)uid withSystem:(NSString *)system withPage:(NSString *)page;
 
 
 
/**
 *  获取视频详情
 */
+ (NSMutableDictionary *)VoideoDetailWithUid:(NSString *)uid withLoginUid:(NSString *)LoginUid withId:(NSString *)movieId withThirdType:(NSString *)ThirdType withSystem:(NSString *)system withResourceId:(NSString *)ResourceId;
 
 
//=====================================
 
 
/**
 *  获取分类种类
 */
+ (NSMutableDictionary *)FirstChildType:(NSString *)uid withParentId:(NSString *)parentId withSystem:(NSString *)system;
 
 
/**
 *  获取热门频道
 */
+ (NSMutableDictionary *)HotType:(NSString *)uid withSystem:(NSString *)system;
 
/**
 *  获取分类视频
 */
+ (NSMutableDictionary *)VideoList:(NSString *)uid withPage:(NSString *)page withVideoType:(NSString *)videotype withOrder:(NSString *)order withSystem:(NSString *)system withCategoryType:(NSString *)CategoryType;
 
/**
 *  获取大分类推荐Banner
 */
+ (NSMutableDictionary *)RecommendCategoryVideoBannerWithUid:(NSString *)uid withVideoType:(NSString *)Type  withSystem:(NSString *)system;
 
/**
 *  获取大分类推荐热榜
 */
+ (NSMutableDictionary *)RecommendCategoryVideoListWithUid:(NSString *)uid withVideoType:(NSString *)Type  withSystem:(NSString *)system;
 
/**
 *  精彩频道
 */
+ (NSMutableDictionary *)ClassWithUid:(NSString *)uid withSystem:(NSString *)system;
 
/**
 *  精彩频道视频
 */
+(NSMutableDictionary *)ClassVideoWithUid:(NSString *)uid withVideoType:(NSString *)videotype withSystem:(NSString *)system withPage:(NSString *)page;
 
/**
 *  热门明星
 */
+ (NSMutableDictionary *)HotStarsWithUid:(NSString *)uid withSystem:(NSString *)system withPage:(NSString *)page;
 
 
/**
 *  热门明星视频
 */
+ (NSMutableDictionary *)HotStarsVideoWithUid:(NSString *)uid withStarId:(NSString *)starid withSystem:(NSString *)system withPage:(NSString *)page;
 
/**
 *  意见反馈
 */
+ (NSMutableDictionary *)adviceWithUid:(NSString *)uid withContent:(NSString *)Content withSystem:(NSString *)system withPage:(NSString *)page;
 
/**
 *  获取推荐中上方的通知内容
 */
+ (NSMutableDictionary *)NoticeWithUid:(NSString *)uid withSystem:(NSString *)system;
 
 
//====================================
/**
 *  特殊url处理
 */
+ (NSMutableDictionary *)ThirdVideoRequestWithUid:(NSString *)uid WithId:(NSString *)Id WithUrl:(NSString *)url WithStep:(NSString *)step WithData:(NSString *)data WithSystem:(NSString *)system ;
 
 
/**
 *  提交url得到真实视频url
 */
+ (NSMutableDictionary *)parseVideoUrlWithUid:(NSString *)uid WithId:(NSString *)Id WithVideoId:(NSString *)VideoId WithSystem:(NSString *)system WithType:(NSString *)Type WithResourceId:(NSString *)ResourceId WithEID:(NSString *)Eid;
 
 
/**
 *  合集接口
 */
+ (NSMutableDictionary *)IntersectionWithUid:(NSString *)uid withId:(NSString*)Id withSystem:(NSString *)system;
 
/**
 *  第三方登录
 */
+ (NSMutableDictionary *)ThirdPartyWithUid:(NSString *)uid withOpenId:(NSString *)openId WithName:(NSString *)name WithPortrait:(NSString *)Portrait WithLoginType:(NSString *)LoginType withSystem:(NSString *)system;
 
/**
 发送验证码
 
 @param uid    用户ID
 @param system 1
 @param Email  注册邮箱
 
 @return 返回字典
 */
+ (NSMutableDictionary *)sendVerifyCodeWithUid:(NSString *)uid WithSystem:(NSString *)system WithEmail:(NSString *)Email;
 
/**
 注册
 
 @param uid        用户ID
 @param system     1
 @param Email      注册邮箱
 @param Pwd        密码
 @param NickName   昵称
 @param VerifyCode 验证码
 @param Portrait   头像
 
 @return 返回字典
 */
+ (NSMutableDictionary *)registerWithUid:(NSString *)uid WithSystem:(NSString *)system WithEmail:(NSString *)Email WithPwd:(NSString *)Pwd WithNickName:(NSString *)NickName WithVerifyCode:(NSString *)VerifyCode WithPortrait:(NSString *)Portrait;
 
/**
 邮箱登录
 
 @param uid    用户ID
 @param system 1
 @param Email  注册邮箱
 @param Pwd    密码
 
 @return 返回字典
 */
+ (NSMutableDictionary *)loginWithUid:(NSString *)uid WithSystem:(NSString *)system WithEmail:(NSString *)Email WithPwd:(NSString *)Pwd;
 
/**
 修改个人信息
 
 @param uid          用户id
 @param system       1
 @param loginUid     登录id
 @param sex          性别  (0-女  1-男)
 @param birthday     生日
 @param PersonalSign 个性签名
 @param NickName     昵称
 @param Portrait     图片的二进制流
 
 @return 返回字典
 */
+ (NSMutableDictionary *)updateLoginUserInfoWithUid:(NSString *)uid WithSystem:(NSString *)system WithLoginUid:(NSString *)loginUid WithSex:(NSString *)sex WithBirthDay:(NSString *)birthday WithPersonalSign:(NSString *)PersonalSign WithNickName:(NSString *)NickName WithPortrait:(NSString *)Portrait;
 
/**
 获取个人信息
 
 @param uid      用户id
 @param system   1
 @param loginUid 登录id
 
 @return 返回字典
 */
+ (NSMutableDictionary *)LoginUserInfoWithUid:(NSString *)uid WithSystem:(NSString *)system WithLoginUid:(NSString *)loginUid;
 
/**
 重置密码
 
 @param uid        用户id
 @param system     1
 @param Email      邮箱
 @param Pwd        新密码
 @param VerifyCode 验证码
 
 @return 返回字典
 */
+ (NSMutableDictionary *)setPwdWithUid:(NSString *)uid WithSystem:(NSString *)system WithEmail:(NSString *)Email WithPwd:(NSString *)Pwd WithVerifyCode:(NSString *)VerifyCode;
 
 
//====================================
 
/**
 *  获取视频评论列表
 *
 *  @param uid       用户ID
 *  @param Id        视频的ID
 *  @param thirdType 根据videoinfo的返回
 *  @param page      页码
 *  @param system    1
 *
 *  @return 返回字典
 */
+ (NSMutableDictionary *)CommentListWithUid:(NSString *)uid withVideoId:(NSString*)Id withThirdType:(NSString *)thirdType WithPage:(NSString *)page withSystem:(NSString *)system;
 
/**
 *  获取别人对我的评论
 *
 *  @param uid    用户的id
 *  @param page   页码
 *  @param system 1
 *
 *  @return 返回字典
 */
+(NSMutableDictionary *)CommentReplyWithUid:(NSString *)uid withPage:(NSString *)page WithSystem:(NSString *)system;
 
/**
 *  回复评论
 *
 *  @param uid             用户ID
 *  @param commentReplayId 评论回复ID
 *  @param commentId       该主评论的ID(可选)
 *  @param content         回复的内容
 *  @param system          1
 *
 *  @return 返回字典
 */
+(NSMutableDictionary *)replayCommentWithUid:(NSString *)uid withcommentReplayId:(NSString *)commentReplayId WithCommentId:(NSString *)commentId WithContent:(NSString *)content withSystem:(NSString *)system;
/**
 *  评论
 *
 *  @param uid       用户ID
 *  @param VideoId   视频Id
 *  @param thirfType VideoInfo的ThirdType
 *  @param content   回复的内容
 *  @param system    1
 *
 *  @return 返回字典
 */
+(NSMutableDictionary *)replayCommentWithUid:(NSString *)uid WithVideoId:(NSString *)VideoId withThirdType:(NSString *)thirfType WithContent:(NSString *)content WithSystem:(NSString *)system;
 
//====================================
 
/**
 *  添加关注
 *
 *  @param uid      用户ID
 *  @param VideoId  视频ID
 *  @param LoginUid 登录的用户ID
 *  @param system   1
 *
 *  @return 返回字典
 */
+(NSMutableDictionary *)addAttentionWithUid:(NSString *)uid WithVideoId:(NSString *)VideoId WithLoginUid:(NSString *)LoginUid WithSystem:(NSString *)system;
 
/**
 *  取消关注
 *
 *  @param uid      用户ID
 *  @param VideoId  视频ID
 *  @param LoginUid 登录的用户ID
 *  @param system   1
 *
 *  @return 返回字典
 */
+(NSMutableDictionary *)cancelAttentionWithUid:(NSString *)uid WithVideoId:(NSString *)VideoId WithLoginUid:(NSString *)LoginUid WithSystem:(NSString *)system;
 
/**
 *  获取关注列表
 *
 *  @param uid      用户ID
 *  @param Page     获取第几页
 *  @param LoginUid 登录的用户ID
 *  @param system   1
 *
 *  @return 返回字典
 */
+(NSMutableDictionary *)getAttentionListWithUid:(NSString *)uid WithPage:(NSString *)Page WithLoginUid:(NSString *)LoginUid WithSystem:(NSString *)system;
 
/**
 *  获取关注动态
 *
 *  @param uid      用户ID
 *  @param Page     获取第几页
 *  @param LoginUid 登录的用户ID
 *  @param system   1
 *
 *  @return 返回字典
 */
+(NSMutableDictionary *)getAttentionUpdateListWithUid:(NSString *)uid WithPage:(NSString *)Page WithLoginUid:(NSString *)LoginUid WithSystem:(NSString *)system;
 
 
//====================================
 
/**
 *  获得发现首页的banner
 *
 *  @param uid      用户ID
 *  @param LoginUid 登录的用户ID
 *  @param system   1
 *
 *  @return return value description
 */
+(NSMutableDictionary *)getFoundHomeBanner:(NSString *)uid  WithSystem:(NSString *)system;
 
 
/**
 *  获得发现首页的明星
 *
 *  @param uid      用户ID
 *  @param LoginUid 登录的用户ID
 *  @param system   1
 *
 *  @return return value description
 */
+(NSMutableDictionary *)getFoundHomeStars:(NSString *)uid  WithSystem:(NSString *)system;
 
/**
 *  获得发现首页的图文
 *
 *  @param uid      用户ID
 *  @param LoginUid 登录的用户ID
 *  @param system   1
 *
 *  @return return value description
 */
+(NSMutableDictionary *)getFoundHomeMapchar:(NSString *)uid  WithSystem:(NSString *)system;
 
/**
 *  获得发现首页的应用汇
 *
 *  @param uid      用户ID
 *  @param LoginUid 登录的用户ID
 *  @param system   1
 *
 *  @return return value description
 */
+(NSMutableDictionary *)getFoundHomeApp:(NSString *)uid WithSystem:(NSString *)system;
 
/**
 *  获得发现 图文社type
 *
 *  @param uid      用户ID
 *  @param LoginUid 登录的用户ID
 *  @param system   1
 *
 *  @return return value description
 */
+(NSMutableDictionary *)getFoundGraphicSociety:(NSString *)uid  WithSystem:(NSString *)system;
 
/**
 *  获得发现 图文社单条新闻
 *
 *  @param uid      用户ID
 *  @param LoginUid 登录的用户ID
 *  @param system   1
 *
 *  @return return value description
 */
+(NSMutableDictionary *)getFoundLinefornew:(NSString *)uid withPage:(NSString*)Page withType:(NSString*)Type  WithSystem:(NSString *)system;
 
/**
 *  获得发现 专题列表
 *
 *  @param uid      用户ID
 *  @param LoginUid 登录的用户ID
 *  @param system   1
 *
 *  @return return value description
 */
+(NSMutableDictionary *)getFoundSpecialList:(NSString *)uid withPage:(NSString*)Page WithSystem:(NSString *)system;
 
/**
 *  获得发现 单个
 *
 *  @param uid      用户ID
 *  @param LoginUid 登录的用户ID
 *  @param system   1
 *
 *  @return return value description
 */
+(NSMutableDictionary *)getFoundOnlySpecial:(NSString *)uid withPage:(NSString*)Page WithId:(NSString*)Id WithSystem:(NSString *)system;
 
//====================================
 
/**
 获取Top10排行
 
 @param uid    用户ID
 @param system 1
 
 @return return value description
 */
+(NSMutableDictionary *)TopWithUid:(NSString*)uid WithSystem:(NSString *)system;
 
/**
 获取最新上线
 
 @param uid    用户ID
 @param system 1
 
 @return return value description
 */
+(NSMutableDictionary *)NewListWithUid:(NSString*)uid withPage:(NSString *)page WithSystem:(NSString *)system;
 
/**
 主播点击统计
 
 @param uid    用户ID
 @param system 1
 @param Type   渠道类型
 @param RoomId 房间ID
 
 @return value description
 */
+(NSMutableDictionary *)addStatisticsWithUid:(NSString*)uid WithSystem:(NSString *)system WithType:(NSString *)Type WithRoomId:(NSString *) RoomId;
 
/**
 获取热门直播
 
 @param uid 用户ID
 @param system 1
 @return value description
 */
+(NSMutableDictionary *)getHotLiveWithUid:(NSString*)uid WithSystem:(NSString *)system;
 
/**
 获取直播类别
 
 @param uid 用户ID
 @param system 1
 @return value description
 */
+(NSMutableDictionary *)getAllLiveTypeWithUid:(NSString*)uid WithSystem:(NSString *)system;
 
/**
 获取直播列表
 
 @param uid 用户ID
 @param system 1
 @return value description
 */
+(NSMutableDictionary *)getLiveListWithUid:(NSString*)uid WithSystem:(NSString *)system withPage:(NSString *)page;
 
/**
 专题类别
 
 @param uid 用户ID
 @param system 1
 @return value description
 */
+(NSMutableDictionary *)getLiveListByTypeWithUid:(NSString*)uid WithSystem:(NSString *)system WithType:(NSString *)Type withPage:(NSString *)page;
 
//====================================
 
/**
 获取商品列表
 
 @param uid 用户id
 @param system 1
 @param page 页数
 */
+(NSMutableDictionary *)getGoodsItemListWithUid:(NSString *)uid WithSystem:(NSString *)system withPage:(NSString *)page;
/**
 获取商品详情
 
 @param uid 用户id
 @param system 1
 @param Id 商品ID
 */
+(NSMutableDictionary *)getGoodsItemDetailWithUid:(NSString *)uid WithSystem:(NSString *)system withId:(NSString *)Id;
/**
 获取评论列表
 
 @param uid 用户id
 @param system 1
 @param Id 商品ID
 @param page 页数
 */
+(NSMutableDictionary *)getCommentListWithUid:(NSString *)uid WithSystem:(NSString *)system withId:(NSString *)Id withPage:(NSString *)page;
/**
 发表评论
 
 @param uid 用户id
 @param system 1
 @param Id 商品ID
 @param LoginUid 用户登录ID
 @param Content 内容
 */
+(NSMutableDictionary *)addCommentWithUid:(NSString *)uid WithSystem:(NSString *)system withId:(NSString *)Id withLoginUid:(NSString *)LoginUid withContent:(NSString *)Content;
/**
 添加收藏
 
 @param uid 用户id
 @param system 1
 @param Id 商品ID
 */
+(NSMutableDictionary *)addCollectWithUid:(NSString *)uid WithSystem:(NSString *)system withId:(NSString *)Id;
/**
 取消收藏
 
 @param uid 用户id
 @param system 1
 @param Id 商品ID
 */
+(NSMutableDictionary *)cancelCollectWithUid:(NSString *)uid WithSystem:(NSString *)system withId:(NSString *)Id;
/**
 商品收藏列表
 
 @param uid 用户id
 @param system 1
 @param page 页数
 */
+(NSMutableDictionary *)getCollectListWithUid:(NSString *)uid WithSystem:(NSString *)system withPage:(NSString *)page;
 
//首页精选
+ (NSMutableDictionary *)videoClassWithUid:(NSString *)uid withSystem:(NSString *)system;
 
 
+ (NSMutableDictionary *)videoClassChangeWithUid:(NSString *)uid vtid:(NSString *)vtid withSystem:(NSString *)system Page:(NSUInteger)Page ;
 
+ (NSMutableDictionary *)hotSearch:(NSString *)uid withSystem:(NSString *)system;
 
+ (NSMutableDictionary *)pptvVIPVideoActivityWithUid:(NSString *)uid withSystem:(NSString *)system WithLoginUid:(NSString *)loginUid url:(NSString *)url vid:(NSString *)vid cid:(NSString *)cid;
 
+ (NSMutableDictionary *)pptvVideoPlayStateWithUid:(NSString *)uid withSystem:(NSString *)system WithLoginUid:(NSString *)loginUid vid:(NSString *)vid cid:(NSString *)cid;
@end