Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
feat: #23 rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Soontao committed Aug 9, 2020
1 parent f5bd991 commit f882af5
Show file tree
Hide file tree
Showing 11 changed files with 451 additions and 455 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ Using the `actions` implement the partially focused business logics, and use the

### Hook

Hook is general business logic for specify `Domain Model`, like `beforeCreate`/`beforeUpdate`, and it's mapped from `OData`/`HTTPS` method.
Hook is general business logic for specify `Domain Model`, like `beforeCreate`/`beforeUpdate`, and it's mapped from `OData`/`HTTP Method`.

Define `Hooks` to implement the general business logics for entity.

### Service (TypedController)
### Service

Using `services` in `hook`/`action`/`function`, keep the business consistence for single domain model.

Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
}
],
"dependencies": {
"@newdash/newdash": "^5.12.1",
"@odata/metadata": "^0.1.13",
"@odata/parser": "^0.1.39",
"@newdash/newdash": "^5.12.2",
"@odata/metadata": "^0.1.14",
"@odata/parser": "^0.1.41",
"@types/express": "^4.17.7",
"body-parser": "^1.19.0",
"cors": "^2.8.5",
Expand Down
2 changes: 1 addition & 1 deletion src/typeorm/connection.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createConnection } from 'typeorm';
import { TypedService } from './controller';
import { BaseODataModel } from './model';
import { TypedService } from './service';

const KEY_CONN_NAME = 'odata:controller:connection';

Expand Down

0 comments on commit f882af5

Please sign in to comment.