package logic import ( "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/service" "context" "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/rpc/messagecenter/internal/svc" "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/rpc/messagecenter/messagecenter" "github.com/zeromicro/go-zero/core/logx" ) type OneUserConversationLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewOneUserConversationLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OneUserConversationLogic { return &OneUserConversationLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 1v1首次创建会话汇总表信息 func (l *OneUserConversationLogic) OneUserConversation(in *messagecenter.OneUserConversationReq) (*messagecenter.CurrencyResp, error) { // todo: add your logic here and delete this line errorMsg := service.OneCreatingSession(in) if errorMsg != "" { return &messagecenter.CurrencyResp{ErrorCode: -1, ErrorMsg: errorMsg}, nil } return &messagecenter.CurrencyResp{}, nil }