3 Star 2 Fork 1

fotomxq/weeekj_core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
push_nats.go 826 Bytes
一键复制 编辑 原始数据 按行查看 历史
fotomxq 提交于 2025-02-05 18:52 +08:00 . 修改项目路径;
package BlogCore
import CoreNats "gitee.com/fotomxq/weeekj_core/v5/core/nats"
// 新的文章
func pushCreate(contentID int64) {
CoreNats.PushDataNoErr("blog_core_create", "/blog/core/create", "", contentID, "", nil)
}
// 提交审核请求
func pushAudit(contentID int64) {
CoreNats.PushDataNoErr("blog_core_audit", "/blog/core/audit", "", contentID, "", nil)
}
// 审核完成
func pushAuditDone(contentID int64) {
CoreNats.PushDataNoErr("blog_core_audit_done", "/blog/core/audit_done", "", contentID, "", nil)
}
// PushRead 更新用户阅读文章
func PushRead(orgID int64, userID int64, contentID int64) {
if userID < 1 {
return
}
CoreNats.PushDataNoErr("blog_core_read", "/blog/core/read", "user", 0, "", map[string]interface{}{
"orgID": orgID,
"userID": userID,
"contentID": contentID,
})
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/fotomxq/weeekj_core.git
git@gitee.com:fotomxq/weeekj_core.git
fotomxq
weeekj_core
weeekj_core
v5.3.96

搜索帮助