mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-11 15:32:25 +08:00
api
Signed-off-by: ‘hanzhixiao’ <‘709674996@qq.com’>
This commit is contained in:
parent
8135c51737
commit
d3e04308b4
11
build.cmd
Normal file
11
build.cmd
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
go build -o api.exe ./cmd/openim-api/main.go
|
||||||
|
go build -o auth.exe ./cmd/openim-rpc/openim-rpc-auth/main.go
|
||||||
|
go build -o conversation.exe ./cmd/openim-rpc/openim-rpc-conversation/main.go
|
||||||
|
go build -o friend.exe ./cmd/openim-rpc/openim-rpc-friend/main.go
|
||||||
|
go build -o group.exe ./cmd/openim-rpc/openim-rpc-group/main.go
|
||||||
|
go build -o msg.exe ./cmd/openim-rpc/openim-rpc-msg/main.go
|
||||||
|
go build -o third.exe ./cmd/openim-rpc/openim-rpc-third/main.go
|
||||||
|
go build -o user.exe ./cmd/openim-rpc/openim-rpc-user/main.go
|
||||||
|
go build -o push.exe ./cmd/openim-push/main.go
|
||||||
|
go build -o msgtransfer.exe ./cmd/openim-msgtransfer/main.go
|
||||||
|
go build -o msggateway.exe ./cmd/openim-msggateway/main.go
|
||||||
@ -1197,6 +1197,11 @@ func (m *MsgMongoDriver) searchMessage(ctx context.Context, req *msg.SearchMessa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
start := (req.Pagination.PageNumber - 1) * req.Pagination.ShowNumber
|
start := (req.Pagination.PageNumber - 1) * req.Pagination.ShowNumber
|
||||||
msgs = msgs[start : start+req.Pagination.ShowNumber]
|
n := int32(len(msgs))
|
||||||
|
if start+req.Pagination.ShowNumber < n {
|
||||||
|
msgs = msgs[start : start+req.Pagination.ShowNumber]
|
||||||
|
} else {
|
||||||
|
msgs = msgs[start:]
|
||||||
|
}
|
||||||
return msgs, nil
|
return msgs, nil
|
||||||
}
|
}
|
||||||
|
|||||||
12
start.bat
Normal file
12
start.bat
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
cd /d %~dp0
|
||||||
|
start api.exe -p 10002
|
||||||
|
start user.exe -p 10010
|
||||||
|
start friend.exe -p 10020
|
||||||
|
start group.exe -p 10050
|
||||||
|
start msg.exe -p 10030
|
||||||
|
start third.exe -p 10090
|
||||||
|
start conversation.exe -p 10080
|
||||||
|
start push.exe -p 10070
|
||||||
|
start auth.exe -p 10060
|
||||||
|
start msgtransfer.exe
|
||||||
|
start msggateway.exe -p 10040 -w 10001
|
||||||
Loading…
x
Reference in New Issue
Block a user