diff --git a/route/group_power_r/group_power.go b/route/group_power_r/group_power.go index d25e1ec43367ad2bd53272a54e2a312310c2ec31..47d961c7aaebc6620eb4e6eb8e4bf2a21c0cbcdf 100644 --- a/route/group_power_r/group_power.go +++ b/route/group_power_r/group_power.go @@ -838,7 +838,7 @@ func GroupPowerRooms(c *gin.Context) (*mycontext.MyContext, error) { // @Tags 家族 // @Summary 获取家族成员列表 -// @Param userExtId query string false "用户extId,搜索时输入" +// @Param userCode query string false "用户extId,搜索时输入" // @Param id query int true "家族id" // @Param pageSize query int true "分页大小 默认:10" default(10) // @Param pageIndex query int true "分页开始索引,偏移量" default(1) @@ -866,11 +866,11 @@ func GroupPowerMembers(c *gin.Context) (*mycontext.MyContext, error) { pageIndex = 0 } model := domain.CreateModelContext(myContext) - userExtId := c.Query("userExtId") + userCode := c.Query("userCode") gpU := &groupPower_m.GroupPowerUser{GroupPowerId: familyId} - if userExtId != "" { - u, err := user_c.GetUserByExternalId(model, userExtId) + if userCode != "" { + u, err := user_m.GetUserByCode(model, userCode) if err != nil { return myContext, err }