Commit c96b0099 authored by chenweijian's avatar chenweijian

家族

parent c7773f2f
...@@ -838,7 +838,7 @@ func GroupPowerRooms(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -838,7 +838,7 @@ func GroupPowerRooms(c *gin.Context) (*mycontext.MyContext, error) {
// @Tags 家族 // @Tags 家族
// @Summary 获取家族成员列表 // @Summary 获取家族成员列表
// @Param userExtId query string false "用户extId,搜索时输入" // @Param userCode query string false "用户extId,搜索时输入"
// @Param id query int true "家族id" // @Param id query int true "家族id"
// @Param pageSize query int true "分页大小 默认:10" default(10) // @Param pageSize query int true "分页大小 默认:10" default(10)
// @Param pageIndex query int true "分页开始索引,偏移量" default(1) // @Param pageIndex query int true "分页开始索引,偏移量" default(1)
...@@ -866,11 +866,11 @@ func GroupPowerMembers(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -866,11 +866,11 @@ func GroupPowerMembers(c *gin.Context) (*mycontext.MyContext, error) {
pageIndex = 0 pageIndex = 0
} }
model := domain.CreateModelContext(myContext) model := domain.CreateModelContext(myContext)
userExtId := c.Query("userExtId") userCode := c.Query("userCode")
gpU := &groupPower_m.GroupPowerUser{GroupPowerId: familyId} gpU := &groupPower_m.GroupPowerUser{GroupPowerId: familyId}
if userExtId != "" { if userCode != "" {
u, err := user_c.GetUserByExternalId(model, userExtId) u, err := user_m.GetUserByCode(model, userCode)
if err != nil { if err != nil {
return myContext, err return myContext, err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment