Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MajorBook - Team202
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LeeYongJae
MajorBook - Team202
Merge requests
!20
Transaction 추가 및 로그인, 회원가입 validate 적용, backend api 라우터 정리
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Transaction 추가 및 로그인, 회원가입 validate 적용, backend api 라우터 정리
transaction
into
master
Overview
0
Commits
4
Pipelines
0
Changes
17
Merged
LeeYongJae
requested to merge
transaction
into
master
5 years ago
Overview
0
Commits
4
Pipelines
0
Changes
17
Expand
backend 전체적인 부분과 frontend의 로그인/회원가입 최종 수정입니다.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
d01e2297
4 commits,
5 years ago
17 files
+
548
−
331
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
17
Search (e.g. *.vue) (Ctrl+P)
backend/models/Book.js
+
0
−
31
Options
@@ -9,40 +9,9 @@ const BookSchema = new Schema({
major
:
{
type
:
String
},
type
:
{
type
:
String
},
src
:
{
type
:
String
},
seller
:
[
{
seller_id
:
{
type
:
String
},
on_transaction
:
{
type
:
Boolean
}
}
],
stock
:
{
type
:
Number
}
});
BookSchema
.
statics
.
create
=
function
(
Book_info
)
{
const
{
title
,
grade
,
major
,
type
,
src
,
stock
,
seller
:
[]
}
=
Book_info
;
const
Book
=
new
this
({
title
,
grade
,
major
,
type
,
src
,
stock
,
seller
:
[]
});
// return the Promise
return
Book
.
save
();
};
autoInc
.
initialize
(
mongoose
.
connection
);
BookSchema
.
plugin
(
autoInc
.
plugin
,
"
Book
"
);
Loading