Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陆宇天
/
tracking-backend
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ab88e178
authored
Jun 27, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:添加页面路径,进入时间,离开时间,页面名称
1 parent
d5b4f9dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
app/controller/track.js
app/model/track.js
app/service/trackService.js
app/controller/track.js
View file @
ab88e17
...
@@ -29,6 +29,10 @@ class TrackController extends Controller {
...
@@ -29,6 +29,10 @@ class TrackController extends Controller {
staffAvatar
:
{
type
:
'string'
,
required
:
false
},
staffAvatar
:
{
type
:
'string'
,
required
:
false
},
isMerchantStaffAdmin
:
{
type
:
'boolean'
,
required
:
false
},
isMerchantStaffAdmin
:
{
type
:
'boolean'
,
required
:
false
},
token
:
'string?'
,
token
:
'string?'
,
pageUrl
:
'string?'
,
pageName
:
'string?'
,
intoTime
:
'dateTime?'
,
leaveTime
:
'dateTime?'
,
},
},
},
},
// merchant_name: 'number?',
// merchant_name: 'number?',
...
...
app/model/track.js
View file @
ab88e17
'use strict'
;
'use strict'
;
module
.
exports
=
app
=>
{
module
.
exports
=
app
=>
{
const
{
INTEGER
,
STRING
,
BOOLEAN
}
=
app
.
Sequelize
;
const
{
INTEGER
,
STRING
,
BOOLEAN
,
DATE
}
=
app
.
Sequelize
;
const
Track
=
app
.
model
.
define
(
'info'
,
{
const
Track
=
app
.
model
.
define
(
'info'
,
{
id
:
{
id
:
{
...
@@ -25,7 +25,10 @@ module.exports = app => {
...
@@ -25,7 +25,10 @@ module.exports = app => {
staffAvatar
:
STRING
(
100
),
staffAvatar
:
STRING
(
100
),
isMerchantStaffAdmin
:
BOOLEAN
,
isMerchantStaffAdmin
:
BOOLEAN
,
token
:
STRING
(
100
),
token
:
STRING
(
100
),
pageUrl
:
STRING
(
100
),
pageName
:
STRING
(
100
),
intoTime
:
DATE
,
leaveTime
:
DATE
,
// info: STRING(255),
// info: STRING(255),
// // 公共模块
// // 公共模块
// merchant_name: STRING(10),
// merchant_name: STRING(10),
...
...
app/service/trackService.js
View file @
ab88e17
...
@@ -15,7 +15,7 @@ class TrackService extends Service {
...
@@ -15,7 +15,7 @@ class TrackService extends Service {
const
result
=
await
app
.
model
.
Track
.
bulkCreate
(
const
result
=
await
app
.
model
.
Track
.
bulkCreate
(
params
.
info
params
.
info
);
);
console
.
log
(
'result: '
,
result
);
//
console.log('result: ', result);
if
(
result
)
{
if
(
result
)
{
return
{
return
{
code
:
200
,
code
:
200
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment