feat: 实现 OpenClaw Mission Control 仪表盘框架
- 创建 API Blueprint 模块结构 - 实现系统状态 API (CPU/内存/磁盘/进程) - 实现服务状态 API - 创建仪表盘页面模板 - 添加仪表盘 CSS 样式 - 添加仪表盘 JavaScript 交互 - 登录后自动跳转到仪表盘
This commit is contained in:
22
api/memory.py
Normal file
22
api/memory.py
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
记忆管理 API
|
||||
作者:小白 🐶
|
||||
"""
|
||||
|
||||
from flask import jsonify
|
||||
from . import api
|
||||
|
||||
@api.route('/memory')
|
||||
def get_memory():
|
||||
"""获取记忆统计"""
|
||||
# TODO: 实现 OpenClaw 记忆查询
|
||||
return jsonify({
|
||||
'success': True,
|
||||
'data': {
|
||||
'total': 0,
|
||||
'today': 0
|
||||
},
|
||||
'message': '记忆管理功能开发中'
|
||||
})
|
||||
Reference in New Issue
Block a user