Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
68fe90f1
Commit
68fe90f1
authored
Aug 11, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dao
parent
d2a848c7
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
50 additions
and
10 deletions
+50
-10
gsb-marketplat/app/base/api/impl/action/template.js
+3
-0
gsb-marketplat/app/base/db/impl/configmag/launchchannelDao.js
+8
-0
gsb-marketplat/app/base/db/impl/configmag/launchtypeDao.js
+8
-0
gsb-marketplat/app/base/db/impl/configmag/marketingsubjectDao.js
+8
-0
gsb-marketplat/app/base/db/models/configmag/marketingsubject.js
+1
-1
gsb-marketplat/app/base/service/impl/configmag/formsubmitrecordSve.js
+4
-4
gsb-marketplat/app/base/service/impl/template/templatelinkSve.js
+18
-4
gsb-marketplat/app/front/entry/public/apidoc/customer/template.md
+0
-1
No files found.
gsb-marketplat/app/base/api/impl/action/template.js
View file @
68fe90f1
...
...
@@ -39,6 +39,9 @@ class Template extends APIBase {
case
"editTemplateContent"
:
//修改模板内容
opResult
=
await
this
.
templateinfoSve
.
editTemplateContent
(
pobj
);
break
;
// case "getLinkConfigParams"://获取模板链接配置参数
// opResult = await this.templatelinkSve.getLinkConfigParams(pobj);
// break;
// case "updateSwitchStatus"://修改模板启用状态
// opResult = await this.templateinfoSve.updateSwitchStatus(pobj);
// break;
...
...
gsb-marketplat/app/base/db/impl/configmag/launchchannelDao.js
0 → 100644
View file @
68fe90f1
const
system
=
require
(
"../../../system"
);
const
Dao
=
require
(
"../../dao.base"
);
class
LaunchchannelDao
extends
Dao
{
constructor
(){
super
(
Dao
.
getModelName
(
LaunchchannelDao
));
}
}
module
.
exports
=
LaunchchannelDao
;
gsb-marketplat/app/base/db/impl/configmag/launchtypeDao.js
0 → 100644
View file @
68fe90f1
const
system
=
require
(
"../../../system"
);
const
Dao
=
require
(
"../../dao.base"
);
class
LaunchtypeDao
extends
Dao
{
constructor
(){
super
(
Dao
.
getModelName
(
LaunchtypeDao
));
}
}
module
.
exports
=
LaunchtypeDao
;
gsb-marketplat/app/base/db/impl/configmag/marketingsubjectDao.js
0 → 100644
View file @
68fe90f1
const
system
=
require
(
"../../../system"
);
const
Dao
=
require
(
"../../dao.base"
);
class
MarketingsubjectDao
extends
Dao
{
constructor
(){
super
(
Dao
.
getModelName
(
MarketingsubjectDao
));
}
}
module
.
exports
=
MarketingsubjectDao
;
gsb-marketplat/app/base/db/models/configmag/marketingsubject.js
View file @
68fe90f1
module
.
exports
=
(
sequelize
,
DataType
)
=>
{
return
sequelize
.
define
(
"
c_marketing_
subject"
,
{
return
sequelize
.
define
(
"
marketing
subject"
,
{
code
:
DataType
.
STRING
(
100
),
name
:
DataType
.
STRING
(
100
),
notes
:
DataType
.
STRING
(
255
),
...
...
gsb-marketplat/app/base/service/impl/configmag/formsubmitrecordSve.js
View file @
68fe90f1
...
...
@@ -2,9 +2,9 @@ const system = require("../../../system");
const
ServiceBase
=
require
(
"../../sve.base"
);
const
settings
=
require
(
"../../../../config/settings"
);
class
Form
info
Service
extends
ServiceBase
{
class
Form
submitrecord
Service
extends
ServiceBase
{
constructor
()
{
super
(
"configmag"
,
ServiceBase
.
getDaoName
(
Form
info
Service
));
super
(
"configmag"
,
ServiceBase
.
getDaoName
(
Form
submitrecord
Service
));
this
.
templateinfoDao
=
system
.
getObject
(
"db.template.templateinfoDao"
);
this
.
templatelinkDao
=
system
.
getObject
(
"db.template.templatelinkDao"
);
this
.
forminfoDao
=
system
.
getObject
(
"db.configmag.forminfoDao"
);
...
...
@@ -129,4 +129,4 @@ class ForminfoService extends ServiceBase {
}
}
module
.
exports
=
ForminfoService
;
\ No newline at end of file
module
.
exports
=
FormsubmitrecordService
;
\ No newline at end of file
gsb-marketplat/app/base/service/impl/template/templatelinkSve.js
View file @
68fe90f1
...
...
@@ -7,6 +7,9 @@ class TemplatelinkService extends ServiceBase {
this
.
templateLinkUrl
=
settings
.
templateLinkUrl
();
this
.
templateinfoDao
=
system
.
getObject
(
"db.template.templateinfoDao"
);
this
.
browsingrecordsDao
=
system
.
getObject
(
"db.template.browsingrecordsDao"
);
this
.
launchchannelDao
=
system
.
getObject
(
"db.configmag.launchchannelDao"
);
this
.
launchtypeDao
=
system
.
getObject
(
"db.configmag.launchtypeDao"
);
this
.
marketingsubjectDao
=
system
.
getObject
(
"db.configmag.marketingsubjectDao"
);
}
/**
* 获取模板链接配置参数
...
...
@@ -15,14 +18,25 @@ class TemplatelinkService extends ServiceBase {
async
getLinkConfigParams
(
pobj
){
var
ab
=
pobj
.
actionBody
;
var
xctx
=
pobj
.
xctx
;
var
res
=
{};
if
(
!
ab
){
return
system
.
getResultFail
(
-
100
,
"参数错误"
);
}
var
company_id
=
xctx
.
companyid
;
var
whereObj
=
{
company_id
:
company_id
};
//渠道主体
var
launchChannelList
=
await
this
.
launchchannelDao
.
model
.
findAll
({
attributes
:[
"id"
,
"code"
,
"name"
],
where
:
whereObj
,
raw
:
true
});
//业务参数
//投放方式
var
launchTypeList
=
await
this
.
launchtypeDao
.
model
.
findAll
({
attributes
:[
"id"
,
"code"
,
"name"
],
where
:
whereObj
,
raw
:
true
});
//营销主体
var
marketingSubjectList
=
await
this
.
marketingsubjectDao
.
model
.
findAll
({
attributes
:[
"id"
,
"code"
,
"name"
],
where
:
whereObj
,
raw
:
true
});
var
res
=
{
launchChannelList
:
launchChannelList
,
launchTypeList
:
launchTypeList
,
marketingSubjectList
:
marketingSubjectList
};
return
system
.
getResultSuccess
(
res
);
}
/**
...
...
gsb-marketplat/app/front/entry/public/apidoc/customer/template.md
View file @
68fe90f1
...
...
@@ -11,7 +11,6 @@
1.
[
获取文件上传配置信息
](
#getOssConfig
)
1.
[
根据链接参数获取模板链接信息
](
#getTemplateAndLinkInfo
)
## **<a name="createTemplate"> 创建模板</a>**
[
返回到目录
](
#menu
)
##### URL
...
...
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