-
Notifications
You must be signed in to change notification settings - Fork 15
/
talk_records.go
46 lines (39 loc) · 1.51 KB
/
talk_records.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"context"
"github.com/iimeta/iim-client/internal/model"
)
type (
ITalkRecords interface {
// 获取对话消息
GetTalkRecords(ctx context.Context, opt *model.QueryTalkRecordsOpt) ([]*model.TalkRecordsItem, error)
// 对话搜索消息
SearchTalkRecords()
GetTalkRecord(ctx context.Context, recordId int) (*model.TalkRecordsItem, error)
// 获取转发消息记录
GetForwardRecords(ctx context.Context, params model.RecordsForwardReq) ([]*model.TalkRecordsItem, error)
HandleTalkRecords(ctx context.Context, items []*model.TalkRecordsItem) ([]*model.TalkRecordsItem, error)
// 获取会话记录
GetRecords(ctx context.Context, params model.TalkRecordsReq) (*model.TalkRecordsRes, error)
// 查询下会话记录
SearchHistoryRecords(ctx context.Context, params model.TalkRecordsReq) (*model.TalkRecordsRes, error)
// 聊天文件下载
Download(ctx context.Context, recordId int) error
}
)
var (
localTalkRecords ITalkRecords
)
func TalkRecords() ITalkRecords {
if localTalkRecords == nil {
panic("implement not found for interface ITalkRecords, forgot register?")
}
return localTalkRecords
}
func RegisterTalkRecords(i ITalkRecords) {
localTalkRecords = i
}