GS2-Limit トランザクションアクション

ConsumeAction

Gs2Limit:CountUpByUserId

ユーザIDを指定してカウントアップ

説明
namespaceNamestringネームスペース名
limitNamestring回数制限モデルの名前
counterNamestringカウンターの名前
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
countUpValueintカウントアップする量
maxValueintカウントアップを許容する最大値
{
    "action": "Gs2Limit:CountUpByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "limitName": "[string]回数制限モデルの名前",
        "counterName": "[string]カウンターの名前",
        "userId": "[string]ユーザーID",
        "countUpValue": "[int]カウントアップする量",
        "maxValue": "[int]カウントアップを許容する最大値"
    }
}
action: Gs2Limit:CountUpByUserId
request:
  namespaceName: "[string]ネームスペース名"
  limitName: "[string]回数制限モデルの名前"
  counterName: "[string]カウンターの名前"
  userId: "[string]ユーザーID"
  countUpValue: "[int]カウントアップする量"
  maxValue: "[int]カウントアップを許容する最大値"

AcquireAction

Gs2Limit:DeleteCounterByUserId

ユーザIDを指定してカウンターを削除

説明
namespaceNamestringネームスペース名
limitNamestring回数制限モデルの名前
userIdstring#{userId} と設定することでログイン中のユーザーIDに置換されます
counterNamestringカウンターの名前
{
    "action": "Gs2Limit:DeleteCounterByUserId",
    "request": {
        "namespaceName": "[string]ネームスペース名",
        "limitName": "[string]回数制限モデルの名前",
        "userId": "[string]ユーザーID",
        "counterName": "[string]カウンターの名前"
    }
}
action: Gs2Limit:DeleteCounterByUserId
request:
  namespaceName: "[string]ネームスペース名"
  limitName: "[string]回数制限モデルの名前"
  userId: "[string]ユーザーID"
  counterName: "[string]カウンターの名前"