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
0a1a230b
Commit
0a1a230b
authored
Jul 11, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nest8
parent
464de6d2
Pipeline
#4067
passed with stages
in 2 minutes and 36 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
things/nest-koishijs/src/app.service.ts
things/nest-koishijs/src/app.service.ts
+2
-2
things/nest-koishijs/src/bot/bot.service.ts
things/nest-koishijs/src/bot/bot.service.ts
+3
-3
things/nest-typeorm/src/app.service.ts
things/nest-typeorm/src/app.service.ts
+3
-3
things/nest/src/app.service.ts
things/nest/src/app.service.ts
+3
-3
No files found.
things/nest-koishijs/src/app.service.ts
View file @
0a1a230b
import
{
Injectable
,
Logger
}
from
'
@nestjs/common
'
;
import
{
Injectable
,
Console
Logger
}
from
'
@nestjs/common
'
;
import
{
Connection
}
from
'
typeorm
'
;
import
{
InjectConnection
}
from
'
@nestjs/typeorm
'
;
import
{
BotService
}
from
'
./bot/bot.service
'
;
@
Injectable
()
export
class
AppService
extends
Logger
{
export
class
AppService
extends
Console
Logger
{
constructor
(
@
InjectConnection
(
'
app
'
)
private
db
:
Connection
,
...
...
things/nest-koishijs/src/bot/bot.service.ts
View file @
0a1a230b
import
{
Injectable
,
Logger
}
from
'
@nestjs/common
'
;
import
{
Injectable
,
Console
Logger
}
from
'
@nestjs/common
'
;
import
{
InjectConnection
}
from
'
@nestjs/typeorm
'
;
import
{
Connection
}
from
'
typeorm
'
;
import
{
User
}
from
'
../entities/User.entity
'
;
...
...
@@ -11,7 +11,7 @@ import { CQBot } from 'koishi-adapter-onebot';
const
__
=
typeof
adapter
;
// just for import
@
Injectable
()
export
class
BotService
extends
Logger
{
export
class
BotService
extends
Console
Logger
{
bot
:
App
;
botConfig
:
AppConfig
;
constructor
(
...
...
@@ -19,7 +19,7 @@ export class BotService extends Logger {
private
db
:
Connection
,
private
readonly
appService
:
AppService
,
)
{
super
(
'
bot
'
,
true
);
super
(
'
bot
'
);
this
.
initializeBot
();
}
async
initializeBot
()
{
...
...
things/nest-typeorm/src/app.service.ts
View file @
0a1a230b
import
{
Connection
}
from
'
typeorm
'
;
import
{
InjectConnection
}
from
'
@nestjs/typeorm
'
;
import
{
Injectable
,
Logger
}
from
'
@nestjs/common
'
;
import
{
Injectable
,
Console
Logger
}
from
'
@nestjs/common
'
;
@
Injectable
()
export
class
AppService
extends
Logger
{
export
class
AppService
extends
Console
Logger
{
constructor
(
@
InjectConnection
(
'
app
'
)
private
db
:
Connection
,
)
{
super
(
'
app
'
,
true
);
super
(
'
app
'
);
}
getHello
():
string
{
...
...
things/nest/src/app.service.ts
View file @
0a1a230b
import
{
Injectable
,
Logger
}
from
'
@nestjs/common
'
;
import
{
Injectable
,
Console
Logger
}
from
'
@nestjs/common
'
;
@
Injectable
()
export
class
AppService
extends
Logger
{
export
class
AppService
extends
Console
Logger
{
constructor
()
{
super
(
'
app
'
,
true
);
super
(
'
app
'
);
}
getHello
():
string
{
...
...
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