fix(log): remove unused Id field from SystemLog during login log insertion
This commit is contained in:
parent
38706c0b29
commit
70815c0d50
@ -49,7 +49,6 @@ func (l *UserLoginLogic) UserLogin(req *types.UserLoginRequest) (resp *types.Log
|
|||||||
}
|
}
|
||||||
content, _ := loginLog.Marshal()
|
content, _ := loginLog.Marshal()
|
||||||
if err := l.svcCtx.LogModel.Insert(l.ctx, &log.SystemLog{
|
if err := l.svcCtx.LogModel.Insert(l.ctx, &log.SystemLog{
|
||||||
Id: 0,
|
|
||||||
Type: log.TypeLogin.Uint8(),
|
Type: log.TypeLogin.Uint8(),
|
||||||
Date: time.Now().Format("2006-01-02"),
|
Date: time.Now().Format("2006-01-02"),
|
||||||
ObjectID: userInfo.Id,
|
ObjectID: userInfo.Id,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user