Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
cxcy-scoresheet
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
MathWeb
cxcy-scoresheet
Commits
b3b07c6c
Commit
b3b07c6c
authored
May 11, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solved
parent
13105d63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
report.md.mustache
report.md.mustache
+4
-4
src/app.controller.ts
src/app.controller.ts
+4
-1
No files found.
report.md.mustache
View file @
b3b07c6c
...
...
@@ -17,23 +17,23 @@
## 项目经历
{{#
projects
}}
*
{{
.
name
}}
*
{{
name
}}
{{/
projects
}}
## 论文
{{#
theses
}}
*
{{
.
name
}}
*
{{
name
}}
{{/
theses
}}
## 专利
{{#
patents
}}
*
{{
.
name
}}
*
{{
name
}}
{{/
patents
}}
## 竞赛
{{#
competitions
}}
*
{{
.
name
}}
*
{{
name
}}
{{/
competitions
}}
\ No newline at end of file
src/app.controller.ts
View file @
b3b07c6c
...
...
@@ -12,9 +12,12 @@ export class AppController {
try
{
data
=
JSON
.
parse
(
dataRaw
);
}
catch
(
e
)
{
res
.
status
(
400
).
end
(
'
bad JSON
'
);
res
.
status
(
400
).
end
(
{
message
:
'
bad JSON
'
}
);
return
;
}
if
(
!
data
||
!
data
.
id
||
!
data
.
name
)
{
res
.
status
(
400
).
end
({
message
:
'
bad student data
'
});
}
const
pdf
=
await
this
.
appService
.
getPdf
(
data
);
res
.
set
({
'
Content-Type
'
:
'
application/pdf
'
,
...
...
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