package dao import ( "context" "database/sql" "go-common/app/service/main/passport-game/model" xsql "go-common/library/database/sql" "go-common/library/log" ) const ( _memberShard = 30 _getMemberInfoSQL = "SELECT mid,face FROM member_%02d WHERE mid=?" _getAppsSQL = "SELECT appid,appkey,app_secret FROM app" _addTokenSQL = "INSERT INTO app_perm (mid,appid,app_subid,access_token,create_at,expires) VALUES (?,?,?,?,?,?)" _updateTokenSQL = "UPDATE app_perm SET expires=? WHERE access_token=? AND expires