zhangwenjian
82ea8539eb
chore 🔧 : upgrade go-admin-core and route the queue through configuration
...
The pinned core dated from April, before sdk stopped being a separate module,
so the build resolved sdk packages from the old module and core packages from
the new one. Dropping the separate requirement is what makes the two agree
again.
Most of the diff is renames that came with that: the tenant accessors gained a
ByTenant suffix, GetDb now returns one database and GetAllDb the map, and
casbin moved to v3.
The change that matters is four call sites moving from GetMemoryQueue to
GetQueuePrefix. GetMemoryQueue returns a queue fixed at construction, so the
login log, the operate log and the api check ran in process no matter what the
settings file selected — a second instance saw none of it. GetQueuePrefix
returns whatever the configuration built, which is the point of being able to
configure a queue at all.
Verified against core at main: build and vet clean. The two file_store failures
are unchanged from before this branch; they need cloud credentials.
2026-08-18 22:14:08 +08:00
zhangwenjian
d1f5fe5681
feat ✨ : 新增 app/demo 标准 CRUD 参照模块
...
作为编码约定的可执行参照物:文档会滞后,而这个模块过时会导致构建或测试
失败,因此以它为准。
目录骨架与自动注册文件由项目自带的脚手架生成:
go run main.go app -n demo
它同时产出 cmd/api/demo.go,其中的 init() 将路由追加进 AppRouters,
无需在任何中心文件手工登记。
模块本身演示了单表 CRUD 的推荐写法——直接使用 common/actions 提供的五个
通用 Action,因此只有 model、dto、router 三个业务文件,没有 apis 与
service。手写 Handler 的场景仅在业务超出单表 CRUD 时才需要。
DTO 中详情/删除入参内嵌 dto.ObjectById 以复用其 Bind 与 GetId,不重复
实现 uri 绑定与批量 ids 合并逻辑。
补充 8 项测试锁定通用 Action 的接口约束,其中最关键的是 Generate() 必须
返回副本——Action 在并发请求间复用实例,就地返回会串数据。反向验证:将
Generate 改为就地返回,测试立即失败。
2026-08-14 16:46:09 +08:00
wenjianzhang
a5cc0a9e29
Add read and write timeout to HTTP server
2025-09-10 09:39:54 +08:00
wenjianzhang
76411f80bc
refactor 🎨 : 优化日志记录方式,统一使用 log.Info 替代 log.Println
2025-04-08 20:30:35 +08:00
wenjianzhang
d366df372d
feat ✨ : Log file size control and retention days control
2023-11-03 18:59:20 +08:00
wenjianzhang
7281d05efc
fix 🐛 : Fixed system startup Network output problem
2023-11-03 17:42:01 +08:00
wenjianzhang
37a5963cd6
perf 👌 : Optimize go warnings
2023-08-01 22:38:41 +08:00
wwhai
c48f70a7c6
fix: change 'os.Signal' channel to buffered
2023-05-04 23:25:43 +08:00
quanbisen
e6f4fac859
修复优雅重启不生效
2022-08-31 18:14:33 +08:00
NaturalGao
1f8babd9e7
fix: fix sys_router && add swag commond
2022-08-25 01:19:55 +08:00
zhangwenjian
25472887c9
refactor 🎨 :移除内容管理、行政区管理和资源管理
2021-06-18 21:34:57 +08:00
zhangwenjian
860226ab41
refactor 🎨 : engine 初始化调整
2021-06-11 09:25:10 +08:00
linwenxiang
3aa64d107b
feature ✨ 优化setup
2021-06-10 17:15:13 +08:00
linwenxiang
b9e8759ef1
feature ✨ 支持大文件分割配置
2021-06-10 11:54:02 +08:00
zhangwenjian
ff5d498c53
refactor 🎨 : job和代码生成模块调整
2021-06-10 11:25:39 +08:00
linwenxiang
f35a808975
perf ⚡ 优化配置文件加载
2021-06-09 16:30:24 +08:00
zhangwenjian
a54d4ba0c1
format 🥚 代码格式化
2021-05-31 18:10:23 +08:00
zhangwenjian
a7cc943b8e
Merge remote-tracking branch 'origin/dev' into dev
2021-05-31 18:04:59 +08:00
linwenxiang
0314991f9e
fix 🐛 修复queue redis模式阿里云不工作问题
2021-05-31 14:39:27 +08:00
wenjianzhang
408dcc5057
refactor 🎨 部分功能重写
2021-05-21 18:25:51 +08:00
wenjianzhang
6b1c3d9226
refactor 🎨 api数据初始化调整
2021-05-17 23:09:35 +08:00
wenjianzhang
dfd460c50b
feat ✨ apis路径简化
2021-05-14 12:19:22 +08:00
wenjianzhang
fd9df69d1f
feat ✨ 检查并写入api
2021-05-12 18:48:38 +08:00
zhangwenjian
c6a52134b3
feat ✨ 优化字典数据错误判断写法
2021-05-08 13:53:27 +08:00
linwenxiang
13ff9d9e63
feat ✨ 优化api写法
2021-04-27 10:06:22 +08:00
linwenxiang
e40047a88e
feat ✨ 去除数据库写log对queue驱动的依赖,调整cache,分离出queue和locker
2021-04-20 11:08:46 +08:00
linwenxiang
b69bc87468
feat ✨ 验证码store支持go-admin cache
2021-04-08 21:33:36 +08:00
linwenxiang
eddfe26308
feat ✨ 验证码store支持go-admin cache
2021-04-07 23:01:32 +08:00
wenjianzhang
aefdb47c32
feat ✨ : 配置文件扩展项使用
2021-03-31 19:06:25 +08:00
linwenxiang
f188b34253
feat ✨ : 使用runtime cache中的mq功能优化日志存储
...
perf 👌 : 启用mq将日志存储从中间件中移除到消费者
2021-03-25 22:26:33 +08:00
linwenxiang
55a85babf8
升级go-admin-core依赖
2021-03-16 17:21:17 +08:00
linwenxiang
25d8364bf4
修改,兼容go-admin sdk方案
2021-03-09 19:12:49 +08:00
linwenxiang
75711922b4
调整log代码,兼容zap扩展支持fields
2021-03-05 15:13:36 +08:00
linwenxiang
39dd1ee6f8
兼容casbin2.24.0版本log
...
迁移脚本编译时不打包
2021-03-05 13:23:21 +08:00
linwenxiang
e2952fa393
调整整体架构写法
...
调整db用法
调整日志用法
调整模版
2021-03-04 23:45:16 +08:00
linwenxiang
deeb82048b
数据库连接初始化优化
...
权限部分修改
2021-02-21 14:06:13 +08:00
linwenxiang
0c170fe1c6
config setup配置提到外面
2020-12-10 10:24:06 +08:00
linwenxiang
5f873914e0
config重构
2020-12-08 20:28:26 +08:00
linwenxiang
4b5b0507e9
增加链路追踪,熟悉的朋友可以将go-admin作为微服务的网关使用 😄
2020-10-30 14:52:49 +08:00
linwenxiang
ccd76445f2
日志全部改为go-admin-core库日志,去除对其他项目的依赖
2020-10-29 19:22:23 +08:00
linwenxiang
da4637d285
logger模块移入go-admin-core仓库,修改log用法暂时折中
...
fixme:后期要尽快改成统一的log处理方式
2020-10-26 22:37:44 +08:00
linwenxiang
e1965be2ab
性能指标、健康检查、default log配置生效
2020-10-21 18:03:39 +08:00
linwenxiang
52f42616a2
近期bug修复,迁移go-admin-core库, Fixed #272 Fixed #261
2020-10-21 10:09:47 +08:00
linwenxiang
78bb246390
支持多应用路由注册示例写法
2020-09-22 23:18:54 +08:00
linwenxiang
7d8a267da7
日志生效,
...
调整路由注册方式
2020-09-21 23:23:40 +08:00
linwenxiang
4140cad9dd
增加通用配置组件
2020-09-09 20:17:08 +08:00
linwenxiang
01ea376015
修改文件目录
2020-09-04 00:21:52 +08:00
zhangwenjian
c69a7d9fd9
feat: format reference
2020-08-28 00:02:53 +08:00
linwenxiang
60c7496f7b
gorm升级到v2版本
2020-08-27 11:17:15 +08:00
zhangwenjian
afb98f5e81
feat:update vue template & sql
2020-08-13 23:47:37 +08:00