Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
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
方斌
51business
Commits
96daae5b
Commit
96daae5b
authored
Nov 19, 2019
by
任国军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix course controller
parent
25d9ae8f
Pipeline
#16597
passed with stage
in 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
course_user.js
app/model/class/course_user.js
+4
-4
course_user.js
app/model/class/v1/course_user.js
+4
-4
No files found.
app/model/class/course_user.js
View file @
96daae5b
...
@@ -23,19 +23,19 @@ module.exports = app => {
...
@@ -23,19 +23,19 @@ module.exports = app => {
sex
:
STRING
,
sex
:
STRING
,
openid
:
STRING
,
openid
:
STRING
,
is_deleted
:
INTEGER
,
is_deleted
:
INTEGER
,
created_
time
:
{
created_
at
:
{
type
:
DATE
,
type
:
DATE
,
allowNull
:
true
,
allowNull
:
true
,
get
()
{
get
()
{
const
date
=
this
.
getDataValue
(
'created_
time
'
);
const
date
=
this
.
getDataValue
(
'created_
at
'
);
return
date
?
moment
(
date
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
undefined
;
return
date
?
moment
(
date
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
undefined
;
},
},
},
},
updated_
time
:
{
updated_
at
:
{
type
:
DATE
,
type
:
DATE
,
allowNull
:
true
,
allowNull
:
true
,
get
()
{
get
()
{
const
date
=
this
.
getDataValue
(
'updated_
time
'
);
const
date
=
this
.
getDataValue
(
'updated_
at
'
);
return
date
?
moment
(
date
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
undefined
;
return
date
?
moment
(
date
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
undefined
;
},
},
},
},
...
...
app/model/class/v1/course_user.js
View file @
96daae5b
...
@@ -23,19 +23,19 @@ module.exports = app => {
...
@@ -23,19 +23,19 @@ module.exports = app => {
sex
:
STRING
,
sex
:
STRING
,
openid
:
STRING
,
openid
:
STRING
,
is_deleted
:
INTEGER
,
is_deleted
:
INTEGER
,
created_
time
:
{
created_
at
:
{
type
:
DATE
,
type
:
DATE
,
allowNull
:
true
,
allowNull
:
true
,
get
()
{
get
()
{
const
date
=
this
.
getDataValue
(
'created_
time
'
);
const
date
=
this
.
getDataValue
(
'created_
at
'
);
return
date
?
moment
(
date
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
undefined
;
return
date
?
moment
(
date
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
undefined
;
},
},
},
},
updated_
time
:
{
updated_
at
:
{
type
:
DATE
,
type
:
DATE
,
allowNull
:
true
,
allowNull
:
true
,
get
()
{
get
()
{
const
date
=
this
.
getDataValue
(
'updated_
time
'
);
const
date
=
this
.
getDataValue
(
'updated_
at
'
);
return
date
?
moment
(
date
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
undefined
;
return
date
?
moment
(
date
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
undefined
;
},
},
},
},
...
...
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