mirror of
https://github.com/eryajf/chatgpt-dingtalk.git
synced 2025-10-15 04:30:43 +08:00
feat: 支持聊天记录存入以及查询的能力 (#158)
This commit is contained in:
4
pkg/cache/user_base.go
vendored
4
pkg/cache/user_base.go
vendored
@@ -19,6 +19,10 @@ type UserServiceInterface interface {
|
||||
// 用户请求次数
|
||||
SetUseRequestCount(userId string, current int)
|
||||
GetUseRequestCount(uerId string) int
|
||||
// 用户对话ID
|
||||
SetAnswerID(userId, chattype string, current uint)
|
||||
GetAnswerID(uerId, chattype string) uint
|
||||
ClearAnswerID(userId, chattitle string)
|
||||
}
|
||||
|
||||
var _ UserServiceInterface = (*UserService)(nil)
|
||||
|
Reference in New Issue
Block a user