Skip to content

Commit cc67aac

Browse files
committed
docs: 完善API文档注释
# - type: feat(新特性), fix(修改问题), docs(文档修改), style(代码格式修改, 注意不是 css 修改), refactor(代码重构), test(测试), chore(其他修改, 比如构建流程, 依赖管理) # - scope: (可以为空) 影响的的范围 all :表示影响面大 ,如修改了网络框架 会对真个程序产生影响 loation: 表示影响小,某个小小的功能 module:表示会影响某个模块 如登录模块、首页模块 、用户管理模块等等 # - subject 提交描述 # - body 具体的修改信息 应该尽量详细 # - footer 放置写备注啥的,如果是 bug ,可以把bug id放入
1 parent 2ff8ada commit cc67aac

File tree

69 files changed

+11891
-472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+11891
-472
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Paintinglite/.DS_Store

0 Bytes
Binary file not shown.

Paintinglite/Paintinglite.xcodeproj/xcuserdata/niukouruanjian.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<key>Paintinglite.xcscheme_^#shared#^_</key>
88
<dict>
99
<key>orderHint</key>
10-
<integer>0</integer>
10+
<integer>1</integer>
1111
</dict>
1212
<key>PaintingliteAggregate.xcscheme_^#shared#^_</key>
1313
<dict>
1414
<key>orderHint</key>
15-
<integer>1</integer>
15+
<integer>0</integer>
1616
</dict>
1717
</dict>
1818
</dict>

Paintinglite/Paintinglite/Paintinglite/Opt/Data/PaintingliteIntellegenceSelect.h

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,41 @@
66
// Copyright © 2020 Bryant Reyn. All rights reserved.
77
//
88

9-
/**
10-
* 智能查询操作
11-
* 针对多对象的查询分配操作
12-
* 支持操作
13-
* 1.基本查询 2.分页查询 3.排序查询 4.万能查询
9+
/*!
10+
@header PaintingliteIntellegenceSelect
11+
@abstract PaintingliteIntellegenceSelect 提供SDK框架中智能查询操作,针对多对象的查询分配操作[1.基本查询 2.分页查询 3.排序查询 4.万能查询]
12+
@author CreaterOS
13+
@version 1.00 2020/5/26 Creation (此文档的版本信息)
1414
*/
1515

1616
#import "PaintingliteTableOptions.h"
1717

1818
NS_ASSUME_NONNULL_BEGIN
19-
19+
/*!
20+
@class PaintingliteIntellegenceSelect
21+
@abstract PaintingliteIntellegenceSelect 提供SDK框架中智能查询操作,针对多对象的查询分配操作[1.基本查询 2.分页查询 3.排序查询 4.万能查询]
22+
*/
2023
@interface PaintingliteIntellegenceSelect : PaintingliteTableOptions
2124

22-
/// 单例模式
25+
/*!
26+
@method sharePaintingliteIntellegenceSelect
27+
@abstract 单例模式生成PaintingliteIntellegenceSelect对象
28+
@discussion 生成PaintingliteIntellegenceSelect在项目工程全局中只生成一个实例对象
29+
@result PaintingliteIntellegenceSelect
30+
*/
2331
+ (instancetype)sharePaintingliteIntellegenceSelect;
2432

2533
#pragma mark - 智能查询操作
2634

27-
/// 基本查询
28-
/// @param ppDb ppDb
29-
/// @param completeHandler 回调操作
30-
/// @param objects 可变参数,传入多个查询对象类型
35+
/*!
36+
@method load: completeHandler: objects:
37+
@abstract 基本查询
38+
@discussion 基本查询,支持回调操作
39+
@param ppDb Sqlite3 ppDb
40+
@param objects 可变参数,传入多个查询对象类型
41+
@param completeHandler 回调操作
42+
@result Boolean
43+
*/
3144
- (Boolean)load:(sqlite3 *)ppDb completeHandler:(void(^ __nullable)(PaintingliteSessionError *error,Boolean success,NSMutableArray *loadArray))completeHandler objects:(id)objects,... NS_REQUIRES_NIL_TERMINATION;
3245

3346
/* 分页查询 */

Paintinglite/Paintinglite/Paintinglite/Opt/Data/PaintingliteTableOptionsSelect.h

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,30 @@
66
// Copyright © 2020 Bryant Reyn. All rights reserved.
77
//
88

9+
/*!
10+
@header PaintingliteTableOptionsSelect
11+
@abstract PaintingliteTableOptionsSelect 提供SDK框架中表操作
12+
@author CreaterOS
13+
@version 1.00 2020/6/1 Creation (此文档的版本信息)
14+
*/
15+
916
#import <Foundation/Foundation.h>
1017
#import "PaintingliteTableOptions.h"
1118

