Skip to content

Conversation

@iyuq
Copy link
Contributor

@iyuq iyuq commented Jun 12, 2017

@atian25 @jtyjty99999 sequelize-example已加。

@mention-bot
Copy link

@iyuq, thanks for your PR! By analyzing the history of the files in this pull request, we identified @fengmk2 and @dead-horse to be potential reviewers.

see [egg docs][egg] for more detail.

### Unittest
```shell
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bash


### Unittest
```shell
$ createdb example-unittest --owner postgres
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,23 @@
'use strict';

module.exports = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件不需要了吧?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现在egg是不是默认就使用了onerror的。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

内置一直都有 egg-onerror

@atian25 atian25 requested a review from jtyjty99999 June 12, 2017 05:43
@popomore
Copy link
Member

可以合了吗

@atian25 atian25 changed the title 新增sequelize-example feat: add sequelize example Jun 13, 2017
[![build][build]][build-url]
[![coverage][cover]][cover-url]

使用egg-sequelize插件的egg示例项目。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

中英文混排,前后加空格 使用 egg-sequelize 插件的 egg 示例项目。

[![build][build]][build-url]
[![coverage][cover]][cover-url]

The egg example project that uses egg-sequelize plugin.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加下 egg-sequelize 的链接, [egg-sequelize](http://....)

return class UserController extends app.Controller {
* posts() {
this.ctx.body = yield this.service.post.list(this.ctx.query);
* posts(ctx) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class 模式下,还是用 this.ctx 好点。

* posts() { const ctx = this.ctx; }
@iyuq
Copy link
Contributor Author

iyuq commented Jun 13, 2017

@atian25 改完了,再看看

# sequelize-example

The egg example project that uses egg-sequelize plugin.
The [egg][egg] example project that uses [egg-sequelize][egg-sequelize] plugin.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同名情况下,[egg][egg] 可以简写为 [egg]

@atian25
Copy link
Member

atian25 commented Jun 13, 2017

+1 , ci 过就合并

@atian25 atian25 merged commit 34792ce into eggjs:master Jun 13, 2017
@atian25
Copy link
Member

atian25 commented Jun 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants