8 Commits

Author SHA1 Message Date
liufumingren
e17461fe51 feat(scripts): 新增货主组/仓库组角色授权脚本
- scripts/auth/grant-store-up.js:货主侧全部角色批量授权(内置货主管理员角色
  store_admin_default + 各货主自建角色),permissions='*' 通配角色自动跳过
- scripts/auth/grant-wh-up.js:仓库链路角色批量授权(仓库组员工 27 -> 仓库组主管 26
  -> 经理 8),已拥有通配符权限的仓库管理员/超级管理员自动跳过
- 数据库配置按 env 从 config.default.js / config.local.js 加载,无内嵌凭据
- 用法:node scripts/auth/grant-wh-up.js <权限ID> / node scripts/auth/grant-store-up.js <权限ID>
2026-09-28 16:34:10 +08:00
liufumingren
358fef0f71 chore: apply ESLint auto-fixes, JSDoc additions, and CRLF→LF normalization (no logic changes) 2026-08-08 20:28:18 +08:00
liufumingren
61b82512f2 feat(auth): 新增客服组权限授权/取消脚本,更新 dev-agent 配置
- scripts/auth/grant-cs-up.js: 客服组及以上角色批量授权(dev+prod)

- scripts/auth/revoke-cs-up.js: 客服组及以上角色批量取消授权(dev+prod)

- .github/agents/开发.agent.md: 新增关键定位地图第5项-客服组权限授权脚本

- .cursor/agents/wms-dev-agent.md: 同步 dev-agent 配置
2026-08-04 18:08:46 +08:00
liufumingren
7854057244 chore: ESLint auto-fix formatting (JSDoc, spacing, quotes, line endings) 2026-07-04 23:30:32 +08:00
liufumingren
d743e67b9d 1 2026-06-17 01:18:55 +08:00
liufumingren
025184904a 1 2026-06-14 19:03:58 +08:00
liufumingren
99367e5043 1 2026-06-06 05:15:46 +08:00
liufumingren
abf2c4d94a 1 2026-05-29 16:47:38 +08:00