You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func GetIndividualFromTeams(db *gorm.DB, teams []uint64) ([]uint64, error) {
// 取独立用户列表
type Result struct {
UserID uint64
Num uint64
}
var res []Result
if err := db.Raw("SELECT user_teams.user_id, COUNT(user_teams.user_id) AS num FROM user_teams WHERE team_id in (?)", teams).Scan(&res).Error; err != nil {