1219
NS_ASSUME_NONNULL_BEGIN
13-
20+
/*!
21+
@class PaintingliteTableOptionsSelect
22+
@abstract PaintingliteTableOptionsSelect 提供SDK框架中表操作
23+
*/
1424
@interface PaintingliteTableOptionsSelect : PaintingliteTableOptions
1525

1626

17-
/// 单例模式
27+
/*!
28+
@method sharePaintingliteTableSelectOptions
29+
@abstract 单例模式生成PaintingliteTableOptionsSelect对象
30+
@discussion 生成PaintingliteTableOptionsSelect在项目工程全局中只生成一个实例对象
31+
@result PaintingliteTableOptionsSelect
32+
*/
1833
+ (instancetype)sharePaintingliteTableSelectOptions;
1934

2035

Paintinglite/Paintinglite/Paintinglite/Opt/Data/PaintingliteTableOptionsSelectPQL.h

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,27 @@
66
// Copyright © 2020 Bryant Reyn. All rights reserved.
77
//
88

9-
10-
/**
11-
* 使用PQL语句进行快速查询
12-
* PQL语句默认全部查询
13-
* PQL语句类比SQL语句
14-
* 例: FROM user (基本语法是FROM + 类的对象)
15-
* 统一大写
16-
* 支持
17-
* 1.基本查询 2.条件查询 3.分页查询 4.排序查询 5.模糊查询
18-
* 直接封装到对象中
9+
/*!
10+
@header PaintingliteTableOptionsSelectPQL
11+
@abstract PaintingliteTableOptionsSelectPQL 提供SDK框架中PQL语句进行快速查询,PQL语句默认全部查询[FROM user (基本语法是FROM + 类的对象)](统一大写)[1.基本查询 2.条件查询 3.分页查询 4.排序查询 5.模糊查询],结果集直接封装到对象中
12+
@author CreaterOS
13+
@version 1.00 2020/5/26 Creation (此文档的版本信息)
1914
*/
2015

2116
#import "PaintingliteTableOptions.h"
2217

2318
NS_ASSUME_NONNULL_BEGIN
24-
19+
/*!
20+
@class PaintingliteTableOptions
21+
@abstract PaintingliteTableOptions 提供SDK框架中PQL语句进行快速查询,PQL语句默认全部查询[FROM user (基本语法是FROM + 类的对象)](统一大写)[1.基本查询 2.条件查询 3.分页查询 4.排序查询 5.模糊查询],结果集直接封装到对象中
22+
*/
2523
@interface PaintingliteTableOptionsSelectPQL : PaintingliteTableOptions
26-
27-
/// 单例模式
24+
/*!
25+
@method sharePaintingliteTableOptionsSelectPQL
26+
@abstract 单例模式生成PaintingliteTableOptionsSelectPQL对象
27+
@discussion 生成PaintingliteTableOptionsSelectPQL在项目工程全局中只生成一个实例对象
28+
@result PaintingliteTableOptionsSelectPQL
29+
*/
2830
+ (instancetype)sharePaintingliteTableOptionsSelectPQL;
2931

3032
@end

Paintinglite/Paintinglite/Paintinglite/PaintingliteSessionManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/*!
1010
@header PaintingliteSessionManager
11-
@abstract PaintingliteSessionManager提供SDK框架中所有的基本操作,开发这可以通过SessionManager获得数据库管理者,提供了大量的数据库操作方式
11+
@abstract PaintingliteSessionManager 提供SDK框架中所有的基本操作,开发这可以通过SessionManager获得数据库管理者,提供了大量的数据库操作方式
1212
@author CreaterOS
1313
@version 1.00 2020/5/26 Creation (此文档的版本信息)
1414
*/
@@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
2323

2424
/*!
2525
@class PaintingliteSessionManager
26-
@abstract PaintingliteSessionManager提供SDK框架中所有的基本操作,开发这可以通过SessionManager获得数据库管理者,提供了大量的数据库操作方式
26+
@abstract PaintingliteSessionManager 提供SDK框架中所有的基本操作,开发这可以通过SessionManager获得数据库管理者,提供了大量的数据库操作方式
2727
*/
2828
@interface PaintingliteSessionManager : NSObject
2929
/*!

Paintinglite/Paintinglite/Paintinglite/Vender/PaintingliteBackUpManager.h

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,25 @@
66
// Copyright © 2020 Bryant Reyn. All rights reserved.
77
//
88

9-
/**
10-
* PaintingliteBackUpManager
11-
* 用来备份,生成sql文件
12-
* 支持MySql ORCAL Sqlite SqlServer
13-
* 建库文件
14-
* 建表操作文件
15-
* 插入数据文件
9+
/*!
10+
@header PaintingliteBackUpManager
11+
@abstract PaintingliteBackUpManager 提供SDK框架中备份sql文件,支持备份类型MySql ORCAL Sqlite SqlServer
12+
@author CreaterOS
13+
@version 1.00 2020/6/6 Creation (此文档的版本信息)
1614
*/
1715

