From 971836b827ff636c18ae960b1163639ec32b2364 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 19 Apr 2023 21:59:35 +0800 Subject: [PATCH] update --- internal/business/app/user_app.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/business/app/user_app.go b/internal/business/app/user_app.go index 738b8e9..5275066 100644 --- a/internal/business/app/user_app.go +++ b/internal/business/app/user_app.go @@ -2,6 +2,7 @@ package app import ( "context" + "gim/internal/business/comm/utils" "gim/internal/business/domain/user/repo" "gim/pkg/pb" "time" @@ -17,6 +18,12 @@ func (*userApp) Get(ctx context.Context, userId int64) (*pb.User, error) { } func (*userApp) Update(ctx context.Context, userId int64, req *pb.UpdateUserReq) error { + utils.FilePutContents("update_info", utils.SerializeStr(map[string]interface{}{ + "user_id": userId, + "nickname": req.Nickname, + "args": req, + "time": time.Now().Format("2006-01-02 15:04:05"), + })) u, err := repo.UserRepo.Get(userId) if err != nil { return err