2.6 KiB
2.6 KiB
2026-05-16 System Message And MySQL MCP Follow-up
Scope
- Added system message publishing for admins and store managers.
- Added Web admin message publishing, Web user notifications, and WeChat mini program notifications.
- Kept SQL consolidated in
YumiNail-Core/src/main/resources/files/YumiNail.sql; no extra SQL files were added. - Added acceptance seed messages and message user state rows.
MySQL MCP Status
- Nacos
YumiNail-Dev / DEFAULT_GROUP / datasource.yamlwas read successfully. - Datasource target used for verification:
192.168.5.15:3306/nailart, userroot; password was read from Nacos and was not printed. C:\Users\21616\.codex\config.tomlwas updated so bothmcp_servers.mysqlandmcp_servers.toolbox-mysqlpoint to the Nacos datasource; MySQL MCP write flags were enabled for this test.- The active Codex session still did not hot-load MySQL MCP tools after config update, so SQL execution used a temporary Node
mysql2runner as the configured-connection fallback. YumiNail.sqlwas executed againstnailarton 2026-05-16. The runner completed with 143 executed statements and 80 ignored already-existing/repeat-seed statements.
Database Verification
- Message tables present:
t_system_message,t_system_message_user_state. - Message permissions present:
message:view,message:create,message:delete. - Acceptance messages present: 3.
- Participating production records present: 2.
- SQL directory check: only
YumiNail.sqlremains.
Verification
rtk mvn -q -DskipTests compileinYumiNail-Core: passed.rtk npm run buildinYumiNail-Frontend: passed, with the existing Vite large chunk warning.- Full WeChat mini program JavaScript syntax check with
node --check: passed. rtk git diff --check: passed.- SQL execution fallback: passed against Nacos datasource database.
Acceptance Data Added
t_system_messageAcceptance Platform NoticeAcceptance Shop NoticeAcceptance Selected User Notice
t_system_message_user_state- Covers read, unread, popup shown, and popup pending states.
Remaining Manual Checks
- Verify admin can publish platform, shop, and selected-user messages.
- Verify store manager can publish only current-shop and selected current-shop-user messages.
- Verify user popup messages appear once, then remain visible in the notification list.
- Verify dynamic shop targeting by binding a user to a target shop after message creation and confirming the message becomes visible.
- Restart Codex or open a new session to expose the reconfigured MySQL MCP tools directly.