Commit ab88e178 by luyt

feat:添加页面路径,进入时间,离开时间,页面名称

1 parent d5b4f9dc
...@@ -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?',
......
'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),
......
...@@ -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,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!