|
|
|
@ -286,13 +286,12 @@ func GetGroupMembers(c *gin.Context) {
|
|
|
|
|
MemberPosition: int(groupMembers.RoleLevel),
|
|
|
|
|
MemberNickName: groupMembers.Nickname,
|
|
|
|
|
MemberId: groupMembers.UserID,
|
|
|
|
|
JoinTime: utils.UnixSecondToTime(groupMembers.JoinTime).String(),
|
|
|
|
|
JoinTime: utils.UnixSecondToTime(int64(groupMembers.JoinTime)).String(),
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
openIMHttp.RespHttp200(c, constant.OK, resp)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func AddGroupMembers(c *gin.Context) {
|
|
|
|
|
var (
|
|
|
|
|
req cms_api_struct.RemoveGroupMembersRequest
|
|
|
|
@ -300,7 +299,7 @@ func AddGroupMembers(c *gin.Context) {
|
|
|
|
|
reqPb pbGroup.AddGroupMembersCMSReq
|
|
|
|
|
)
|
|
|
|
|
if err := c.BindJSON(&req); err != nil {
|
|
|
|
|
log.NewError(reqPb.OperationId, utils.GetSelfFuncName(),"BindJSON failed ", err.Error())
|
|
|
|
|
log.NewError(reqPb.OperationId, utils.GetSelfFuncName(), "BindJSON failed ", err.Error())
|
|
|
|
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
@ -326,7 +325,7 @@ func RemoveGroupMembers(c *gin.Context) {
|
|
|
|
|
reqPb pbGroup.RemoveGroupMembersCMSReq
|
|
|
|
|
)
|
|
|
|
|
if err := c.BindJSON(&req); err != nil {
|
|
|
|
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(),"BindJSON failed ", err.Error())
|
|
|
|
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "BindJSON failed ", err.Error())
|
|
|
|
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
@ -352,7 +351,7 @@ func DeleteGroup(c *gin.Context) {
|
|
|
|
|
reqPb pbGroup.DeleteGroupReq
|
|
|
|
|
)
|
|
|
|
|
if err := c.BindJSON(&req); err != nil {
|
|
|
|
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(),"BindJSON failed ", err.Error())
|
|
|
|
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "BindJSON failed ", err.Error())
|
|
|
|
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
@ -375,7 +374,7 @@ func SetGroupMaster(c *gin.Context) {
|
|
|
|
|
reqPb pbGroup.OperateUserRoleReq
|
|
|
|
|
)
|
|
|
|
|
if err := c.BindJSON(&req); err != nil {
|
|
|
|
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(),"BindJSON failed ", err.Error())
|
|
|
|
|
log.NewError(reqPb.OperationID, utils.GetSelfFuncName(), "BindJSON failed ", err.Error())
|
|
|
|
|
openIMHttp.RespHttp200(c, constant.ErrArgs, nil)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|