You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
859 B
27 lines
859 B
package allhelp
|
|
|
|
import (
|
|
"yunyan/pb"
|
|
)
|
|
|
|
// IModel 模型组件接口
|
|
type IModel interface {
|
|
// 用户任务记录(仅记录,不做触发)
|
|
addTask(task *pb.DBTask) error
|
|
getTasksByUid(uid string, status int32, page, size int32) ([]*pb.DBTask, int64, error)
|
|
getTaskById(id uint64) (*pb.DBTask, error)
|
|
updateTaskStatus(id uint64, status pb.TaskStatus) error
|
|
|
|
// 每日聊天总结
|
|
upsertChatSummary(rec *pb.DBChatSummary) error
|
|
saveChatSummary(rec *pb.DBChatSummary) error
|
|
getChatSummary(uid, date string) (*pb.DBChatSummary, error)
|
|
getChatSummaryById(id uint64) (*pb.DBChatSummary, error)
|
|
listChatSummaries(uid, startDate, endDate string, page, size int32) ([]*pb.DBChatSummary, int64, error)
|
|
delChatSummary(uid string, id uint64) error
|
|
}
|
|
|
|
// Redis 队列键后缀
|
|
const (
|
|
QueueChatSummaryAwait = "allhelp:chatsum:await" // 等待队列
|
|
)
|
|
|