Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
translation-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinmingyuan
translation-server
Commits
72371793
Commit
72371793
authored
Jan 11, 2025
by
mingyard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:控制返回字段
parent
29639ffa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
txAsrRes.dto.ts
src/controller/auth/dto/res/txAsrRes.dto.ts
+7
-1
No files found.
src/controller/auth/dto/res/txAsrRes.dto.ts
View file @
72371793
import
{
ApiProperty
}
from
'@nestjs/swagger'
;
import
{
Type
}
from
'class-transformer'
;
import
{
Expose
,
Type
}
from
'class-transformer'
;
class
CredentialsDto
{
@
ApiProperty
({
...
...
@@ -7,17 +7,20 @@ class CredentialsDto {
example
:
'7eRLMGMgdgO3dz3AT3FoFffZmSi4iaVaa772328643dbf876ce3b26670de0028ah9qYwLfndpoPilupmpzO4bEQYzKylSjiQe8JwhR4p88AEvzX2tOTYESaw9bAOLZwC9vytsGv0-e2Zun3TuPCHHYA0M8oxN1c6kKEW21071QK0Vi7XRErouyjx0HBBsVsE19JMAQqwm9CKziLyooOCWB_DqV0UkhGKJS4treZSXT3osKkqrokS61b52XxTQIh2HvdaoQy9UHob-TXMzDtkG24wJlpeMFttM4tvk3KOWBxp1gdinhKjZcFuxuqBRVAlrX5EO5jWslcZjNjnwKPphzGAoWMcAJkVacXnCpqWXPD7ghrJa-Y7VVuCBSU2By3XMG5Jp-W-hZAl-H0KUpeow'
,
})
@
Expose
()
Token
:
string
;
@
ApiProperty
({
description
:
'临时凭证'
,
example
:
'AKIDotjS9M7qTbyk8AIZ3T8mnPXqX5MNVilKyFXe4H280hBPLyUEvTsT6_2TiCsbt5Bu'
,
})
@
Expose
()
TmpSecretId
:
string
;
@
ApiProperty
({
description
:
'临时凭证'
,
example
:
'0/PGctEjFv4lartXTmNCvi4hEn9vd1MBGG5HVdb2SWE='
,
})
@
Expose
()
TmpSecretKey
:
string
;
}
...
...
@@ -27,12 +30,14 @@ export class TxAsrResDto {
type
:
Number
,
example
:
1708249279
,
})
@
Expose
()
ExpiredTime
:
number
;
@
ApiProperty
({
description
:
'过期时间'
,
type
:
String
,
example
:
'2024-02-18T09:41:19Z'
,
})
@
Expose
()
Expiration
:
string
;
@
ApiProperty
({
...
...
@@ -46,6 +51,7 @@ export class TxAsrResDto {
TmpSecretKey
:
'0/PGctEjFv4lartXTmNCvi4hEn9vd1MBGG5HVdb2SWE='
,
},
})
@
Expose
()
@
Type
(()
=>
CredentialsDto
)
Credentials
:
CredentialsDto
;
...
...
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