代码片段管理工具:rofi前端+Java守护进程

This commit is contained in:
2025-10-05 00:30:37 +08:00
commit a6b2905ad2
49 changed files with 3058 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import json
class SearchResponse:
def __init__(self, response: dict):
self.status = response["status"]
self.data = [SearchResponse.SearchData(dict(r)) for r in json.loads(response["data"])]
class SearchData:
def __init__(self, data: dict):
self.id = data["id"]
self.name = data["name"]
self.path = data["path"]
self.score = data["score"]
class NormalResponse:
def __init__(self, response: dict):
self.status = response["status"]
self.data = response["data"]

View File

@@ -0,0 +1,4 @@
class ActionResult:
def __init__(self, ok: bool, message: str):
self.ok = ok
self.message = message