package logic import ( quitl "app.yhyue.com/moapp/jybase/common" "app.yhyue.com/moapp/jybase/encrypt" "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/rpc/messagecenter/messagecenter" "context" "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/api/messagecenter/internal/svc" "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/api/messagecenter/internal/types" "github.com/zeromicro/go-zero/core/logx" ) type ChatGroupPersonLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewChatGroupPersonLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ChatGroupPersonLogic { return &ChatGroupPersonLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *ChatGroupPersonLogic) ChatGroupPerson(req *types.ChatGroupPersonReq) (resp *types.CommonRes, err error) { // todo: add your logic here and delete this line chatGroupId := quitl.Int64All(encrypt.SE.Decode4Hex(req.ChatGroupId)) result, err := l.svcCtx.Message.ChatGroupPerson(l.ctx, &messagecenter.ChatGroupPersonReq{ ChatGroupId: chatGroupId, AppId: req.Appid, EntId: req.EntId, }) if err != nil { return nil, err } return &types.CommonRes{ Error_msg: result.ErrorMsg, Error_code: int(result.ErrorCode), Data: result.Data, }, nil }