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 ChatGroupAddLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewChatGroupAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ChatGroupAddLogic { return &ChatGroupAddLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } var ChatGroup service.ChatGroupService // 群组新增 func (l *ChatGroupAddLogic) ChatGroupAdd(in *messagecenter.ChatGroupAddReq) (*messagecenter.CommonReq, error) { // todo: add your logic here and delete this line status := ChatGroup.ChatGroupAdd(in.EntId, in.PositionId, in.UserIdArr, in.AppId) return &messagecenter.CommonReq{ ErrorCode: 0, Status: status, }, nil }