refactor: 在 RSS 处理模块中添加帮助信息注册功能,增强用户对订阅和退订操作的理解和使用体验

This commit is contained in:
lixiangwuxian 2025-07-17 15:11:34 +08:00
parent e539f575be
commit 8d11b5e6ec

View File

@ -19,8 +19,11 @@ func init() {
db := sqlite3.GetGormDB() db := sqlite3.GetGormDB()
db.AutoMigrate(&RssFeed{}, &RssSubscribe{}) db.AutoMigrate(&RssFeed{}, &RssSubscribe{})
handler.RegisterAtHandler("订阅", Subscribe, constants.LEVEL_USER) handler.RegisterAtHandler("订阅", Subscribe, constants.LEVEL_USER)
handler.RegisterHelpInform("@我 订阅 <url>", "rss", "订阅rss源")
handler.RegisterAtHandler("我的订阅", MySubscribed, constants.LEVEL_USER) handler.RegisterAtHandler("我的订阅", MySubscribed, constants.LEVEL_USER)
handler.RegisterHelpInform("@我 我的订阅", "rss", "查看我的订阅")
handler.RegisterAtHandler("退订", Unsubscribe, constants.LEVEL_USER) handler.RegisterAtHandler("退订", Unsubscribe, constants.LEVEL_USER)
handler.RegisterHelpInform("@我 退订 <id>", "rss", "退订rss源")
//test //test
handler.RegisterHandler("test_rss", TestRss, constants.LEVEL_ADMIN) handler.RegisterHandler("test_rss", TestRss, constants.LEVEL_ADMIN)
} }