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
dbd390ad
Commit
dbd390ad
authored
Nov 17, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ebe91c82
Pipeline
#6881
passed with stages
in 1 minute and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
things/nest-typeorm/src/entities/bases/IdBase.entity.ts
things/nest-typeorm/src/entities/bases/IdBase.entity.ts
+2
-3
things/nest-typeorm/src/utility/pipes.ts
things/nest-typeorm/src/utility/pipes.ts
+1
-1
No files found.
things/nest-typeorm/src/entities/bases/IdBase.entity.ts
View file @
dbd390ad
...
...
@@ -8,7 +8,7 @@ import {
import
{
IdWise
}
from
'
../interfaces/wises
'
;
import
{
ApiProperty
}
from
'
@nestjs/swagger
'
;
import
{
applyQueryProperty
}
from
'
../utility/query
'
;
import
{
NotChangeable
}
from
'
../decorators/transform
'
;
import
{
NotChangeable
,
NotWritable
}
from
'
../decorators/transform
'
;
import
{
IsInt
,
IsOptional
,
IsPositive
}
from
'
class-validator
'
;
import
{
BigintTransformer
}
from
'
../utility/bigint-transform
'
;
...
...
@@ -16,8 +16,7 @@ export class IdBase extends DeletionBase implements IdWise {
@
Generated
(
'
increment
'
)
@
Column
(
'
int8
'
,
{
primary
:
true
,
transformer
:
new
BigintTransformer
()
})
@
ApiProperty
({
description
:
'
编号
'
,
required
:
false
})
@
NotChangeable
()
@
IsOptional
()
@
NotWritable
()
@
IsInt
()
@
IsPositive
()
id
:
number
;
...
...
things/nest-typeorm/src/utility/pipes.ts
View file @
dbd390ad
...
...
@@ -7,7 +7,7 @@ export const CreatePipe = new ValidationPipe({
export
const
GetPipe
=
new
ValidationPipe
({
transform
:
true
,
transformOptions
:
{
groups
:
[
'
r
'
]
},
transformOptions
:
{
groups
:
[
'
r
'
]
,
enableImplicitConversion
:
true
},
skipMissingProperties
:
true
,
skipNullProperties
:
true
,
skipUndefinedProperties
:
true
,
...
...
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