Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scilla-components
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
scilla-components
Commits
61292177
Commit
61292177
authored
Apr 19, 2019
by
Stepheno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(change the api component params to dynamic)
parent
9b7bd77a
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
64 additions
and
64 deletions
+64
-64
SampleApi.ts
src/net/SampleApi.ts
+2
-2
SamplePollingApi.ts
src/net/SamplePollingApi.ts
+2
-2
AjaxElementComponent.ts
src/net/api/hdtool/base/AjaxElementComponent.ts
+3
-3
DoJoinComponent.ts
src/net/api/hdtool/base/DoJoinComponent.ts
+8
-8
GetOrderStatusComponent.ts
src/net/api/hdtool/base/GetOrderStatusComponent.ts
+2
-2
PrizeDetailComponent.ts
src/net/api/hdtool/base/PrizeDetailComponent.ts
+4
-4
SubCreditsStatusComponent.ts
src/net/api/hdtool/base/SubCreditsStatusComponent.ts
+2
-2
DatapashComponent.ts
src/net/api/hdtool/game/DatapashComponent.ts
+4
-4
GetNgameStartStatusComponent.ts
src/net/api/hdtool/game/GetNgameStartStatusComponent.ts
+2
-2
NgameManySubmitComponent.ts
src/net/api/hdtool/game/NgameManySubmitComponent.ts
+6
-6
NgameSubmitComponent.ts
src/net/api/hdtool/game/NgameSubmitComponent.ts
+6
-6
ResurrectionComponent.ts
src/net/api/hdtool/game/ResurrectionComponent.ts
+2
-2
ResurrectionStatusComponent.ts
src/net/api/hdtool/game/ResurrectionStatusComponent.ts
+3
-3
GetGameOrderInfoComponent.ts
src/net/api/hdtool/preLottery/GetGameOrderInfoComponent.ts
+2
-2
GetGameSubmitComponent.ts
src/net/api/hdtool/preLottery/GetGameSubmitComponent.ts
+3
-3
CheckOutAnswerComponent.ts
src/net/api/hdtool/question/CheckOutAnswerComponent.ts
+3
-3
GetQuestionComponent.ts
src/net/api/hdtool/question/GetQuestionComponent.ts
+2
-2
QuestionSubmitComponent.ts
src/net/api/hdtool/question/QuestionSubmitComponent.ts
+3
-3
AjaxThroughInfoComponent.ts
src/net/api/hdtool/throughGame/AjaxThroughInfoComponent.ts
+3
-3
ThroughSubmitComponent.ts
src/net/api/hdtool/throughGame/ThroughSubmitComponent.ts
+2
-2
index.ts
src/net/index.ts
+0
-0
No files found.
src/net/SampleApi.ts
View file @
61292177
...
...
@@ -4,7 +4,7 @@
* 简单的api组件
*/
import
{
utils
}
from
'scilla'
import
{
utils
,
dynamic
}
from
'scilla'
import
ApiComponent
from
"./ApiComponent"
;
import
{
callApi
}
from
"./webService"
;
...
...
@@ -13,7 +13,7 @@ export default class SampleApi extends ApiComponent {
name
:
string
;
uri
:
string
;
method
:
string
=
'POST'
;
params
:
any
=
{}
;
params
:
dynamic
;
async
callApi
(
name
,
paramsInput
,
...
args
){
if
(
this
.
name
==
name
){
...
...
src/net/SamplePollingApi.ts
View file @
61292177
...
...
@@ -4,7 +4,7 @@
* 简单的api组件
*/
import
{
utils
}
from
'scilla'
import
{
utils
,
dynamic
}
from
'scilla'
import
ApiComponent
from
"./ApiComponent"
;
import
{
callApi
,
polling
}
from
"./webService"
;
...
...
@@ -14,7 +14,7 @@ export default class SamplePollingApi extends ApiComponent {
successValues
:
any
[];
uri
:
string
;
method
:
string
=
'GET'
;
params
:
any
=
{}
;
params
:
dynamic
;
maxTimes
:
number
=
5
;
delay
:
number
=
500
;
...
...
src/net/api/hdtool/base/AjaxElementComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 获取渲染数据
...
...
@@ -11,9 +11,9 @@ export default class AjaxElementComponent extends SampleApi {
//请求方式
method
:
string
=
'GET'
;
//duiba活动ID
duibaId
:
string
;
duibaId
:
dynamic
;
//入库活动ID
activityId
:
string
;
activityId
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
duibaId
:
this
.
duibaId
,
activityId
:
this
.
activityId
});
...
...
src/net/api/hdtool/base/DoJoinComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 获取渲染数据
...
...
@@ -11,19 +11,19 @@ export default class DoJoinComponent extends SampleApi {
//请求方式
method
:
string
=
'GET'
;
//入库活动ID
activityId
:
string
;
activityId
:
dynamic
;
//token
token
:
string
;
token
:
dynamic
;
//再来一次订单ID
againOrderId
:
string
;
againOrderId
:
dynamic
;
//活动类型
activityType
:
string
;
activityType
:
dynamic
;
//用户ID
consumerId
:
string
;
consumerId
:
dynamic
;
//积分
credits
:
number
;
credits
:
dynamic
;
//分数 分段发奖
score
:
number
;
score
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
...
...
src/net/api/hdtool/base/GetOrderStatusComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 查询订单状态
...
...
@@ -11,7 +11,7 @@ export default class GetOrderStatusComponent extends SampleApi {
//请求方式
method
:
string
=
'POST'
;
//订单ID
orderId
:
string
;
orderId
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
orderId
:
this
.
orderId
});
...
...
src/net/api/hdtool/base/PrizeDetailComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 查询奖品信息
...
...
@@ -11,11 +11,11 @@ export default class PrizeDetailComponent extends SampleApi {
//请求方式
method
:
string
=
'GET'
;
//
appItemId
:
string
;
appItemId
:
dynamic
;
//
itemId
:
string
;
itemId
:
dynamic
;
//
appId
:
string
;
appId
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
appItemId
:
this
.
appItemId
,
itemId
:
this
.
itemId
,
appId
:
this
.
appId
});
...
...
src/net/api/hdtool/base/SubCreditsStatusComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SamplePollingApi
from
"../../../SamplePollingApi"
;
export
default
class
SubCreditsStatusComponent
extends
SamplePollingApi
{
...
...
@@ -9,7 +9,7 @@ export default class SubCreditsStatusComponent extends SamplePollingApi {
//请求方式
method
:
string
=
'POST'
;
//订单ID
orderId
:
string
;
orderId
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
orderId
:
this
.
orderId
});
...
...
src/net/api/hdtool/game/DatapashComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
export
default
class
DatapashComponent
extends
SampleApi
{
...
...
@@ -9,11 +9,11 @@ export default class DatapashComponent extends SampleApi {
//请求方式
method
:
string
=
'POST'
;
//订单ID
orderId
:
string
;
orderId
:
dynamic
;
//防作弊数据
dynamicData
:
any
;
dynamicData
:
dynamic
;
//duiba活动ID
duibaId
:
any
;
duibaId
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
orderId
:
this
.
orderId
,
duibaId
:
this
.
duibaId
,
dynamicData
:
this
.
dynamicData
});
...
...
src/net/api/hdtool/game/GetNgameStartStatusComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SamplePollingApi
from
"../../../SamplePollingApi"
;
/**
* 查询游戏开始订单状态
...
...
@@ -11,7 +11,7 @@ export default class GetNgameStartStatusComponent extends SamplePollingApi {
//请求方式
method
:
string
=
'POST'
;
//订单ID
orderId
:
string
;
orderId
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
orderId
:
this
.
orderId
});
...
...
src/net/api/hdtool/game/NgameManySubmitComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 游戏提交成绩接口
...
...
@@ -11,15 +11,15 @@ export default class NgameManySubmitComponent extends SampleApi {
//请求方式
method
:
string
=
'POST'
;
//订单ID
orderId
:
string
;
orderId
:
dynamic
;
//分数
score
:
string
;
score
:
dynamic
;
//无用
gameData
:
any
;
gameData
:
dynamic
;
//签名
sgin
:
string
;
sgin
:
dynamic
;
//防作弊数据
dynamicData
:
any
;
dynamicData
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
...
...
src/net/api/hdtool/game/NgameSubmitComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 游戏提交成绩接口
...
...
@@ -11,15 +11,15 @@ export default class NgameSubmitComponent extends SampleApi {
//请求方式
method
:
string
=
'POST'
;
//订单ID
orderId
:
string
;
orderId
:
dynamic
;
//分数
score
:
string
;
score
:
dynamic
;
//无用
gameData
:
any
;
gameData
:
dynamic
;
//签名
sgin
:
string
;
sgin
:
dynamic
;
//防作弊数据
dynamicData
:
any
;
dynamicData
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
...
...
src/net/api/hdtool/game/ResurrectionComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 游戏复活接口
...
...
@@ -11,7 +11,7 @@ export default class ResurrectionComponent extends SampleApi {
//请求方式
method
:
string
=
'POST'
;
//订单ID
orderId
:
string
;
orderId
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
orderId
:
this
.
orderId
});
...
...
src/net/api/hdtool/game/ResurrectionStatusComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SamplePollingApi
from
"../../../SamplePollingApi"
;
/**
* 查询复活状态
...
...
@@ -11,9 +11,9 @@ export default class ResurrectionStatusComponent extends SamplePollingApi {
//请求方式
method
:
string
=
'POST'
;
//doJoin订单ID
orderId
:
string
;
orderId
:
dynamic
;
//resurrec订单ID
resurrecOrderId
:
string
;
resurrecOrderId
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
orderId
:
this
.
orderId
,
resurrecOrderId
:
this
.
resurrecOrderId
});
...
...
src/net/api/hdtool/preLottery/GetGameOrderInfoComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SamplePollingApi
from
"../../../SamplePollingApi"
;
/**
* 查询前置开奖结果
...
...
@@ -11,7 +11,7 @@ export default class GetGameOrderInfoComponent extends SamplePollingApi {
//请求方式
method
:
string
=
'POST'
;
//订单ID
orderId
:
string
;
orderId
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
orderId
:
this
.
orderId
});
...
...
src/net/api/hdtool/preLottery/GetGameSubmitComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 前置开奖提交成绩接口
...
...
@@ -11,9 +11,9 @@ export default class GetGameSubmitComponent extends SampleApi {
//请求方式
method
:
string
=
'POST'
;
//订单ID
orderId
:
string
;
orderId
:
dynamic
;
//价值
facePrice
:
number
;
facePrice
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
orderId
:
this
.
orderId
,
facePrice
:
this
.
facePrice
});
...
...
src/net/api/hdtool/question/CheckOutAnswerComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 检查题目答案是否正确
...
...
@@ -11,9 +11,9 @@ export default class CheckOutAnswerComponent extends SampleApi {
//请求方式
method
:
string
=
'GET'
;
//订单ID
orderId
:
string
;
orderId
:
dynamic
;
//答案
answerData
:
string
;
answerData
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
orderId
:
this
.
orderId
,
answerData
:
this
.
answerData
});
...
...
src/net/api/hdtool/question/GetQuestionComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 获取题目数据
...
...
@@ -11,7 +11,7 @@ export default class GetQuestionComponent extends SampleApi {
//请求方式
method
:
string
=
'GET'
;
//入库活动ID
activityId
:
string
;
activityId
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
activityId
:
this
.
activityId
});
...
...
src/net/api/hdtool/question/QuestionSubmitComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 获取题目数据
...
...
@@ -11,9 +11,9 @@ export default class QuestionSubmitComponent extends SampleApi {
//请求方式
method
:
string
=
'POST'
;
//doJoin订单ID
orderId
:
string
;
orderId
:
dynamic
;
//答案
answerData
:
string
;
answerData
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
orderId
:
this
.
orderId
,
answerData
:
this
.
answerData
});
...
...
src/net/api/hdtool/throughGame/AjaxThroughInfoComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 获取渲染数据
...
...
@@ -11,9 +11,9 @@ export default class AjaxThroughInfoComponent extends SampleApi {
//请求方式
method
:
string
=
'GET'
;
//duiba活动ID
duibaId
:
string
;
duibaId
:
dynamic
;
//关卡ID
throughId
:
string
;
throughId
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
duibaId
:
this
.
duibaId
,
throughId
:
this
.
throughId
});
...
...
src/net/api/hdtool/throughGame/ThroughSubmitComponent.ts
View file @
61292177
import
{
utils
}
from
"scilla"
;
import
{
utils
,
dynamic
}
from
"scilla"
;
import
SampleApi
from
"../../../SampleApi"
;
/**
* 获取渲染数据
...
...
@@ -11,7 +11,7 @@ export default class ThroughSubmitComponent extends SampleApi {
//请求方式
method
:
string
=
'GET'
;
//duiba活动ID
orderId
:
string
;
orderId
:
dynamic
;
protected
async
execute
()
{
utils
.
injectProp
(
this
.
params
,
{
orderId
:
this
.
orderId
});
...
...
src/net/index.ts
deleted
100644 → 0
View file @
9b7bd77a
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