Transaction Action of GS2-Limit
ConsumeAction
Gs2Limit:CountUpByUserId
count-up by the specify user ID
Actions for which quantity can be specified: YES
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
limitName | string | Name of limit model |
counterName | string | Counter Name |
userId | string | |
Set #{userId} to replace the currently logged in user ID. | ||
countUpValue | int | Amount to count up |
maxValue | int | Maximum value allowed to count up |
{
"action": "Gs2Limit:CountUpByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"limitName": "[string]Name of limit model",
"counterName": "[string]Counter Name",
"userId": "[string]User Id",
"countUpValue": "[int]Amount to count up",
"maxValue": "[int]Maximum value allowed to count up"
}
}
action: Gs2Limit:CountUpByUserId
request:
namespaceName: "[string]Namespace name"
limitName: "[string]Name of limit model"
counterName: "[string]Counter Name"
userId: "[string]User Id"
countUpValue: "[int]Amount to count up"
maxValue: "[int]Maximum value allowed to count up"
Gs2Limit:VerifyCounterByUserId
Verify counter value by user ID
Actions for which quantity can be specified: NO
Reversible action: NO
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | |
Set #{userId} to replace the currently logged in user ID. | ||
limitName | string | Name of limit model |
counterName | string | Counter Name |
verifyType | enum [’less’, ’lessEqual’, ‘greater’, ‘greaterEqual’, ’equal’, ’notEqual’] | Type of verification |
count | int | count value |
{
"action": "Gs2Limit:VerifyCounterByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User Id",
"limitName": "[string]Name of limit model",
"counterName": "[string]Counter Name",
"verifyType": "[string]Type of verification",
"count": "[int]count value"
}
}
action: Gs2Limit:VerifyCounterByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User Id"
limitName: "[string]Name of limit model"
counterName: "[string]Counter Name"
verifyType: "[string]Type of verification"
count: "[int]count value"
AcquireAction
Gs2Limit:CountDownByUserId
count-down by the specify user ID
Actions for which quantity can be specified: YES
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
limitName | string | Name of limit model |
counterName | string | Counter Name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
countDownValue | int | Amount to count down |
{
"action": "Gs2Limit:CountDownByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"limitName": "[string]Name of limit model",
"counterName": "[string]Counter Name",
"userId": "[string]User Id",
"countDownValue": "[int]Amount to count down"
}
}
action: Gs2Limit:CountDownByUserId
request:
namespaceName: "[string]Namespace name"
limitName: "[string]Name of limit model"
counterName: "[string]Counter Name"
userId: "[string]User Id"
countDownValue: "[int]Amount to count down"
Gs2Limit:DeleteCounterByUserId
Delete counter by specifying user ID
Actions for which quantity can be specified: NO
Reversible action: NO
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
limitName | string | Name of limit model |
userId | string | Set #{userId} to replace the currently logged in user ID. |
counterName | string | Counter Name |
{
"action": "Gs2Limit:DeleteCounterByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"limitName": "[string]Name of limit model",
"userId": "[string]User Id",
"counterName": "[string]Counter Name"
}
}
action: Gs2Limit:DeleteCounterByUserId
request:
namespaceName: "[string]Namespace name"
limitName: "[string]Name of limit model"
userId: "[string]User Id"
counterName: "[string]Counter Name"