package logic import ( "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 GroupNameUpdateLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewGroupNameUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GroupNameUpdateLogic { return &GroupNameUpdateLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 群组名称修改 func (l *GroupNameUpdateLogic) GroupNameUpdate(in *messagecenter.GroupNameUpdateReq) (*messagecenter.CommonReq, error) { // todo: add your logic here and delete this line status := ChatGroup.GroupNameUpdate(in.ChatGroupId, in.GroupName, in.AppId) return &messagecenter.CommonReq{ ErrorCode: 0, Status: status, }, nil }