Commit 87df9c78 authored by chenweijian's avatar chenweijian

家族成员列表

parent bc331065
...@@ -781,6 +781,7 @@ func GroupPowerRooms(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -781,6 +781,7 @@ func GroupPowerRooms(c *gin.Context) (*mycontext.MyContext, error) {
// @Tags 家族 // @Tags 家族
// @Summary 获取家族成员列表 // @Summary 获取家族成员列表
// @Param userExtId 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 "第几个分页,从1开始 默认:1" default(1) // @Param pageIndex query int true "第几个分页,从1开始 默认:1" default(1)
...@@ -805,8 +806,19 @@ func GroupPowerMembers(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -805,8 +806,19 @@ func GroupPowerMembers(c *gin.Context) (*mycontext.MyContext, error) {
return myContext, err return myContext, err
} }
model := domain.CreateModelContext(myContext) model := domain.CreateModelContext(myContext)
userExtId := c.Query("userExtId")
gpU := &groupPower_m.GroupPowerUser{GroupPowerId: familyId} gpU := &groupPower_m.GroupPowerUser{GroupPowerId: familyId}
if userExtId != "" {
u, err := user_c.GetUserByExternalId(model, userExtId)
if err != nil {
return myContext, err
}
if u != nil && u.ID > 0 {
gpU.UserId = u.ID
}
}
members, err := gpU.GetBy(model, pageSize, pageIndex) members, err := gpU.GetBy(model, pageSize, pageIndex)
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