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
5313abfa
Commit
5313abfa
authored
Nov 30, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ce2eacf8
Pipeline
#7278
passed with stages
in 1 minute and 27 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
things/nest-typeorm/src/dto/PageSettings.dto.ts
things/nest-typeorm/src/dto/PageSettings.dto.ts
+2
-2
things/nest-typeorm/src/dto/ReturnMessage.dto.ts
things/nest-typeorm/src/dto/ReturnMessage.dto.ts
+0
-1
things/nest-typeorm/src/entities/bases/TimeBase.entity.ts
things/nest-typeorm/src/entities/bases/TimeBase.entity.ts
+4
-0
No files found.
things/nest-typeorm/src/dto/PageSettings.dto.ts
View file @
5313abfa
...
...
@@ -6,13 +6,13 @@ export class PageSettingsDto {
@
IsOptional
()
@
IsPositive
()
@
IsInt
()
@
ApiProperty
({
description
:
'
第 n 页,从 1 开始
'
})
@
ApiProperty
({
description
:
'
第 n 页,从 1 开始
'
,
required
:
false
})
pageCount
:
number
;
@
IsOptional
()
@
IsPositive
()
@
IsInt
()
@
ApiProperty
({
description
:
'
每页显示的数量
'
})
@
ApiProperty
({
description
:
'
每页显示的数量
'
,
required
:
false
})
recordsPerPage
:
number
;
private
getRecordsPerPage
()
{
...
...
things/nest-typeorm/src/dto/ReturnMessage.dto.ts
View file @
5313abfa
import
{
ApiProperty
}
from
'
@nestjs/swagger
'
;
import
{
HttpException
}
from
'
@nestjs/common
'
;
import
{
User
}
from
'
../entities/User.entity
'
;
export
interface
BlankReturnMessage
{
statusCode
:
number
;
...
...
things/nest-typeorm/src/entities/bases/TimeBase.entity.ts
View file @
5313abfa
import
{
CreateDateColumn
,
DeleteDateColumn
,
UpdateDateColumn
}
from
'
typeorm
'
;
import
{
Exclude
}
from
'
class-transformer
'
;
import
{
PageSettingsDto
}
from
'
../../dto/PageSettings.dto
'
;
import
{
ApiProperty
}
from
'
@nestjs/swagger
'
;
export
interface
DeletionWise
{
deleteTime
?:
Date
;
...
...
@@ -8,14 +9,17 @@ export interface DeletionWise {
export
class
TimeBase
extends
PageSettingsDto
implements
DeletionWise
{
@
CreateDateColumn
({
select
:
false
})
@
ApiProperty
({
required
:
false
})
@
Exclude
()
createTime
:
Date
;
@
UpdateDateColumn
({
select
:
false
})
@
ApiProperty
({
required
:
false
})
@
Exclude
()
updateTime
:
Date
;
@
DeleteDateColumn
({
select
:
false
})
@
ApiProperty
({
required
:
false
})
@
Exclude
()
deleteTime
:
Date
;
...
...
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