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
bb34108831
fix 🐛 : 移除 refresh_token 接口,修复 token 可无限续期问题
...
close #820
GET /api/v1/refresh_token 用业务 token 即可换取新 token,而续期上限
MaxRefresh 依据的 orig_iat 在每次续期时被一并重置,上限永远无法到达 ——
token 一旦泄露即等同于永久访问权,且无任何吊销手段。
该路由此前还位于 CasbinExclude 中,不受 Casbin 约束,任何角色的已登录用户
都可调用。
官方前端从未使用它:store 中虽有 refreshToken action,但全仓库无一处
dispatch,属死代码。移除不影响正常登录与鉴权流程。
破坏性变更:自行调用该端点实现续期的使用者需改为重新登录。正确的无感续期
应在 go-admin-core 中区分 access token 与 refresh token 后重新实现,不应
沿用此路由。
2026-08-14 21:42:52 +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
zhangwenjian
df2e4a2b48
fix 🐛 : 修正欢迎页 iframe 高度塌陷
...
页面通过 JS 计算并设置 iframe 高度,但 html 与 body 未声明高度,
百分比高度失去参照,iframe 在部分场景下塌陷为 0。
补充 html,body{height:100%} 与 iframe 的 height:100%,并为原先缺失的
overflow-y 声明补上分号。
问题由 PR #829 指出。
2026-08-14 15:35:55 +08:00
zhangwenjian
9088ebc2e1
refactor 🎨 : 修正文件名拼写 int_router.go → init_router.go
...
该文件内容为 init() 函数中的路由注册,原文件名少了一个字母。
问题由 PR #787 指出。
2026-08-14 15:35:55 +08:00
wenjianzhang
817e34c6aa
refactor 🎨 : 重构文件上传逻辑,拆分处理函数以提高可读性和维护性
2025-04-13 22:20:06 +08:00
wenjianzhang
952cd92648
refactor 🎨 : 清理 sys_server_monitor.go 文件,移除未使用的导入并格式化代码
2025-04-13 22:17:17 +08:00
wenjianzhang
6b1e961a7f
refactor 🎨 : 重构系统监控代码,拆分功能为多个函数以提高可读性和维护性
2025-04-13 22:15:10 +08:00
wenjianzhang
5494353229
fix 🐛 : 修复获取本地主机IP的函数调用错误
2025-04-08 20:30:24 +08:00
wenjianzhang
db422785fc
fix 🐛 : include captcha answer in GenerateCaptchaHandler for improved logging
2025-04-08 20:29:38 +08:00
wenjianzhang
4ac68323da
fix: improve error logging in jobbase.go for better clarity
2025-04-08 20:23:23 +08:00
wenjianzhang
9540fdfc30
refactor: remove unused GetMenuIDS function and clean up code
2025-03-25 16:44:31 +08:00
wenjianzhang
84721265dd
fix: simplify error handling in GenerateCaptchaHandler
2025-03-24 22:41:02 +08:00
wenjianzhang
6a1941a820
Merge pull request #814 from keemozhang/master
...
fix🐛 : declaration of new local variable causes transactions to be ign…
2025-03-21 15:36:16 +08:00
wenjianzhang
3ae7c44585
Merge pull request #816 from Tiper-In-Github/patch-1
...
Fix:err is never used
2025-03-21 15:35:23 +08:00
pigwantacat
4b477b3103
fix:修复定时任务的日志打印
2024-11-01 14:14:30 +08:00
wenjianzhang
e7ae2fe019
更新 go_admin.go
2024-10-30 22:12:17 +08:00
Akiraka
f3d744f6f5
修复获取getinfo时候,userName 事件结果为 nickName 问题
2024-10-24 09:30:15 +08:00
无别
0315631b53
Fix:err is never used
...
Fix the problem that err is overwritten and becomes invalid
2024-09-29 15:32:36 +08:00
wenjianzhang
83e0531f43
perf 👌 : format
2024-09-08 22:04:08 +08:00
wenjianzhang
8751f34539
perf 👌 : correct attribute definition
2024-09-05 18:33:11 +08:00
wenjianzhang
4aa0068d2d
perf 👌 : update SysDept Get First to FirstOrInit
2024-09-05 18:29:50 +08:00
keemozhang
b954a2f092
fix 🐛 : declaration of new local variable causes transactions to be ignored
2024-09-05 15:46:20 +08:00
wenjianzhang
9227bd2be1
perf 👌 : format code
2024-09-04 20:25:02 +08:00
wenjianzhang
e70a0b1314
perf 👌 : update SysConfig Get First to FirstOrInit
2024-09-04 20:22:49 +08:00
wenjianzhang
f30889bd19
perf 👌 : update SysApi Get Func First to FirstOrInit
2024-09-03 21:22:09 +08:00
wenjianzhang
bedf064ace
Merge pull request #802 from zhanluxianshen/drop-base-model
...
replace basemodel by common.model
2024-08-29 16:26:22 +08:00
zhanluxianshen
2d76430f89
clean err define in methods.
...
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com >
2024-07-10 15:03:33 +08:00
zhanluxianshen
5dde1d2a00
replace basemodel by common.model
...
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com >
2024-07-10 11:26:52 +08:00
lif
014a23aac3
[BugFix] Fix pgsql error with
2023-09-14 16:35:41 +08:00
wenjianzhang
37a5963cd6
perf 👌 : Optimize go warnings
2023-08-01 22:38:41 +08:00
wanghaima
68accd5448
fix_edit_master_role模块添加注释
2023-05-07 19:33:00 +08:00
wanghaima
5527f6386a
优化API管理筛选
2023-05-07 18:47:36 +08:00
wenjianzhang
04d2d7dde1
format 🥚 : Exclude empty permission identification
2023-04-19 18:50:35 +08:00
zhangwenjian
ddd97d5a9e
fix 🐛 : Adjust the demo environment configuration
2022-11-09 17:35:16 +08:00
zhangwenjian
42f3025217
fix 🐛 : Fix the problem that api saving fails when creating a new menu
2022-11-03 14:00:48 +08:00
zhaodongdong
c004b3d333
fix 🐛 :e.Log.Errorf("db error:%s", err)输出的err没有被赋值
2022-09-14 17:42:09 +08:00
wenjianzhang
7d1b84e837
Merge pull request #706 from haimait/master-test
...
1. 修复日志创建时间筛选报错的bug.
2022-09-05 19:58:06 +08:00
wanghaima
0f742900f5
1. 修复日志创建时间筛选报错的bug.
...
2. 修复日志里操作人,修改人,userAgent为空的bug.
3. 迁移表时,日志表添加字段注释.
4. sys_opera_log表oper_param字段类型改为text,解决字段长度报错的问题
2022-09-04 10:02:26 +08:00
wenjianzhang
90db381b5a
fix 🐛 : 修复侧边栏菜单排序问题 (690)
2022-08-25 14:18:02 +08:00
NaturalGao
1f8babd9e7
fix: fix sys_router && add swag commond
2022-08-25 01:19:55 +08:00
NaturalGao
8e8fe906fd
perf: update swag
2022-08-25 01:00:57 +08:00
infnan
0993173b1f
处理postgre启动报错问题
...
Signed-off-by: infnan <38274826+infnan@users.noreply.github.com >
2022-08-18 16:50:54 +08:00
zhangwenjian
66c8eb5ee8
fix 🐛 : Fix create when creating a new create_by Problem with by value of 0 ( #688 )
2022-08-18 07:26:56 +08:00
zhangwenjian
bb65e76219
fix 🐛 : Repair role creation prompt empty slice found ( #687 )
2022-08-18 07:19:24 +08:00
wenjianzhang
6bf774c463
fix 🐛 : fix rolemenu
...
fix🐛 : fix rolemenu
2022-08-09 23:14:56 +08:00
zhangwenjian
289fbba8e0
perf 👌 : update casbin gorm adapter
2022-08-09 18:17:06 +08:00
zhangzhenlun
096663ac91
fix 🐛 : fix rolemenu
2022-08-09 14:26:43 +08:00
wenjianzhang
7e571b038f
fix 🐛 : fix rolemenu
2022-08-09 10:18:21 +08:00
zhangwenjian
86187e4c79
fix 🐛 : 修复获取菜单接口menurole,数据不完整 ( #676 )
2022-08-07 21:49:24 +08:00