From c8953357443bbd69833edd3b5126f77b8d8b722e Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Mon, 27 Mar 2023 10:42:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=BB=84=E6=89=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/model/groupPower_m/groupPower.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/model/groupPower_m/groupPower.go b/domain/model/groupPower_m/groupPower.go index c3d3695..644c089 100644 --- a/domain/model/groupPower_m/groupPower.go +++ b/domain/model/groupPower_m/groupPower.go @@ -474,7 +474,7 @@ func GetGroupPowerMgr(model *domain.Model, groupPowerId mysql.ID) (mysql.ID, err //获取势力主和管理员 func GetGroupPowerMgrList(model *domain.Model, groupPowerId mysql.ID) ([]mysql.ID, error) { res := make([]mysql.ID, 0) - err := model.Db.Model(GroupPowerUser{}).Select("user_id").Where("group_power_id = ? and role in (2,3)", groupPowerId).Scan(res).Error + err := model.Db.Model(GroupPowerUser{}).Select("user_id").Where("group_power_id = ? and role in (2,3)", groupPowerId).Scan(&res).Error if err != nil { return res, myerr.WrapErr(err) } -- 2.22.0