Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init-things
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
init-things
Commits
19427424
Commit
19427424
authored
Jun 13, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d3be7160
Pipeline
#3638
passed with stages
in 1 minute and 27 seconds
Changes
12
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
12 additions
and
13 deletions
+12
-13
things/nest-koishijs/src/bot/bot.service.ts
things/nest-koishijs/src/bot/bot.service.ts
+2
-2
things/nest-koishijs/src/config.ts
things/nest-koishijs/src/config.ts
+2
-2
things/nest-koishijs/src/entities/Group.entity.ts
things/nest-koishijs/src/entities/Group.entity.ts
+1
-1
things/nest-koishijs/src/entities/QQIDBase.entity.ts
things/nest-koishijs/src/entities/QQIDBase.entity.ts
+1
-1
things/nest-koishijs/src/entities/TimeBase.entity.ts
things/nest-koishijs/src/entities/TimeBase.entity.ts
+0
-0
things/nest-koishijs/src/entities/User.entity.ts
things/nest-koishijs/src/entities/User.entity.ts
+1
-1
things/nest-koishijs/src/main.ts
things/nest-koishijs/src/main.ts
+0
-1
things/nest-typeorm/src/config.ts
things/nest-typeorm/src/config.ts
+2
-3
things/nest-typeorm/src/entities/TimeBase.entity.ts
things/nest-typeorm/src/entities/TimeBase.entity.ts
+0
-0
things/nest-typeorm/src/entities/User.entity.ts
things/nest-typeorm/src/entities/User.entity.ts
+3
-0
things/nest-typeorm/src/main.ts
things/nest-typeorm/src/main.ts
+0
-1
things/nest/src/main.ts
things/nest/src/main.ts
+0
-1
No files found.
things/nest-koishijs/src/bot/bot.service.ts
View file @
19427424
...
@@ -2,8 +2,8 @@ import { Injectable } from '@nestjs/common';
...
@@ -2,8 +2,8 @@ import { Injectable } from '@nestjs/common';
import
{
InjectConnection
}
from
'
@nestjs/typeorm
'
;
import
{
InjectConnection
}
from
'
@nestjs/typeorm
'
;
import
{
Connection
}
from
'
typeorm
'
;
import
{
Connection
}
from
'
typeorm
'
;
import
{
BotLogger
}
from
'
./bot.logger
'
;
import
{
BotLogger
}
from
'
./bot.logger
'
;
import
{
User
}
from
'
../entities/User
'
;
import
{
User
}
from
'
../entities/User
.entity
'
;
import
{
Group
}
from
'
../entities/Group
'
;
import
{
Group
}
from
'
../entities/Group
.entity
'
;
import
{
App
,
AppConfig
}
from
'
koishi
'
;
import
{
App
,
AppConfig
}
from
'
koishi
'
;
import
{
AppService
}
from
'
../app.service
'
;
import
{
AppService
}
from
'
../app.service
'
;
import
*
as
koishiCommonPlugin
from
'
koishi-plugin-common
'
;
import
*
as
koishiCommonPlugin
from
'
koishi-plugin-common
'
;
...
...
things/nest-koishijs/src/config.ts
View file @
19427424
import
{
TypeOrmModuleOptions
}
from
'
@nestjs/typeorm
'
;
import
{
TypeOrmModuleOptions
}
from
'
@nestjs/typeorm
'
;
import
{
User
}
from
'
./entities/User
'
;
import
{
User
}
from
'
./entities/User
.entity
'
;
import
{
Group
}
from
'
./entities/Group
'
;
import
{
Group
}
from
'
./entities/Group
.entity
'
;
export
function
dbConfig
()
{
export
function
dbConfig
()
{
return
{
return
{
...
...
things/nest-koishijs/src/entities/Group.ts
→
things/nest-koishijs/src/entities/Group.
entity.
ts
View file @
19427424
import
{
QQIDBase
}
from
'
./QQIDBase
'
;
import
{
QQIDBase
}
from
'
./QQIDBase
.entity
'
;
import
{
Entity
}
from
'
typeorm
'
;
import
{
Entity
}
from
'
typeorm
'
;
@
Entity
()
@
Entity
()
...
...
things/nest-koishijs/src/entities/QQIDBase.ts
→
things/nest-koishijs/src/entities/QQIDBase.
entity.
ts
View file @
19427424
import
{
TimeBase
}
from
'
./TimeBase
'
;
import
{
TimeBase
}
from
'
./TimeBase
.entity
'
;
import
{
Column
,
Index
,
PrimaryColumn
}
from
'
typeorm
'
;
import
{
Column
,
Index
,
PrimaryColumn
}
from
'
typeorm
'
;
export
class
QQIDBase
extends
TimeBase
{
export
class
QQIDBase
extends
TimeBase
{
...
...
things/nest-koishijs/src/entities/TimeBase.ts
→
things/nest-koishijs/src/entities/TimeBase.
entity.
ts
View file @
19427424
File moved
things/nest-koishijs/src/entities/User.ts
→
things/nest-koishijs/src/entities/User.
entity.
ts
View file @
19427424
import
{
QQIDBase
}
from
'
./QQIDBase
'
;
import
{
QQIDBase
}
from
'
./QQIDBase
.entity
'
;
import
{
Column
,
Entity
,
Index
}
from
'
typeorm
'
;
import
{
Column
,
Entity
,
Index
}
from
'
typeorm
'
;
@
Entity
()
@
Entity
()
...
...
things/nest-koishijs/src/main.ts
View file @
19427424
...
@@ -10,7 +10,6 @@ async function bootstrap() {
...
@@ -10,7 +10,6 @@ async function bootstrap() {
.
setTitle
(
'
app
'
)
.
setTitle
(
'
app
'
)
.
setDescription
(
'
The app
'
)
.
setDescription
(
'
The app
'
)
.
setVersion
(
'
1.0
'
)
.
setVersion
(
'
1.0
'
)
.
addTag
(
'
app-tag
'
)
.
build
();
.
build
();
const
document
=
SwaggerModule
.
createDocument
(
app
,
documentConfig
);
const
document
=
SwaggerModule
.
createDocument
(
app
,
documentConfig
);
...
...
things/nest-typeorm/src/config.ts
View file @
19427424
import
{
TypeOrmModuleOptions
}
from
'
@nestjs/typeorm
'
;
import
{
TypeOrmModuleOptions
}
from
'
@nestjs/typeorm
'
;
import
{
User
}
from
'
./entities/User
'
;
import
{
User
}
from
'
./entities/User.entity
'
;
import
{
Group
}
from
'
./entities/Group
'
;
export
function
dbConfig
()
{
export
function
dbConfig
()
{
return
{
return
{
...
@@ -15,7 +14,7 @@ export function typeormConfig(): TypeOrmModuleOptions {
...
@@ -15,7 +14,7 @@ export function typeormConfig(): TypeOrmModuleOptions {
return
{
return
{
name
:
'
app
'
,
name
:
'
app
'
,
type
:
'
mysql
'
,
type
:
'
mysql
'
,
entities
:
[
User
,
Group
],
// entities here
entities
:
[
User
],
// entities here
synchronize
:
true
,
synchronize
:
true
,
...
dbConfig
(),
...
dbConfig
(),
};
};
...
...
things/nest-typeorm/src/entities/TimeBase.ts
→
things/nest-typeorm/src/entities/TimeBase.
entity.
ts
View file @
19427424
File moved
things/nest-typeorm/src/entities/User.ts
→
things/nest-typeorm/src/entities/User.
entity.
ts
View file @
19427424
import
{
TimeBase
}
from
'
./TimeBase
'
;
import
{
TimeBase
}
from
'
./TimeBase
.entity
'
;
export
class
User
extends
TimeBase
{}
export
class
User
extends
TimeBase
{}
things/nest-typeorm/src/main.ts
View file @
19427424
...
@@ -10,7 +10,6 @@ async function bootstrap() {
...
@@ -10,7 +10,6 @@ async function bootstrap() {
.
setTitle
(
'
app
'
)
.
setTitle
(
'
app
'
)
.
setDescription
(
'
The app
'
)
.
setDescription
(
'
The app
'
)
.
setVersion
(
'
1.0
'
)
.
setVersion
(
'
1.0
'
)
.
addTag
(
'
app-tag
'
)
.
build
();
.
build
();
const
document
=
SwaggerModule
.
createDocument
(
app
,
documentConfig
);
const
document
=
SwaggerModule
.
createDocument
(
app
,
documentConfig
);
...
...
things/nest/src/main.ts
View file @
19427424
...
@@ -10,7 +10,6 @@ async function bootstrap() {
...
@@ -10,7 +10,6 @@ async function bootstrap() {
.
setTitle
(
'
app
'
)
.
setTitle
(
'
app
'
)
.
setDescription
(
'
The app
'
)
.
setDescription
(
'
The app
'
)
.
setVersion
(
'
1.0
'
)
.
setVersion
(
'
1.0
'
)
.
addTag
(
'
app-tag
'
)
.
build
();
.
build
();
const
document
=
SwaggerModule
.
createDocument
(
app
,
documentConfig
);
const
document
=
SwaggerModule
.
createDocument
(
app
,
documentConfig
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment