From 9d3dfb83b1626c532d0210f3193e42453f70d105 Mon Sep 17 00:00:00 2001 From: DennySORA Date: Wed, 19 Feb 2020 17:49:18 +0800 Subject: [PATCH 1/2] Fix Create Novel_Chapter name UNIQUE SQL --- infrastructure/database/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/database/create.go b/infrastructure/database/create.go index 3109eb9..da4fe34 100644 --- a/infrastructure/database/create.go +++ b/infrastructure/database/create.go @@ -58,7 +58,7 @@ func createSQLite() (*sql.DB, error) { Novel_ID INTEGER NOT NULL, Episode INTEGER NOT NULL, Chapter INTEGER NOT NULL, - Name TEXT NOT NULL UNIQUE + Name TEXT NOT NULL ); `, From 3e4df373393be1aeaacb95d04d785919eeea26c8 Mon Sep 17 00:00:00 2001 From: DennySORA Date: Wed, 19 Feb 2020 17:56:33 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 302071b..742c3b3 100644 --- a/README.md +++ b/README.md @@ -58,9 +58,9 @@ http://127.0.0.1:8223/create/novel?name=Test #### Create chapter ``` -http://127.0.0.1:8223/create/chapter?name=Testid=Test&ep=0&chapter=0 +http://127.0.0.1:8223/create/chapter?name=Test&id=Test&ep=0&chapter=0 ``` -SP. **id** +SP. **id is create novel name** 1. name is any name. 2. id name need exist in Novel. 3. ep is any number(int).