From 8c5386cb2cf2ba633b4d0e1ad5ec151655a92261 Mon Sep 17 00:00:00 2001 From: Echo <1711788888@qq.com> Date: Thu, 2 Nov 2023 05:11:27 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BF=AE=E6=94=B9=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E5=92=8C=E6=94=B6=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + api/v1/system/article.go | 9 +++- log/2023-10-11/error.log | 60 ------------------------- log/2023-10-11/info.log | 95 --------------------------------------- log/2023-10-11/panic.log | 1 - log/2023-10-12/error.log | 17 ------- log/2023-10-12/info.log | 40 ----------------- log/2023-10-17/error.log | 16 ------- log/2023-10-17/info.log | 60 ------------------------- log/2023-10-20/info.log | 5 --- log/2023-10-23/error.log | 11 ----- log/2023-10-23/info.log | 20 --------- log/2023-10-24/info.log | 5 --- log/2023-10-25/error.log | 11 ----- log/2023-10-25/info.log | 5 --- log/2023-10-27/info.log | 15 ------- log/2023-10-31/error.log | 46 ------------------- log/2023-10-31/info.log | 60 ------------------------- log/2023-11-01/error.log | 11 ----- log/2023-11-01/info.log | 5 --- log/2023-11-02/error.log | 3 -- log/2023-11-02/info.log | 5 --- model/app/favorite.go | 2 +- model/common/article.go | 1 + service/system/article.go | 10 ++++- 25 files changed, 21 insertions(+), 494 deletions(-) create mode 100644 .gitignore delete mode 100644 log/2023-10-11/error.log delete mode 100644 log/2023-10-11/info.log delete mode 100644 log/2023-10-11/panic.log delete mode 100644 log/2023-10-12/error.log delete mode 100644 log/2023-10-12/info.log delete mode 100644 log/2023-10-17/error.log delete mode 100644 log/2023-10-17/info.log delete mode 100644 log/2023-10-20/info.log delete mode 100644 log/2023-10-23/error.log delete mode 100644 log/2023-10-23/info.log delete mode 100644 log/2023-10-24/info.log delete mode 100644 log/2023-10-25/error.log delete mode 100644 log/2023-10-25/info.log delete mode 100644 log/2023-10-27/info.log delete mode 100644 log/2023-10-31/error.log delete mode 100644 log/2023-10-31/info.log delete mode 100644 log/2023-11-01/error.log delete mode 100644 log/2023-11-01/info.log delete mode 100644 log/2023-11-02/error.log delete mode 100644 log/2023-11-02/info.log diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..417b4e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea/ +log \ No newline at end of file diff --git a/api/v1/system/article.go b/api/v1/system/article.go index b438b9a..dcbb54c 100644 --- a/api/v1/system/article.go +++ b/api/v1/system/article.go @@ -2,10 +2,13 @@ package system import ( "github.com/gin-gonic/gin" + "miniapp/api" "miniapp/global" + "miniapp/model/app" "miniapp/model/common" "miniapp/model/common/request" r "miniapp/model/common/response" + "strconv" ) type ArticleApi struct{} @@ -95,7 +98,11 @@ func (a ArticleApi) GetArticleById(ctx *gin.Context) { return } - article, err := articleService.GetArticleById(Id) + // 获取用户信息 + var user app.User + api.GetUser(ctx, &user, false, true) + + article, err := articleService.GetArticleById(Id, strconv.Itoa(int(user.ID))) if err != nil { global.GVA_LOG.Error("获取失败" + err.Error()) r.FailWithMessage("获取失败"+err.Error(), ctx) diff --git a/log/2023-10-11/error.log b/log/2023-10-11/error.log deleted file mode 100644 index 113e13e..0000000 --- a/log/2023-10-11/error.log +++ /dev/null @@ -1,60 +0,0 @@ -[miniapp]2023/10/11 - 12:17:48.633 error C:/Users/Administrator/Desktop/server/api/v1/system/sys_user.go:56 登陆失败! 用户名不存在或者密码错误! {"error": "db not init"} -[miniapp]2023/10/11 - 12:49:14.470 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 12:49:32.985 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 14:32:21.261 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 14:32:27.921 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 15:44:36.062 error C:/Users/Administrator/Desktop/server/utils/upload/aliyun_oss.go:36 function formUploader.Put() Failed {"err": "oss: service returned error: StatusCode=400, ErrorCode=InvalidObjectName, ErrorMessage=\"The specified object is not valid.\", RequestId=652652648915C63137533C77, Ec=0016-00000005"} -[miniapp]2023/10/11 - 15:45:18.933 error C:/Users/Administrator/Desktop/server/utils/upload/aliyun_oss.go:36 function formUploader.Put() Failed {"err": "oss: service returned error: StatusCode=400, ErrorCode=InvalidObjectName, ErrorMessage=\"The specified object is not valid.\", RequestId=6526528FB6896C32324B0C23, Ec=0016-00000005"} -[miniapp]2023/10/11 - 21:30:35.072 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 21:30:35.762 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 21:30:35.765 error C:/Users/Administrator/Desktop/server/middleware/operation.go:123 create operation record error: {"error": "Error 1406 (22001): Data too long for column 'agent' at row 1"} -[miniapp]2023/10/11 - 21:49:13.118 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 21:49:14.248 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 21:49:14.250 error C:/Users/Administrator/Desktop/server/middleware/operation.go:123 create operation record error: {"error": "Error 1406 (22001): Data too long for column 'agent' at row 1"} -[miniapp]2023/10/11 - 21:51:29.980 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 21:51:29.985 error C:/Users/Administrator/Desktop/server/middleware/operation.go:123 create operation record error: {"error": "Error 1406 (22001): Data too long for column 'agent' at row 1"} -[miniapp]2023/10/11 - 21:54:28.032 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 21:54:28.659 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 21:54:28.661 error C:/Users/Administrator/Desktop/server/middleware/operation.go:123 create operation record error: {"error": "Error 1406 (22001): Data too long for column 'agent' at row 1"} -[miniapp]2023/10/11 - 21:57:19.306 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 21:57:19.306 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 21:57:19.308 error C:/Users/Administrator/Desktop/server/middleware/operation.go:123 create operation record error: {"error": "Error 1406 (22001): Data too long for column 'agent' at row 1"} -[miniapp]2023/10/11 - 22:03:03.529 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 22:03:49.141 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 22:03:49.777 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 22:03:49.780 error C:/Users/Administrator/Desktop/server/middleware/operation.go:123 create operation record error: {"error": "Error 1406 (22001): Data too long for column 'agent' at row 1"} -[miniapp]2023/10/11 - 22:04:26.159 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 22:04:26.818 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 22:04:26.820 error C:/Users/Administrator/Desktop/server/middleware/operation.go:123 create operation record error: {"error": "Error 1406 (22001): Data too long for column 'agent' at row 1"} -[miniapp]2023/10/11 - 22:08:39.077 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 22:08:45.745 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 22:08:45.745 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 22:08:45.745 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 22:08:45.748 error C:/Users/Administrator/Desktop/server/middleware/operation.go:123 create operation record error: {"error": "Error 1406 (22001): Data too long for column 'agent' at row 1"} -[miniapp]2023/10/11 - 22:08:45.749 error C:/Users/Administrator/Desktop/server/middleware/operation.go:123 create operation record error: {"error": "Error 1406 (22001): Data too long for column 'agent' at row 1"} -[miniapp]2023/10/11 - 22:08:46.369 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 22:08:46.371 error C:/Users/Administrator/Desktop/server/middleware/operation.go:123 create operation record error: {"error": "Error 1406 (22001): Data too long for column 'agent' at row 1"} -[miniapp]2023/10/11 - 22:11:23.107 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 22:11:23.110 error C:/Users/Administrator/Desktop/server/middleware/operation.go:123 create operation record error: {"error": "Error 1406 (22001): Data too long for column 'agent' at row 1"} -[miniapp]2023/10/11 - 22:13:36.214 error C:/Users/Administrator/Desktop/server/utils/clamis.go:15 从Gin的Context中获取从jwt解析信息失败, 请检查请求头是否存在x-token且claims是否为规定结构 -[miniapp]2023/10/11 - 22:13:36.216 error C:/Users/Administrator/Desktop/server/middleware/operation.go:123 create operation record error: {"error": "Error 1406 (22001): Data too long for column 'agent' at row 1"} -[miniapp]2023/10/11 - 22:14:59.957 error C:/Users/Administrator/Desktop/server/initialize/gorm.go:70 register table failed {"error": "Error 1069 (42000): Too many keys specified; max 64 keys allowed"} -[miniapp]2023/10/11 - 22:15:41.382 error C:/Users/Administrator/Desktop/server/initialize/gorm.go:70 register table failed {"error": "Error 1069 (42000): Too many keys specified; max 64 keys allowed"} -[miniapp]2023/10/11 - 22:36:29.260 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 清理失败,跳过清理 -[miniapp]2023/10/11 - 22:36:29.261 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: context canceled -[miniapp]2023/10/11 - 22:41:42.786 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 22:47:14.886 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: Client authentication failed -[miniapp]2023/10/11 - 23:00:58.398 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 23:00:59.633 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 23:00:59.633 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/10/11 - 23:01:00.334 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: Client authentication failed -[miniapp]2023/10/11 - 23:01:14.971 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: Client authentication failed -[miniapp]2023/10/11 - 23:01:25.497 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: Client authentication failed -[miniapp]2023/10/11 - 23:04:12.045 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: Client authentication failed -[miniapp]2023/10/11 - 23:15:08.506 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: Client authentication failed -[miniapp]2023/10/11 - 23:15:16.620 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: Client authentication failed -[miniapp]2023/10/11 - 23:17:51.189 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: Client authentication failed -[miniapp]2023/10/11 - 23:18:17.252 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: Client authentication failed -[miniapp]2023/10/11 - 23:18:51.753 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: Client authentication failed -[miniapp]2023/10/11 - 23:19:55.688 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: Client authentication failed -[miniapp]2023/10/11 - 23:24:59.675 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: Client authentication failed diff --git a/log/2023-10-11/info.log b/log/2023-10-11/info.log deleted file mode 100644 index c40bf76..0000000 --- a/log/2023-10-11/info.log +++ /dev/null @@ -1,95 +0,0 @@ -[miniapp]2023/10/11 - 12:17:24.308 info C:/Users/Administrator/Desktop/server/initialize/router.go:44 register swagger handler -[miniapp]2023/10/11 - 12:17:24.316 info C:/Users/Administrator/Desktop/server/initialize/router.go:81 router register success -[miniapp]2023/10/11 - 12:17:24.318 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 12:17:59.631 info C:/Users/Administrator/Desktop/server/api/v1/system/sys_initdb.go:57 前往初始化数据库 -[miniapp]2023/10/11 - 12:22:36.247 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/gorm.go:63 register table success -[miniapp]2023/10/11 - 12:22:36.248 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 12:22:36.249 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/router.go:44 register swagger handler -[miniapp]2023/10/11 - 12:22:36.249 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/router.go:81 router register success -[miniapp]2023/10/11 - 12:22:36.257 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 12:26:26.104 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/gorm.go:63 register table success -[miniapp]2023/10/11 - 12:26:26.105 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 12:26:26.106 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/router.go:44 register swagger handler -[miniapp]2023/10/11 - 12:26:26.106 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/router.go:81 router register success -[miniapp]2023/10/11 - 12:26:26.120 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 12:28:21.674 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/api/v1/system/sys_initdb.go:57 数据库无需初始化 -[miniapp]2023/10/11 - 12:28:42.802 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/api/v1/system/sys_initdb.go:57 数据库无需初始化 -[miniapp]2023/10/11 - 12:29:07.498 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 12:29:07.505 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/router.go:44 register swagger handler -[miniapp]2023/10/11 - 12:29:07.505 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/router.go:81 router register success -[miniapp]2023/10/11 - 12:29:07.515 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 12:29:15.197 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/api/v1/system/sys_initdb.go:57 前往初始化数据库 -[miniapp]2023/10/11 - 12:31:44.363 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/gorm.go:63 register table success -[miniapp]2023/10/11 - 12:31:44.365 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 12:31:44.365 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/router.go:44 register swagger handler -[miniapp]2023/10/11 - 12:31:44.366 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/router.go:81 router register success -[miniapp]2023/10/11 - 12:31:44.380 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 12:36:28.127 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/gorm.go:63 register table success -[miniapp]2023/10/11 - 12:36:28.128 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 12:36:28.128 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/router.go:44 register swagger handler -[miniapp]2023/10/11 - 12:36:28.129 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/initialize/router.go:81 router register success -[miniapp]2023/10/11 - 12:36:28.139 info D:/GOPATH/pkg/mod/miniapp@v0.0.0-20231010105746-b3dbb8d4be1f/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 12:40:59.510 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:63 register table success -[miniapp]2023/10/11 - 12:41:36.502 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:63 register table success -[miniapp]2023/10/11 - 12:41:36.504 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 12:41:36.505 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 12:41:36.505 info C:/Users/Administrator/Desktop/server/initialize/router.go:85 router register success -[miniapp]2023/10/11 - 12:41:36.518 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 12:47:37.733 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:63 register table success -[miniapp]2023/10/11 - 12:47:37.735 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 12:47:37.736 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 12:47:37.736 info C:/Users/Administrator/Desktop/server/initialize/router.go:85 router register success -[miniapp]2023/10/11 - 12:47:37.745 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 12:48:02.622 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:63 register table success -[miniapp]2023/10/11 - 12:48:02.624 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 12:48:02.625 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 12:48:02.626 info C:/Users/Administrator/Desktop/server/initialize/router.go:85 router register success -[miniapp]2023/10/11 - 12:48:02.633 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 12:48:47.654 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:63 register table success -[miniapp]2023/10/11 - 12:48:47.659 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 12:48:47.660 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 12:48:47.660 info C:/Users/Administrator/Desktop/server/initialize/router.go:85 router register success -[miniapp]2023/10/11 - 12:48:47.676 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 12:51:25.617 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:63 register table success -[miniapp]2023/10/11 - 12:51:25.619 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 12:51:25.620 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 12:51:25.621 info C:/Users/Administrator/Desktop/server/initialize/router.go:85 router register success -[miniapp]2023/10/11 - 12:51:25.631 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 14:46:18.358 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:63 register table success -[miniapp]2023/10/11 - 14:46:18.361 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 14:46:18.362 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 14:47:00.201 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:63 register table success -[miniapp]2023/10/11 - 14:47:00.204 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 14:47:00.205 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 14:47:00.205 info C:/Users/Administrator/Desktop/server/initialize/router.go:86 router register success -[miniapp]2023/10/11 - 14:47:00.219 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 14:53:02.134 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:73 register table success -[miniapp]2023/10/11 - 14:53:02.137 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 14:53:02.137 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 14:53:02.138 info C:/Users/Administrator/Desktop/server/initialize/router.go:86 router register success -[miniapp]2023/10/11 - 14:53:02.150 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 15:00:11.005 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:73 register table success -[miniapp]2023/10/11 - 15:00:11.008 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 15:00:11.008 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 15:00:11.009 info C:/Users/Administrator/Desktop/server/initialize/router.go:86 router register success -[miniapp]2023/10/11 - 15:00:11.023 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 15:41:43.799 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:73 register table success -[miniapp]2023/10/11 - 15:41:43.802 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 15:41:43.802 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 15:41:43.803 info C:/Users/Administrator/Desktop/server/initialize/router.go:86 router register success -[miniapp]2023/10/11 - 15:41:43.814 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 22:16:48.448 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:73 register table success -[miniapp]2023/10/11 - 22:16:48.451 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 22:16:48.451 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 22:16:48.452 info C:/Users/Administrator/Desktop/server/initialize/router.go:86 router register success -[miniapp]2023/10/11 - 22:16:48.456 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 23:23:50.878 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:73 register table success -[miniapp]2023/10/11 - 23:23:50.880 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 23:23:50.881 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 23:23:50.881 info C:/Users/Administrator/Desktop/server/initialize/router.go:86 router register success -[miniapp]2023/10/11 - 23:23:50.890 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/11 - 23:24:18.312 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:73 register table success -[miniapp]2023/10/11 - 23:24:18.315 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/11 - 23:24:18.315 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/11 - 23:24:18.316 info C:/Users/Administrator/Desktop/server/initialize/router.go:86 router register success -[miniapp]2023/10/11 - 23:24:18.321 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} diff --git a/log/2023-10-11/panic.log b/log/2023-10-11/panic.log deleted file mode 100644 index be36152..0000000 --- a/log/2023-10-11/panic.log +++ /dev/null @@ -1 +0,0 @@ -[miniapp]2023/10/11 - 12:40:59.513 panic D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:71 OAuth2服务启动失败[Client信息拉取失败]: Error 1146 (42S02): Table 'jm_wechat2.t_oauth2_client' doesn't exist diff --git a/log/2023-10-12/error.log b/log/2023-10-12/error.log deleted file mode 100644 index 02f3752..0000000 --- a/log/2023-10-12/error.log +++ /dev/null @@ -1,17 +0,0 @@ -[miniapp]2023/10/12 - 20:49:24.766 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/12 - 20:49:24.798 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/12 - 20:49:24.842 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/12 - 20:49:24.849 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/12 - 20:49:24.856 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/12 - 20:49:24.863 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/12 - 20:49:24.893 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 清理失败,跳过清理 -[miniapp]2023/10/12 - 20:49:24.894 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 收到未定义的登录错误: context canceled -[miniapp]2023/10/12 - 21:12:02.597 error C:/Users/Administrator/Desktop/server/utils/upload/aliyun_oss.go:36 function formUploader.Put() Failed {"err": "oss: service returned error: StatusCode=400, ErrorCode=InvalidObjectName, ErrorMessage=\"The specified object is not valid.\", RequestId=6527F0A3A3A9C63939913609, Ec=0016-00000005"} -[miniapp]2023/10/12 - 21:12:50.260 error C:/Users/Administrator/Desktop/server/utils/upload/aliyun_oss.go:36 function formUploader.Put() Failed {"err": "oss: service returned error: StatusCode=400, ErrorCode=InvalidObjectName, ErrorMessage=\"The specified object is not valid.\", RequestId=6527F0D3A3A9C63230926B09, Ec=0016-00000005"} -[miniapp]2023/10/12 - 21:12:52.879 error C:/Users/Administrator/Desktop/server/utils/upload/aliyun_oss.go:36 function formUploader.Put() Failed {"err": "oss: service returned error: StatusCode=400, ErrorCode=InvalidObjectName, ErrorMessage=\"The specified object is not valid.\", RequestId=6527F0D5F299AF3531A6044D, Ec=0016-00000005"} -[miniapp]2023/10/12 - 21:13:56.794 error C:/Users/Administrator/Desktop/server/utils/upload/aliyun_oss.go:36 function formUploader.Put() Failed {"err": "oss: service returned error: StatusCode=400, ErrorCode=InvalidObjectName, ErrorMessage=\"The specified object is not valid.\", RequestId=6527F1158915C63033347E5F, Ec=0016-00000005"} -[miniapp]2023/10/12 - 22:04:57.489 error C:/Users/Administrator/Desktop/server/api/v1/example/exa_file_upload_download.go:29 接收文件失败! {"error": "http: no such file"} -[miniapp]2023/10/12 - 22:08:48.459 error C:/Users/Administrator/Desktop/server/api/v1/example/exa_file_upload_download.go:29 接收文件失败! {"error": "http: no such file"} -[miniapp]2023/10/12 - 22:12:55.105 error C:/Users/Administrator/Desktop/server/api/v1/example/exa_file_upload_download.go:29 接收文件失败! {"error": "http: no such file"} -[miniapp]2023/10/12 - 22:17:38.420 error C:/Users/Administrator/Desktop/server/api/v1/example/exa_file_upload_download.go:29 接收文件失败! {"error": "http: no such file"} -[miniapp]2023/10/12 - 22:22:22.968 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token diff --git a/log/2023-10-12/info.log b/log/2023-10-12/info.log deleted file mode 100644 index b4184d5..0000000 --- a/log/2023-10-12/info.log +++ /dev/null @@ -1,40 +0,0 @@ -[miniapp]2023/10/12 - 14:46:11.064 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:73 register table success -[miniapp]2023/10/12 - 14:46:11.067 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/12 - 14:46:11.068 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/12 - 14:46:11.068 info C:/Users/Administrator/Desktop/server/initialize/router.go:86 router register success -[miniapp]2023/10/12 - 14:46:11.071 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/12 - 14:47:42.187 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:73 register table success -[miniapp]2023/10/12 - 14:47:42.203 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/12 - 14:47:42.204 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/12 - 14:47:42.204 info C:/Users/Administrator/Desktop/server/initialize/router.go:86 router register success -[miniapp]2023/10/12 - 14:47:42.217 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/12 - 17:28:23.736 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:73 register table success -[miniapp]2023/10/12 - 17:28:23.739 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/12 - 17:28:23.739 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/12 - 17:28:23.740 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/12 - 17:28:23.756 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/12 - 17:29:04.795 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:73 register table success -[miniapp]2023/10/12 - 17:29:04.798 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/12 - 17:29:04.798 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/12 - 17:29:04.799 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/12 - 17:29:04.804 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/12 - 17:32:13.919 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:74 register table success -[miniapp]2023/10/12 - 17:32:13.922 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/12 - 17:32:13.922 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/12 - 17:32:13.923 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/12 - 17:32:13.937 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/12 - 21:07:08.230 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:75 register table success -[miniapp]2023/10/12 - 21:07:08.233 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/12 - 21:07:08.233 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/12 - 21:07:08.234 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/12 - 21:07:08.235 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/12 - 21:13:51.791 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:75 register table success -[miniapp]2023/10/12 - 21:13:51.803 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/12 - 21:13:51.804 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/12 - 21:13:51.804 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/12 - 21:13:51.812 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/12 - 21:43:51.654 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:75 register table success -[miniapp]2023/10/12 - 21:43:51.657 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/12 - 21:43:51.658 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/12 - 21:43:51.658 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/12 - 21:43:51.667 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} diff --git a/log/2023-10-17/error.log b/log/2023-10-17/error.log deleted file mode 100644 index 52eccde..0000000 --- a/log/2023-10-17/error.log +++ /dev/null @@ -1,16 +0,0 @@ -[miniapp]2023/10/17 - 08:17:20.513 error C:/Users/Administrator/Desktop/server/initialize/gorm.go:72 register table failed {"error": "Error 1069 (42000): Too many keys specified; max 64 keys allowed"} -[miniapp]2023/10/17 - 08:18:09.291 error C:/Users/Administrator/Desktop/server/initialize/gorm.go:72 register table failed {"error": "Error 1069 (42000): Too many keys specified; max 64 keys allowed"} -[miniapp]2023/10/17 - 09:04:37.076 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/17 - 09:09:12.484 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/17 - 09:09:26.157 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/17 - 09:09:40.307 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/17 - 09:11:26.648 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/17 - 09:11:31.255 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/17 - 09:11:59.129 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/17 - 09:12:31.958 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/17 - 09:14:05.958 error C:/Users/Administrator/Desktop/server/initialize/gorm.go:74 register table failed {"error": "Error 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key"} -[miniapp]2023/10/17 - 09:24:07.298 error C:/Users/Administrator/Desktop/server/service/app/user.go:137 创建用户Todo列表失败 {"error": "empty slice found"} -[miniapp]2023/10/17 - 09:24:07.298 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 修改用户信息失败:empty slice found -[miniapp]2023/10/17 - 19:02:13.384 error C:/Users/Administrator/Desktop/server/core/server.go:38 listen tcp :8888: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted. -[miniapp]2023/10/17 - 21:48:55.926 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/17 - 21:49:14.534 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token diff --git a/log/2023-10-17/info.log b/log/2023-10-17/info.log deleted file mode 100644 index 00fb288..0000000 --- a/log/2023-10-17/info.log +++ /dev/null @@ -1,60 +0,0 @@ -[miniapp]2023/10/17 - 08:18:29.954 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:75 register table success -[miniapp]2023/10/17 - 08:18:29.957 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/17 - 08:18:29.957 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/17 - 08:18:29.958 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/17 - 08:18:29.965 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/17 - 08:28:22.029 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:76 register table success -[miniapp]2023/10/17 - 08:28:22.032 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/17 - 08:28:22.032 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/17 - 08:28:22.033 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/17 - 08:28:22.049 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/17 - 08:43:13.963 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:76 register table success -[miniapp]2023/10/17 - 08:43:13.966 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/17 - 08:43:13.966 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/17 - 08:43:13.967 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/17 - 08:43:13.975 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/17 - 08:48:32.173 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/17 - 08:48:32.176 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/17 - 08:48:32.177 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/17 - 08:48:32.177 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/17 - 08:48:32.189 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/17 - 09:00:52.809 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/17 - 09:00:52.811 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/17 - 09:00:52.811 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/17 - 09:00:52.812 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/17 - 09:00:52.818 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/17 - 09:13:20.930 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/17 - 09:13:20.932 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/17 - 09:13:20.932 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/17 - 09:13:20.933 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/17 - 09:13:20.937 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/17 - 09:15:05.736 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/17 - 09:15:05.739 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/17 - 09:15:05.739 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/17 - 09:15:05.740 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/17 - 09:15:05.752 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/17 - 09:16:26.672 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/17 - 09:16:26.674 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/17 - 09:16:26.675 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/17 - 09:16:26.675 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/17 - 09:16:26.688 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/17 - 09:23:41.666 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/17 - 09:23:41.669 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/17 - 09:23:41.669 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/17 - 09:23:41.670 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/17 - 09:23:41.674 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/17 - 09:26:05.699 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/17 - 09:26:05.702 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/17 - 09:26:05.702 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/17 - 09:26:05.703 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/17 - 09:26:05.706 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/17 - 19:02:13.365 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/17 - 19:02:13.368 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/17 - 19:02:13.369 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/17 - 19:02:13.373 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/17 - 19:02:13.383 info C:/Users/Administrator/Desktop/server/core/server.go:36 server run success on {"address": ":8888"} -[miniapp]2023/10/17 - 21:48:19.564 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/17 - 21:48:19.567 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/17 - 21:48:19.568 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/17 - 21:48:19.568 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/17 - 21:48:19.577 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe run success on {"address": ":8888"} diff --git a/log/2023-10-20/info.log b/log/2023-10-20/info.log deleted file mode 100644 index 485d9ac..0000000 --- a/log/2023-10-20/info.log +++ /dev/null @@ -1,5 +0,0 @@ -[miniapp]2023/10/20 - 07:53:58.443 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/20 - 07:54:00.942 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/20 - 07:54:00.943 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/20 - 07:54:00.944 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/20 - 07:54:00.952 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe run success on {"address": ":8888"} diff --git a/log/2023-10-23/error.log b/log/2023-10-23/error.log deleted file mode 100644 index 4a6bcb2..0000000 --- a/log/2023-10-23/error.log +++ /dev/null @@ -1,11 +0,0 @@ -[miniapp]2023/10/23 - 12:44:57.260 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/23 - 12:45:09.157 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/23 - 12:45:40.239 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/23 - 12:45:53.047 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/23 - 12:46:19.752 error C:/Users/Administrator/Desktop/server/api/v1/app/todos.go:45 更新失败 {"error": "unsupported data type: map[is_finish:0]: Table not set, please set it like: db.Model(&user) or db.Table(\"users\")"} -[miniapp]2023/10/23 - 12:46:52.038 error C:/Users/Administrator/Desktop/server/api/v1/app/todos.go:45 更新失败 {"error": "unsupported data type: map[is_finish:0]: Table not set, please set it like: db.Model(&user) or db.Table(\"users\")"} -[miniapp]2023/10/23 - 12:47:50.862 error C:/Users/Administrator/Desktop/server/api/v1/app/todos.go:45 更新失败 {"error": "unsupported data type: map[is_finish:0]: Table not set, please set it like: db.Model(&user) or db.Table(\"users\")"} -[miniapp]2023/10/23 - 12:48:12.650 error C:/Users/Administrator/Desktop/server/api/v1/app/todos.go:45 更新失败 {"error": "unsupported data type: map[is_finish:1]: Table not set, please set it like: db.Model(&user) or db.Table(\"users\")"} -[miniapp]2023/10/23 - 12:48:29.039 error C:/Users/Administrator/Desktop/server/api/v1/app/todos.go:45 更新失败 {"error": "unsupported data type: map[is_finish:1]: Table not set, please set it like: db.Model(&user) or db.Table(\"users\")"} -[miniapp]2023/10/23 - 12:49:43.463 error C:/Users/Administrator/Desktop/server/api/v1/app/todos.go:45 更新失败 {"error": "unsupported data type: map[is_finish:1]: Table not set, please set it like: db.Model(&user) or db.Table(\"users\")"} -[miniapp]2023/10/23 - 12:50:36.829 error C:/Users/Administrator/Desktop/server/api/v1/app/todos.go:45 更新失败 {"error": "WHERE conditions required"} diff --git a/log/2023-10-23/info.log b/log/2023-10-23/info.log deleted file mode 100644 index 4218841..0000000 --- a/log/2023-10-23/info.log +++ /dev/null @@ -1,20 +0,0 @@ -[miniapp]2023/10/23 - 12:03:11.274 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/23 - 12:03:11.277 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/23 - 12:03:11.278 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/23 - 12:03:11.279 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/23 - 12:03:11.292 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe run success on {"address": ":8888"} -[miniapp]2023/10/23 - 12:43:49.800 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/23 - 12:43:49.803 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/23 - 12:43:49.804 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/23 - 12:43:49.804 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/23 - 12:43:49.813 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe run success on {"address": ":8888"} -[miniapp]2023/10/23 - 12:50:34.031 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/23 - 12:50:34.033 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/23 - 12:50:34.034 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/23 - 12:50:34.035 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/23 - 12:50:34.049 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe run success on {"address": ":8888"} -[miniapp]2023/10/23 - 12:52:29.098 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/23 - 12:52:29.100 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/23 - 12:52:29.101 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/23 - 12:52:29.102 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/23 - 12:52:29.115 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe run success on {"address": ":8888"} diff --git a/log/2023-10-24/info.log b/log/2023-10-24/info.log deleted file mode 100644 index 0a0d179..0000000 --- a/log/2023-10-24/info.log +++ /dev/null @@ -1,5 +0,0 @@ -[miniapp]2023/10/24 - 19:58:03.150 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/24 - 19:58:03.153 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/24 - 19:58:03.153 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/24 - 19:58:03.154 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/24 - 19:58:03.157 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} diff --git a/log/2023-10-25/error.log b/log/2023-10-25/error.log deleted file mode 100644 index 62b1caa..0000000 --- a/log/2023-10-25/error.log +++ /dev/null @@ -1,11 +0,0 @@ -[miniapp]2023/10/25 - 18:36:37.534 error C:/Users/Administrator/Desktop/server/service/app/user.go:33 账号创建失败: %v {"error": "Error 1062 (23000): Duplicate entry '17754945397' for key 't_user.deleted'"} -[miniapp]2023/10/25 - 18:36:37.534 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户信息或创建用户失败,错误信息:登录失败 -[miniapp]2023/10/25 - 18:36:37.534 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 登录失败,请联系管理员 -[miniapp]2023/10/25 - 18:36:59.107 error C:/Users/Administrator/Desktop/server/service/app/user.go:33 账号创建失败: %v {"error": "Error 1062 (23000): Duplicate entry '17754945397' for key 't_user.deleted'"} -[miniapp]2023/10/25 - 18:36:59.111 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户信息或创建用户失败,错误信息:登录失败 -[miniapp]2023/10/25 - 18:36:59.111 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 登录失败,请联系管理员 -[miniapp]2023/10/25 - 22:33:30.865 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/25 - 22:39:31.822 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/25 - 22:48:41.964 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/25 - 22:49:04.522 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/25 - 23:51:51.256 error C:/Users/Administrator/Desktop/server/api/v1/system/article.go:100 获取失败unsupported data type: map[reading_num:{SQL:reading_num + ? Vars:[1] WithoutParentheses:false}]: Table not set, please set it like: db.Model(&user) or db.Table("users") diff --git a/log/2023-10-25/info.log b/log/2023-10-25/info.log deleted file mode 100644 index ce43db3..0000000 --- a/log/2023-10-25/info.log +++ /dev/null @@ -1,5 +0,0 @@ -[miniapp]2023/10/25 - 18:29:32.387 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/25 - 18:29:32.390 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/25 - 18:29:32.390 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/25 - 18:29:32.391 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/25 - 18:29:32.405 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} diff --git a/log/2023-10-27/info.log b/log/2023-10-27/info.log deleted file mode 100644 index 96596ad..0000000 --- a/log/2023-10-27/info.log +++ /dev/null @@ -1,15 +0,0 @@ -[miniapp]2023/10/27 - 11:45:32.628 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/27 - 11:45:32.630 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/27 - 11:45:32.631 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/27 - 11:45:32.632 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/27 - 11:45:32.637 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/27 - 12:10:35.736 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/27 - 12:10:35.739 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/27 - 12:10:35.739 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/27 - 12:10:35.740 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/27 - 12:10:35.749 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/27 - 12:47:41.062 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/27 - 12:47:41.064 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/27 - 12:47:41.066 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/27 - 12:47:41.067 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/27 - 12:47:41.081 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} diff --git a/log/2023-10-31/error.log b/log/2023-10-31/error.log deleted file mode 100644 index ab48fc4..0000000 --- a/log/2023-10-31/error.log +++ /dev/null @@ -1,46 +0,0 @@ -[miniapp]2023/10/31 - 20:49:30.974 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/31 - 20:49:57.444 error C:/Users/Administrator/Desktop/server/api/v1/system/article.go:100 获取失败unsupported data type: map[reading_num:{SQL:reading_num + ? Vars:[1] WithoutParentheses:false}]: Table not set, please set it like: db.Model(&user) or db.Table("users") -[miniapp]2023/10/31 - 20:50:56.668 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/31 - 20:54:19.255 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/31 - 20:54:22.325 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/10/31 - 20:55:06.699 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/31 - 20:55:09.937 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/31 - 20:55:09.978 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/31 - 20:55:17.840 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/31 - 20:56:13.511 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 获取手机号失败 -[miniapp]2023/10/31 - 20:57:16.209 error C:/Users/Administrator/Desktop/server/api/v1/app/favorite.go:20 获取收藏列表失败 {"error": "Key: 'GetFavoriteList.UserId' Error:Field validation for 'UserId' failed on the 'required' tag"} -[miniapp]2023/10/31 - 21:02:24.186 error C:/Users/Administrator/Desktop/server/api/v1/system/article.go:100 获取失败unsupported data type: map[reading_num:{SQL:reading_num + ? Vars:[1] WithoutParentheses:false}]: Table not set, please set it like: db.Model(&user) or db.Table("users") -[miniapp]2023/10/31 - 21:02:35.331 error C:/Users/Administrator/Desktop/server/api/v1/system/article.go:100 获取失败unsupported data type: map[reading_num:{SQL:reading_num + ? Vars:[1] WithoutParentheses:false}]: Table not set, please set it like: db.Model(&user) or db.Table("users") -[miniapp]2023/10/31 - 21:03:50.010 error C:/Users/Administrator/Desktop/server/api/v1/system/article.go:100 获取失败unsupported data type: map[reading_num:{SQL:reading_num + ? Vars:[1] WithoutParentheses:false}]: Table not set, please set it like: db.Model(&user) or db.Table("users") -[miniapp]2023/10/31 - 21:04:56.284 error C:/Users/Administrator/Desktop/server/api/v1/system/article.go:100 获取失败unsupported data type: map[reading_num:{SQL:reading_num + ? Vars:[1] WithoutParentheses:false}]: Table not set, please set it like: db.Model(&user) or db.Table("users") -[miniapp]2023/10/31 - 21:06:04.107 error C:/Users/Administrator/Desktop/server/api/v1/system/article.go:100 获取失败unsupported data type: map[reading_num:{SQL:reading_num + ? Vars:[1] WithoutParentheses:false}]: Table not set, please set it like: db.Model(&user) or db.Table("users") -[miniapp]2023/10/31 - 21:07:00.827 error C:/Users/Administrator/Desktop/server/api/v1/system/article.go:100 获取失败unsupported data type: map[reading_num:{SQL:reading_num + ? Vars:[1] WithoutParentheses:false}]: Table not set, please set it like: db.Model(&user) or db.Table("users") -[miniapp]2023/10/31 - 21:07:16.492 error C:/Users/Administrator/Desktop/server/api/v1/system/article.go:100 获取失败unsupported data type: map[reading_num:{SQL:reading_num + ? Vars:[1] WithoutParentheses:false}]: Table not set, please set it like: db.Model(&user) or db.Table("users") -[miniapp]2023/10/31 - 21:07:46.859 error C:/Users/Administrator/Desktop/server/api/v1/system/article.go:100 获取失败unsupported data type: map[reading_num:{SQL:reading_num + ? Vars:[1] WithoutParentheses:false}]: Table not set, please set it like: db.Model(&user) or db.Table("users") -[miniapp]2023/10/31 - 21:08:31.311 error C:/Users/Administrator/Desktop/server/api/v1/system/article.go:100 获取失败record not found -[miniapp]2023/10/31 - 21:10:01.493 error C:/Users/Administrator/Desktop/server/api/v1/system/article.go:100 获取失败unsupported data type: map[reading_num:{SQL:reading_num + ? Vars:[1] WithoutParentheses:false}]: Table not set, please set it like: db.Model(&user) or db.Table("users") -[miniapp]2023/10/31 - 22:28:37.154 error C:/Users/Administrator/Desktop/server/service/app/user.go:137 创建用户Todo列表失败 {"error": "empty slice found"} -[miniapp]2023/10/31 - 22:28:37.154 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 修改用户信息失败:empty slice found -[miniapp]2023/10/31 - 22:28:39.405 error C:/Users/Administrator/Desktop/server/service/app/user.go:137 创建用户Todo列表失败 {"error": "empty slice found"} -[miniapp]2023/10/31 - 22:28:39.406 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 修改用户信息失败:empty slice found -[miniapp]2023/10/31 - 22:28:39.533 error C:/Users/Administrator/Desktop/server/service/app/user.go:137 创建用户Todo列表失败 {"error": "empty slice found"} -[miniapp]2023/10/31 - 22:28:39.533 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 修改用户信息失败:empty slice found -[miniapp]2023/10/31 - 22:28:39.617 error C:/Users/Administrator/Desktop/server/service/app/user.go:137 创建用户Todo列表失败 {"error": "empty slice found"} -[miniapp]2023/10/31 - 22:28:39.617 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 修改用户信息失败:empty slice found -[miniapp]2023/10/31 - 22:28:42.450 error C:/Users/Administrator/Desktop/server/service/app/user.go:137 创建用户Todo列表失败 {"error": "empty slice found"} -[miniapp]2023/10/31 - 22:28:42.450 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 修改用户信息失败:empty slice found -[miniapp]2023/10/31 - 22:29:42.352 error C:/Users/Administrator/Desktop/server/service/app/user.go:137 创建用户Todo列表失败 {"error": "empty slice found"} -[miniapp]2023/10/31 - 22:29:42.352 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 修改用户信息失败:empty slice found -[miniapp]2023/10/31 - 22:29:46.792 error C:/Users/Administrator/Desktop/server/service/app/user.go:137 创建用户Todo列表失败 {"error": "empty slice found"} -[miniapp]2023/10/31 - 22:29:46.792 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 修改用户信息失败:empty slice found -[miniapp]2023/10/31 - 22:33:00.380 error C:/Users/Administrator/Desktop/server/service/app/user.go:137 创建用户Todo列表失败 {"error": "empty slice found"} -[miniapp]2023/10/31 - 22:33:00.380 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 修改用户信息失败:empty slice found -[miniapp]2023/10/31 - 22:47:43.125 error C:/Users/Administrator/Desktop/server/service/app/user.go:138 创建用户Todo列表失败 {"error": "empty slice found"} -[miniapp]2023/10/31 - 22:47:43.126 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 修改用户信息失败:empty slice found -[miniapp]2023/10/31 - 23:36:47.050 error C:/Users/Administrator/Desktop/server/api/v1/app/vision.go:43 创建失败 {"error": "invalid character 'l' looking for beginning of value"} -[miniapp]2023/10/31 - 23:36:47.714 error C:/Users/Administrator/Desktop/server/api/v1/app/vision.go:43 创建失败 {"error": "invalid character 'l' looking for beginning of value"} -[miniapp]2023/10/31 - 23:36:50.662 error C:/Users/Administrator/Desktop/server/api/v1/app/vision.go:43 创建失败 {"error": "invalid character 'l' looking for beginning of value"} -[miniapp]2023/10/31 - 23:39:27.412 error C:/Users/Administrator/Desktop/server/api/v1/app/vision.go:43 创建失败 {"error": "invalid character 'l' looking for beginning of value"} -[miniapp]2023/10/31 - 23:40:00.946 error C:/Users/Administrator/Desktop/server/api/v1/app/vision.go:43 创建失败 {"error": "json: cannot unmarshal string into Go struct field Vision.userId of type int"} -[miniapp]2023/10/31 - 23:42:42.975 error C:/Users/Administrator/Desktop/server/api/v1/app/vision.go:43 参数错误 {"error": "json: cannot unmarshal number into Go struct field Vision.leftEyeVision of type string"} -[miniapp]2023/10/31 - 23:43:21.416 error C:/Users/Administrator/Desktop/server/api/v1/app/vision.go:43 参数错误 {"error": "json: cannot unmarshal number into Go struct field Vision.leftEyeVision of type string"} diff --git a/log/2023-10-31/info.log b/log/2023-10-31/info.log deleted file mode 100644 index c157e39..0000000 --- a/log/2023-10-31/info.log +++ /dev/null @@ -1,60 +0,0 @@ -[miniapp]2023/10/31 - 20:24:51.191 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/31 - 20:24:53.732 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/31 - 20:24:53.733 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/31 - 20:24:53.733 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/31 - 20:24:53.742 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/31 - 20:54:05.435 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/31 - 20:54:05.441 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/31 - 20:54:05.441 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/31 - 20:54:05.442 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/31 - 20:54:05.444 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/31 - 21:07:42.771 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/31 - 21:07:42.774 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/31 - 21:07:42.775 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/31 - 21:07:42.775 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/31 - 21:07:42.789 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/31 - 21:08:25.715 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/31 - 21:08:25.718 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/31 - 21:08:25.718 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/31 - 21:08:25.719 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/31 - 21:08:25.728 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/31 - 21:09:59.776 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/31 - 21:09:59.779 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/31 - 21:09:59.779 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/31 - 21:09:59.780 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/31 - 21:09:59.792 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/31 - 21:10:45.446 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/31 - 21:10:45.448 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/31 - 21:10:45.449 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/31 - 21:10:45.450 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/31 - 21:10:45.455 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/31 - 22:39:24.366 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/31 - 22:39:24.368 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/31 - 22:39:24.369 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/31 - 22:39:24.369 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/31 - 22:39:24.385 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/31 - 23:12:22.869 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/31 - 23:12:22.876 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/31 - 23:12:22.877 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/31 - 23:12:22.878 info C:/Users/Administrator/Desktop/server/initialize/router.go:87 router register success -[miniapp]2023/10/31 - 23:12:22.893 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/31 - 23:13:39.015 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/31 - 23:13:39.018 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/31 - 23:13:39.018 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/31 - 23:13:39.019 info C:/Users/Administrator/Desktop/server/initialize/router.go:88 router register success -[miniapp]2023/10/31 - 23:13:39.022 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/31 - 23:35:11.076 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/31 - 23:35:11.078 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/31 - 23:35:11.079 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/31 - 23:35:11.079 info C:/Users/Administrator/Desktop/server/initialize/router.go:88 router register success -[miniapp]2023/10/31 - 23:35:11.091 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/31 - 23:42:07.185 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/31 - 23:42:07.187 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/31 - 23:42:07.188 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/31 - 23:42:07.188 info C:/Users/Administrator/Desktop/server/initialize/router.go:88 router register success -[miniapp]2023/10/31 - 23:42:07.201 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} -[miniapp]2023/10/31 - 23:43:16.970 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/10/31 - 23:43:16.973 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/10/31 - 23:43:16.973 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/10/31 - 23:43:16.974 info C:/Users/Administrator/Desktop/server/initialize/router.go:88 router register success -[miniapp]2023/10/31 - 23:43:16.975 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} diff --git a/log/2023-11-01/error.log b/log/2023-11-01/error.log deleted file mode 100644 index 0d982e3..0000000 --- a/log/2023-11-01/error.log +++ /dev/null @@ -1,11 +0,0 @@ -[miniapp]2023/11/01 - 00:13:11.882 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/11/01 - 00:13:45.594 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/11/01 - 00:14:15.126 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/11/01 - 00:14:23.191 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/11/01 - 00:14:28.535 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/11/01 - 00:15:23.979 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/11/01 - 00:15:40.724 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/11/01 - 00:17:03.179 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/11/01 - 00:17:12.790 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/11/01 - 00:17:42.207 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 -[miniapp]2023/11/01 - 00:20:44.193 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取用户基础账号信息失败: 未知的用户身份类型 diff --git a/log/2023-11-01/info.log b/log/2023-11-01/info.log deleted file mode 100644 index e1f7641..0000000 --- a/log/2023-11-01/info.log +++ /dev/null @@ -1,5 +0,0 @@ -[miniapp]2023/11/01 - 00:16:23.519 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/11/01 - 00:16:23.521 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/11/01 - 00:16:23.522 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/11/01 - 00:16:23.522 info C:/Users/Administrator/Desktop/server/initialize/router.go:88 router register success -[miniapp]2023/11/01 - 00:16:23.528 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} diff --git a/log/2023-11-02/error.log b/log/2023-11-02/error.log deleted file mode 100644 index f640aee..0000000 --- a/log/2023-11-02/error.log +++ /dev/null @@ -1,3 +0,0 @@ -[miniapp]2023/11/02 - 04:28:58.518 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/11/02 - 04:29:12.614 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token -[miniapp]2023/11/02 - 04:29:13.638 error D:/GOPATH/pkg/mod/git.echol.cn/loser/logger@v1.0.15/log/say.go:65 获取Token失败,错误:invalid access token diff --git a/log/2023-11-02/info.log b/log/2023-11-02/info.log deleted file mode 100644 index 68e3d5d..0000000 --- a/log/2023-11-02/info.log +++ /dev/null @@ -1,5 +0,0 @@ -[miniapp]2023/11/02 - 04:09:23.247 info C:/Users/Administrator/Desktop/server/initialize/gorm.go:77 register table success -[miniapp]2023/11/02 - 04:09:23.251 info C:/Users/Administrator/Desktop/server/initialize/redis.go:23 redis connect ping response: {"pong": "PONG"} -[miniapp]2023/11/02 - 04:09:23.252 info C:/Users/Administrator/Desktop/server/initialize/router.go:39 register swagger handler -[miniapp]2023/11/02 - 04:09:23.252 info C:/Users/Administrator/Desktop/server/initialize/router.go:88 router register success -[miniapp]2023/11/02 - 04:09:23.267 info C:/Users/Administrator/Desktop/server/core/server.go:36 server.exe.exe run success on {"address": ":8888"} diff --git a/model/app/favorite.go b/model/app/favorite.go index 3035f11..9ede4a3 100644 --- a/model/app/favorite.go +++ b/model/app/favorite.go @@ -5,7 +5,7 @@ import "miniapp/global" type Favorite struct { global.GVA_MODEL UserId int `json:"userId" gorm:"not null;column:user_id;comment:'用户id'"` // 用户id - FavoriteId int `json:"favoriteId" gorm:"not null;comment:收藏id"` // 收藏id + WzId int `json:"wzId" gorm:"not null;comment:收藏id"` // 收藏id Cover string `json:"cover" gorm:"size:50;comment:封面"` Titte string `json:"title" comment:"收藏商品名称"` // 收藏商品名称 Introduction string `json:"introduction" comment:"简介"` // 简介 diff --git a/model/common/article.go b/model/common/article.go index 7a30b40..10fa8bd 100644 --- a/model/common/article.go +++ b/model/common/article.go @@ -8,6 +8,7 @@ type Article struct { Content string `json:"content" form:"content" gorm:"column:content;comment:内容;type:longtext;"` CoverImg string `json:"cover_img" form:"coverImg" gorm:"column:cover_img;comment:封面图;type:varchar(255);size:255;"` ReadingNum int `json:"reading_num" form:"reading_num" gorm:"column:reading_num;comment:阅读量;type:int;size:10;"` + IsFavorite int `json:"is_favorite" form:"is_favorite" gorm:"column:is_favorite;comment:是否收藏;type:int;size:10;"` } func (Article) TableName() string { diff --git a/service/system/article.go b/service/system/article.go index f50f897..3238b79 100644 --- a/service/system/article.go +++ b/service/system/article.go @@ -3,6 +3,7 @@ package system import ( "gorm.io/gorm" "miniapp/global" + "miniapp/model/app" "miniapp/model/common" "miniapp/model/common/request" ) @@ -31,8 +32,15 @@ func (a ArticleService) DeleteArticle(article *common.Article) (err error) { } // GetArticleById 根据id获取文章 -func (a ArticleService) GetArticleById(id string) (article *common.Article, err error) { +func (a ArticleService) GetArticleById(id, userId string) (article *common.Article, err error) { err = global.GVA_DB.Where("id = ?", id).First(&article).Error err = global.GVA_DB.Table("articles").Where("id = ?", id).Update("reading_num", gorm.Expr("reading_num + ?", 1)).Error + + // 判断是否收藏 + var favorite app.Favorite + err = global.GVA_DB.Where("wz_id = ? AND user_id = ?", id, userId).First(&favorite).Error + if favorite.ID != 0 { + article.IsFavorite = 1 + } return }