Skip to content

Commit be8a1e6

Browse files
committed
update fano
1 parent 4652f89 commit be8a1e6

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/App/User/Models/UserModel.pas

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
(*!------------------------------------------------------------
22
* Fano Framework Skeleton Application (https://fanoframework.github.io)
33
*
4-
* @link https://github.com/fanoframework/fano-app-views
4+
* @link https://github.com/fanoframework/fano-mvc
55
* @copyright Copyright (c) 2018 Zamrony P. Juhara
6-
* @license https://github.com/fanoframework/fano-app-views/blob/master/LICENSE (GPL 3.0)
6+
* @license https://github.com/fanoframework/fano-mvc/blob/master/LICENSE (GPL 3.0)
77
*------------------------------------------------------------- *)
88
unit UserModel;
99

@@ -24,7 +24,7 @@ interface
2424
*
2525
* @author Zamrony P. Juhara <zamronypj@yahoo.com>
2626
*------------------------------------------------*)
27-
TUserModel = class(TInterfacedObject, IModelReader, IModelReadOnlyData, IDependency)
27+
TUserModel = class(TInterfacedObject, IModelReader, IModelResultSet, IDependency)
2828
private
2929
jsonData : TJSONData;
3030
jsonFilename : string;
@@ -33,8 +33,8 @@ TUserModel = class(TInterfacedObject, IModelReader, IModelReadOnlyData, IDep
3333
constructor create(const jsonDataSrc : string);
3434
destructor destroy(); override;
3535

36-
function read(const params : IModelWriteOnlyData = nil) : IModelReadOnlyData;
37-
function data() : IModelReadOnlyData;
36+
function read(const params : IModelParams = nil) : IModelResultSet;
37+
function data() : IModelResultSet;
3838

3939
(*!------------------------------------------------
4040
* get total data
@@ -87,8 +87,8 @@ implementation
8787
end;
8888

8989
function TUserModel.read(
90-
const params : IModelWriteOnlyData = nil
91-
) : IModelReadOnlyData;
90+
const params : IModelParams = nil
91+
) : IModelResultSet;
9292
var fstr : TFileStream;
9393
begin
9494
fstr:= TFileStream.create(jsonFilename, fmOpenRead or fmShareDenyWrite);
@@ -101,7 +101,7 @@ implementation
101101
result := self;
102102
end;
103103

104-
function TUserModel.data() : IModelReadOnlyData;
104+
function TUserModel.data() : IModelResultSet;
105105
begin
106106
result := self;
107107
end;

src/App/User/Views/UserListingView.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
(*!------------------------------------------------------------
22
* Fano Web Framework Skeleton Application (https://fanoframework.github.io)
33
*
4-
* @link https://github.com/fanoframework/fano-app
4+
* @link https://github.com/fanoframework/fano-mvc
55
* @copyright Copyright (c) 2018 Zamrony P. Juhara
6-
* @license https://github.com/fanoframework/fano-app/blob/master/LICENSE (GPL 3.0)
6+
* @license https://github.com/fanoframework/fano-mvc/blob/master/LICENSE (GPL 3.0)
77
*------------------------------------------------------------- *)
88
unit UserListingView;
99

@@ -64,7 +64,7 @@ implementation
6464
const viewParams : IViewParameters;
6565
const response : IResponse
6666
) : IResponse;
67-
var userData : IModelReadOnlyData;
67+
var userData : IModelResultSet;
6868
respBody : IResponseStream;
6969
begin
7070
userData := userModel.data();

0 commit comments

Comments
 (0)