BBASMBookshelfBridge.h
3.35 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
//
// BBASMBookshelfBridge.h
// BBAMNP
//
// Created by baidu on 2020/3/19.
// Copyright © 2020 Baidu. All rights reserved.
//
#import "BBASMBaseAPIBridge.h"
NS_ASSUME_NONNULL_BEGIN
@protocol BBASMBookshelfBridgeExports <JSExport>
/**
* 描 述: 小程序添加书到手百书架
* 示 例:_naSwan.bridge.bookshelfBridge.insertBookshelf(params)
* 文 档: http://es.baidu-int.com/index#/apiedit/1076
* 备 注:
* ********** description ************
* @name: insertBookshelf
* @authority: swanAPI
* @path: /
* @args: [{"name": "cb", "value": "string"}, {"name": "category", "value": "string"}, {"name": "contentIds", "value": {"arrayOf": "string"}}]
* @config: {"swan": {"jsc": {"invoke": "swan.method.json", "method": "_naSwan.bridge.bookshelfBridge.insertBookshelf"}}}
*/
- (NSDictionary *)insertBookshelf:(JSValue *)params;
/**
* 描 述: 书架查询
* 示 例: _naSwan.bridge.bookshelfBridge.queryBookshelf(params)
* 文 档: http://es.baidu-int.com/index#/apiedit/1077
* 备 注:
* ********** description ************
* @name: queryBookshelf
* @authority: swanAPI
* @path: /
* @args: [{"name": "cb", "value": "string"}, {"name": "contentIds", "value": {"arrayOf": "string"}}]
* @config: {"swan": {"jsc": {"invoke": "swan.method.json", "method": "_naSwan.bridge.bookshelfBridge.queryBookshelf"}}}
*/
- (NSDictionary *)queryBookshelf:(JSValue *)params;
/**
* 描 述: 更新内容的最新阅读时间,时间戳由server生成
* 示 例: _naSwan.bridge.bookshelfBridge.updateBookshelfReadTime(params)
* 文 档: http://es.baidu-int.com/index#/apidetail/1091
* 备 注:
* ********** description ************
* @name: updateBookshelfReadTime
* @authority: swanAPI
* @path: /
* @args: [{"name": "cb", "value": "string"}, {"name": "category", "value": "string"}, {"name": "contentId", "value": "string"}]
* @config: {"swan": {"jsc": {"invoke": "swan.method.json", "method": "_naSwan.bridge.bookshelfBridge.updateBookshelfReadTime"}}}
*/
- (NSDictionary *)updateBookshelfReadTime:(JSValue *)params;
/**
* 描 述: 删除书架内容
* 示 例: _naSwan.bridge.bookshelfBridge.deleteBookshelf(params)
* 文 档: http://es.baidu-int.com/#/apidetail/1197
* 备 注:
* ********** description ************
* @name: deleteBookshelf
* @authority: swanAPI
* @path: /deleteBookshelf
* @args: [{"name": "cb", "value": "string"}, {"name": "category", "value": "string"}, {"name": "contentIds", "value": {"arrayOf": "string"}}]
* @config: {"swan": {"jsc": {"invoke": "swan.method.json", "method": "_naSwan.bridge.bookshelfBridge.deleteBookshelf"}}}
*/
- (NSDictionary *)deleteBookshelf:(JSValue *)params;
/**
* 描 述: 跳转到手百书架
* 示 例: _naSwan.bridge.bookshelfBridge.navigateToBookshelf()
* 文 档: http://es.baidu-int.com/index#/apidetail/1117
* 备 注:
* ********** description ************
* @name: navigateToBookshelf
* @authority: swanAPI
* @path: /
* @args: [{"name": "cb", "value": "string"},{"name":"category","value":"string="}]
* @config: {"swan": {"jsc": {"invoke": "swan.method.json", "method": "_naSwan.bridge.bookshelfBridge.navigateToBookshelf"}}}
*/
- (NSDictionary *)navigateToBookshelf:(JSValue *)params;
@end
@interface BBASMBookshelfBridge : BBASMBaseAPIBridge <BBASMBookshelfBridgeExports>
@end
NS_ASSUME_NONNULL_END