feat(app_linux): 增加股票排序和消息发送功能

- 添加 SetStockSort 方法,用于设置股票排序
- 新增 SendDingDingMessageByType 方法,根据消息类型发送钉钉消息- 实现 GenNotificationMsg 方法,生成通知消息内容
- 添加 getMsgTypeTTL 和 getMsgTypeName 方法,用于获取消息类型的 TTL 和名称
- 优化 Greet 方法,处理返回的股票数据
This commit is contained in:
spark 2025-01-09 15:42:02 +08:00
parent 9a46788339
commit a54f769ea2

View File

@ -6,8 +6,12 @@ package main
import ( import (
"context" "context"
"github.com/coocood/freecache" "github.com/coocood/freecache"
"github.com/duke-git/lancet/v2/convertor"
"github.com/duke-git/lancet/v2/mathutil"
"github.com/duke-git/lancet/v2/slice"
"github.com/wailsapp/wails/v2/pkg/runtime" "github.com/wailsapp/wails/v2/pkg/runtime"
"go-stock/backend/data" "go-stock/backend/data"
"go-stock/backend/db"
"go-stock/backend/logger" "go-stock/backend/logger"
) )