feat(memory): P1 长期记忆升级 —— 异步攒批 Consolidate + 软删 + importance/last_seen #1
@@ -544,6 +544,9 @@ func (h *Handler) TenantCurrent(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"tenant": gin.H{"id": t.ID, "name": t.Name, "slug": t.Slug, "plan": t.Plan, "status": t.Status},
|
||||
"role": h.db.MemberRole(c.Request.Context(), tid, userID(c)),
|
||||
// 计费可见性:用户自己租户的积分余额 + 平台是否开了硬拦截(桌面端据此显余额/提示充值)。
|
||||
"credit_balance_micro": t.CreditBalanceMicro,
|
||||
"credit_enforce": h.db.CreditEnforceEnabled(c.Request.Context()),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user