You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
830 B
22 lines
830 B
3 years ago
|
package group
|
||
|
|
||
|
import (
|
||
|
"Open_IM/src/common/db/mysql_model/im_mysql_model"
|
||
|
"Open_IM/src/common/log"
|
||
|
"Open_IM/src/proto/group"
|
||
|
"context"
|
||
|
)
|
||
|
|
||
|
func (s *groupServer) GetGroupApplicationList(_ context.Context, pb *group.GetGroupApplicationListReq) (*group.GetGroupApplicationListResp, error) {
|
||
|
log.Info("", "", "rpc GetGroupApplicationList call start..., [pb: %s]", pb.String())
|
||
|
|
||
|
reply, err := im_mysql_model.GetGroupApplicationList(pb.UID)
|
||
|
if err != nil {
|
||
|
log.Error("", "", "rpc GetGroupApplicationList call..., im_mysql_model.GetGroupApplicationList fail [uid: %s] [err: %s]", pb.UID, err.Error())
|
||
3 years ago
|
return &group.GetGroupApplicationListResp{ErrCode: 701, ErrMsg: "GetGroupApplicationList failed"}, nil
|
||
3 years ago
|
}
|
||
|
log.Info("", "", "rpc GetGroupApplicationList call..., im_mysql_model.GetGroupApplicationList")
|
||
|
|
||
|
return reply, nil
|
||
|
}
|