package dao import ( "context" "database/sql" "fmt" "go-common/app/job/main/passport-game-cloud/model" xsql "go-common/library/database/sql" "go-common/library/log" ) const ( _memberShard = 30 _addMemberInfoSQL = "INSERT INTO member_%02d (mid,face) VALUES(?,?) ON DUPLICATE KEY UPDATE face=?" _deleteMemberInfoSQL = "DELETE FROM member_%02d WHERE mid=?" _getMemberInfoSQL = "SELECT mid,face FROM member_%02d WHERE mid=?" _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