新增设备模块

This commit is contained in:
zyj
2025-09-15 18:26:40 +08:00
parent 61b2ec346a
commit c1b601de69
10 changed files with 197 additions and 57 deletions

View File

@@ -72,6 +72,7 @@ func (*User) Login(ctx *gin.Context) {
})
// 登录成功之后查看设备是否是当前设备
DeviceService := services.InitDeviceService()
DeviceService.SetUserLoginStatus(loginResp.UserId, loginResp.AccessToken, paramsJson.DeviceId)
ctx.JSON(http.StatusOK, gin.H{
"code": 200,
"msg": "登录成功",