Skip to content

Commit

Permalink
添加脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerwzy committed Sep 19, 2017
1 parent 3d3c68c commit d86846c
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
41 changes: 41 additions & 0 deletions scripts/20.购药相关.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash
author='walker'
projectname='Homedoctor'
passkeys='code,flag,message'
fileuri='/Users/walker/Desktop/index.html'
debug=true
verbose=false
modulename='taskDrugOrder'
models=(
#创建购药订单
'modelDrugOrderInfo,modelDrugOrderBuyListItem'
#购药订单详情
'modelDrugOrderInfo,modelDrugOrderBuyListItem'
#购药订单列表
'modelDrugOrderInfo,modelDrugOrderBuyListItem'
#查询购药订单物流信息
'modelDrugExpressInfo,modelDrugExpressListItem'
#删除购药订单信息
#取消未支付购药订单
)

for model in ${models[@]}; do
types=${types}${model},
done
types=${types}

if [ "$debug" = true ] ; then
enableDebug='--debug'
fi

if [ "$verbose" = true ] ; then
enableVerbose='--verbose'
fi

./app.js ${enableVerbose} ${enableDebug} \
-C ${types} \
-P ${passkeys} \
-f ${fileuri} \
-a ${author} \
-m ${modulename} \
-j ${projectname}
33 changes: 33 additions & 0 deletions scripts/21.处方相关.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
author='walker'
projectname='Homedoctor'
passkeys='code,flag,message'
fileuri='/Users/walker/Desktop/index.html'
debug=true
verbose=false
modulename='taskPrescription'
models=(
#处方详情
'modelPrescriptionInfo,modelPrescriptionDrugListItem'
)

for model in ${models[@]}; do
types=${types}${model},
done
types=${types}

if [ "$debug" = true ] ; then
enableDebug='--debug'
fi

if [ "$verbose" = true ] ; then
enableVerbose='--verbose'
fi

./app.js ${enableVerbose} ${enableDebug} \
-C ${types} \
-P ${passkeys} \
-f ${fileuri} \
-a ${author} \
-m ${modulename} \
-j ${projectname}

0 comments on commit d86846c

Please sign in to comment.