1816
#import <Foundation/Foundation.h>
1917
#import <Sqlite3.h>
2018
#import "PaintingliteSessionError.h"
2119

20+
/*!
21+
@abstract PaintingliteBackUpManagerDBType 备份类型
22+
@constant PaintingliteBackUpSqlite3 Sqlite3
23+
@constant PaintingliteBackUpMySql 删除表
24+
@constant PaintingliteBackUpSqlServer SqlServer
25+
@constant PaintingliteBackUpORCALE ORCALE
26+
@discussion 备份类型
27+
*/
2228
typedef NS_ENUM(NSUInteger, PaintingliteBackUpManagerDBType) {
2329
PaintingliteBackUpSqlite3,
2430
PaintingliteBackUpMySql,
@@ -28,28 +34,49 @@ typedef NS_ENUM(NSUInteger, PaintingliteBackUpManagerDBType) {
2834

2935
NS_ASSUME_NONNULL_BEGIN
3036

37+
/*!
38+
@class PaintingliteBackUpManager
39+
@abstract PaintingliteBackUpManager 提供SDK框架中备份sql文件,支持备份类型MySql ORCAL Sqlite SqlServer
40+
*/
3141
@interface PaintingliteBackUpManager : NSObject
3242

33-
/* 单例模式 */
43+
/*!
44+
@method sharePaintingliteBackUpManager
45+
@abstract 单例模式生成PaintingliteBackUpManager对象
46+
@discussion 生成PaintingliteBackUpManager在项目工程全局中只生成一个实例对象
47+
@result PaintingliteBackUpManager
48+
*/
3449
+ (instancetype)sharePaintingliteBackUpManager;
3550

36-
/**
37-
* 备份数据库
38-
* sqliteName -- 数据库名称
39-
* type -- 数据库类型
40-
* completeHandler -- 返回路径
51+
/*!
52+
@method backupDataBaseWithName: sqliteName: type: completeHandler:
53+
@abstract 备份数据库
54+
@discussion 备份数据库,支持回调操作
55+
@param sqliteName 数据库名称
56+
@param type 数据库类型
57+
@param completeHandler 返回路径
58+
@result Boolean
4159
*/
4260
- (Boolean)backupDataBaseWithName:(sqlite3 *)ppDb sqliteName:(NSString *)sqliteName type:(PaintingliteBackUpManagerDBType)type completeHandler:(void(^ __nullable)(NSString *saveFilePath))completeHandler;
4361

44-
/**
45-
* 根据表名称数组备份
46-
* tableNameArray -- 表名数组
47-
* ppDb -- 数据库ppDb
62+
/*!
63+
@method backupTableRowWithTableName: sqliteName: type: completeHandler:
64+
@abstract 根据表名称数组备份
65+
@discussion 根据表名称数组备份
66+
@param tableNameArray 表名称数组
67+
@param ppDb Sqlite3 ppDb
68+
@result Boolean
4869
*/
4970
- (Boolean)backupTableRowWithTableName:(NSMutableArray<NSString *> *__nonnull)tableNameArray ppDb:(sqlite3 *)ppDb;
5071

51-
/**
52-
* 回退一次表数据
72+
/*!
73+
@method backupTableValueForBeforeOpt: tableName: completeHandler:
74+
@abstract 回退一次表数据
75+
@discussion 回退一次表数据,支持回调操作
76+
@param ppDb Sqlite3 ppDb
77+
@param tableName 表名称
78+
@param completeHandler 回调操作
79+
@result Boolean
5380
*/
5481
- (Boolean)backupTableValueForBeforeOpt:(sqlite3 *)ppDb tableName:(NSString *__nonnull)tableName completeHandler:(void(^ __nullable)(PaintingliteSessionError *sessionerror,Boolean success, NSMutableArray<NSDictionary *> *newList))completeHandler;
5582

Paintinglite/Paintinglite/Paintinglite/Vender/PaintingliteJSContext.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@
66
// Copyright © 2020 Bryant Reyn. All rights reserved.
77
//
88

9-
/**
10-
* PaintingliteJSContext
11-
* 执行JavaScript脚本代码
12-
* JavaScript上下文
9+
/*!
10+
@header PaintingliteJSContext
11+
@abstract PaintingliteJSContext 提供SDK框架中执行JavaScript脚本代码
12+
@author CreaterOS
13+
@version 1.00 2020/7/29 Creation (此文档的版本信息)
1314
*/
1415

1516
#import <JavaScriptCore/JavaScriptCore.h>
1617

1718
NS_ASSUME_NONNULL_BEGIN
18-
19+
/*!
20+
@class PaintingliteJSContext
21+
@abstract PaintingliteJSContext 提供SDK框架中执行JavaScript脚本代码
22+
*/
1923
@interface PaintingliteJSContext : JSContext
2024

2125
@end

0 commit comments

Comments
 (0)