//
pkg.gl
Category
github.com/totsumaru/gacha-bot-backend
application
user_data
package
0.0.0-20241013103127-24837773ad0b
Repository:
https://github.com/totsumaru/gacha-bot-backend.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
3
Files
261 SLOC
#
Functions
AddPoint
ポイントを追加します 追加後のポイント(最新のポイント)を返します。.
FindByServerIDAndUserID
サーバーIDとユーザーIDでユーザーデータを取得します.
FindByServerIDAndUserIDForUpdate
FOR UPDATEでサーバーIDとユーザーIDでユーザーデータを取得します.
FindTop100ByServerID
そのサーバーで、ポイントが上位100位のユーザーデータを取得します.
IncrementCount
ガチャを引いたときに、カウントを+1します Todayの場合は、numをcountValue分追加 昨日以前の場合は、日付をTodayに変更し、numに1をセット.