Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
qinhaitao
taobao-mini-template
Commits
8ac9ef94
Commit
8ac9ef94
authored
Nov 12, 2020
by
maggie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util参数编译
parent
e1c91c2d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
17 deletions
+32
-17
config.json
v2.0/compileServer/config.json
+25
-0
package.json
v2.0/compileServer/package.json
+2
-2
macro.njk
v2.0/compileServer/templates/macro.njk
+1
-1
yarn.lock
v2.0/compileServer/yarn.lock
+1
-13
test2.controller.ts
v2.0/src/controller/custom/test2.controller.ts
+3
-1
No files found.
v2.0/compileServer/config.json
View file @
8ac9ef94
...
@@ -772,6 +772,31 @@
...
@@ -772,6 +772,31 @@
"startDay"
,
"startDay"
,
"endDay"
"endDay"
]
]
},
{
"type"
:
"common"
,
"name"
:
"preUpdate"
,
"params"
:
[
{
"type"
:
"common"
,
"behave"
:
"update"
,
"name"
:
"updateVip"
,
"params"
:
[
"1"
,
"2"
]
},
{
"type"
:
"common"
,
"behave"
:
"update"
,
"name"
:
"updateSignTask"
},
{
"type"
:
"common"
,
"behave"
:
"update"
,
"name"
:
"updateOrderGoods"
}
]
}
}
],
],
"main"
:
[
"main"
:
[
...
...
v2.0/compileServer/package.json
View file @
8ac9ef94
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
"devDependencies"
:
{
"devDependencies"
:
{
"gulp"
:
"^4.0.2"
,
"gulp"
:
"^4.0.2"
,
"gulp-nunjucks-render"
:
"^2.2.3"
,
"gulp-nunjucks-render"
:
"^2.2.3"
,
"gulp-
rename"
:
"^2
.0.0"
,
"gulp-
prettier"
:
"^3
.0.0"
,
"gulp-
prettier"
:
"^3
.0.0"
"gulp-
rename"
:
"^2
.0.0"
},
},
"dependencies"
:
{
"dependencies"
:
{
"fs-extra"
:
"^9.0.1"
"fs-extra"
:
"^9.0.1"
...
...
v2.0/compileServer/templates/macro.njk
View file @
8ac9ef94
...
@@ -10,7 +10,7 @@ import { {%for service, service_item in type_item %}{{type|capitalize}}{{service
...
@@ -10,7 +10,7 @@ import { {%for service, service_item in type_item %}{{type|capitalize}}{{service
{%- for decorator in decorators %}
{%- for decorator in decorators %}
@{{ decorator.name }}
@{{ decorator.name }}
{%- if decorator.name == 'preCheck' or decorator.name == 'preUpdate' -%}
{%- if decorator.name == 'preCheck' or decorator.name == 'preUpdate' -%}
([{%- for param in decorator.params -%}{{param.name}}{%- if loop.last %}{% else %}, {% endif %}{%- endfor -%}])
([{%- for param in decorator.params -%}{{param.name}}{%- if
param.params %}({%- for utilParam in param.params -%}{{utilParam}}{%- if loop.last %}{% else %}, {% endif %}{%- endfor -%}){% endif %}{%- if
loop.last %}{% else %}, {% endif %}{%- endfor -%}])
{%- elif decorator.name == 'noCatch' or decorator.name == 'noCheckUser' -%}
{%- elif decorator.name == 'noCatch' or decorator.name == 'noCheckUser' -%}
{%- else -%}
{%- else -%}
([{%- for param in decorator.params -%}'{{ param }}'{%- if loop.last %}{% else %}, {% endif %}{%- endfor -%}])
([{%- for param in decorator.params -%}'{{ param }}'{%- if loop.last %}{% else %}, {% endif %}{%- endfor -%}])
...
...
v2.0/compileServer/yarn.lock
View file @
8ac9ef94
...
@@ -935,7 +935,7 @@ gulp-nunjucks-render@^2.2.3:
...
@@ -935,7 +935,7 @@ gulp-nunjucks-render@^2.2.3:
gulp-prettier@^3.0.0:
gulp-prettier@^3.0.0:
version "3.0.0"
version "3.0.0"
resolved "http
s://registry.npm.taobao.org/gulp-prettier/download
/gulp-prettier-3.0.0.tgz#21c7de272fc7528168af6086e8edae6a645168a8"
resolved "http
://registry.eazytec.com/repository/npm-eazytec/gulp-prettier/-
/gulp-prettier-3.0.0.tgz#21c7de272fc7528168af6086e8edae6a645168a8"
integrity sha1-IcfeJy/HUoFor2CG6O2uamRRaKg=
integrity sha1-IcfeJy/HUoFor2CG6O2uamRRaKg=
dependencies:
dependencies:
plugin-error "^1.0.1"
plugin-error "^1.0.1"
...
@@ -947,13 +947,6 @@ gulp-rename@^2.0.0:
...
@@ -947,13 +947,6 @@ gulp-rename@^2.0.0:
resolved "https://registry.npm.taobao.org/gulp-rename/download/gulp-rename-2.0.0.tgz#9bbc3962b0c0f52fc67cd5eaff6c223ec5b9cf6c"
resolved "https://registry.npm.taobao.org/gulp-rename/download/gulp-rename-2.0.0.tgz#9bbc3962b0c0f52fc67cd5eaff6c223ec5b9cf6c"
integrity sha1-m7w5YrDA9S/GfNXq/2wiPsW5z2w=
integrity sha1-m7w5YrDA9S/GfNXq/2wiPsW5z2w=
gulp-sequence@^1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/gulp-sequence/download/gulp-sequence-1.0.0.tgz#862f93e6503e67c350a42948fa666953cf88ba67"
integrity sha1-hi+T5lA+Z8NQpClI+mZpU8+Iumc=
dependencies:
thunks "^4.9.0"
gulp@^4.0.2:
gulp@^4.0.2:
version "4.0.2"
version "4.0.2"
resolved "https://registry.npm.taobao.org/gulp/download/gulp-4.0.2.tgz#543651070fd0f6ab0a0650c6a3e6ff5a7cb09caa"
resolved "https://registry.npm.taobao.org/gulp/download/gulp-4.0.2.tgz#543651070fd0f6ab0a0650c6a3e6ff5a7cb09caa"
...
@@ -2116,11 +2109,6 @@ through2@^3.0.0:
...
@@ -2116,11 +2109,6 @@ through2@^3.0.0:
inherits "^2.0.4"
inherits "^2.0.4"
readable-stream "2 || 3"
readable-stream "2 || 3"
thunks@^4.9.0:
version "4.9.6"
resolved "https://registry.npm.taobao.org/thunks/download/thunks-4.9.6.tgz#08f268ab32ad12b8e1838d2b819dbd7d9b3262a0"
integrity sha1-CPJoqzKtErjhg40rgZ29fZsyYqA=
time-stamp@^1.0.0:
time-stamp@^1.0.0:
version "1.1.0"
version "1.1.0"
resolved "https://registry.npm.taobao.org/time-stamp/download/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3"
resolved "https://registry.npm.taobao.org/time-stamp/download/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3"
...
...
v2.0/src/controller/custom/test2.controller.ts
View file @
8ac9ef94
/** @format */
/** @format */
import
{
services
,
checkParams
}
from
'../../decorator/common'
import
{
services
,
checkParams
,
preUpdate
}
from
'../../decorator/common'
import
{
updateVip
,
updateSignTask
,
updateOrderGoods
}
from
'../../utils/common/update'
import
customUtil
from
'../../utils/custom'
import
customUtil
from
'../../utils/custom'
import
{
resultsModel
}
from
'../../sdk'
import
{
resultsModel
}
from
'../../sdk'
import
{
CommonStatService
}
from
'../../service/common'
import
{
CommonStatService
}
from
'../../service/common'
...
@@ -24,6 +25,7 @@ export default class Test2Controller {
...
@@ -24,6 +25,7 @@ export default class Test2Controller {
* 统计数据
* 统计数据
*/
*/
@
checkParams
([
'activityId'
,
'startDay'
,
'endDay'
])
@
checkParams
([
'activityId'
,
'startDay'
,
'endDay'
])
@
preUpdate
([
updateVip
(
1
,
2
),
updateSignTask
,
updateOrderGoods
])
@
services
([
CommonStatService
])
@
services
([
CommonStatService
])
async
test2getStats
(
async
test2getStats
(
context
:
IContext
<
IParams
>
,
context
:
IContext
<
IParams
>
,
...
...
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