mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
fix type = 0
This commit is contained in:
parent
d7e632b1ce
commit
3e8aabf67e
@ -435,6 +435,7 @@ func (s *userServer) ProcessUserCommandGet(ctx context.Context, req *pbuser.Proc
|
|||||||
for _, command := range commands {
|
for _, command := range commands {
|
||||||
// No need to use index since command is already a pointer
|
// No need to use index since command is already a pointer
|
||||||
commandInfoSlice = append(commandInfoSlice, &pbuser.CommandInfoResp{
|
commandInfoSlice = append(commandInfoSlice, &pbuser.CommandInfoResp{
|
||||||
|
Type: command.Type,
|
||||||
Uuid: command.Uuid,
|
Uuid: command.Uuid,
|
||||||
Value: command.Value,
|
Value: command.Value,
|
||||||
CreateTime: command.CreateTime,
|
CreateTime: command.CreateTime,
|
||||||
@ -458,6 +459,7 @@ func (s *userServer) ProcessUserCommandGetAll(ctx context.Context, req *pbuser.P
|
|||||||
for _, command := range commands {
|
for _, command := range commands {
|
||||||
// No need to use index since command is already a pointer
|
// No need to use index since command is already a pointer
|
||||||
commandInfoSlice = append(commandInfoSlice, &pbuser.AllCommandInfoResp{
|
commandInfoSlice = append(commandInfoSlice, &pbuser.AllCommandInfoResp{
|
||||||
|
Type: command.Type,
|
||||||
Uuid: command.Uuid,
|
Uuid: command.Uuid,
|
||||||
Value: command.Value,
|
Value: command.Value,
|
||||||
CreateTime: command.CreateTime,
|
CreateTime: command.CreateTime,
|
||||||
|
|||||||
@ -17,7 +17,6 @@ package mgo
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"github.com/OpenIMSDK/protocol/user"
|
"github.com/OpenIMSDK/protocol/user"
|
||||||
"github.com/OpenIMSDK/tools/log"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/OpenIMSDK/tools/mgoutil"
|
"github.com/OpenIMSDK/tools/mgoutil"
|
||||||
@ -204,7 +203,6 @@ func (u *UserMgo) GetAllUserCommand(ctx context.Context, userID string) ([]*user
|
|||||||
if err := cursor.Err(); err != nil {
|
if err := cursor.Err(); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
log.ZDebug(ctx, "usercommandget", "commands", commands)
|
|
||||||
return commands, nil
|
return commands, nil
|
||||||
}
|
}
|
||||||
func (u *UserMgo) CountRangeEverydayTotal(ctx context.Context, start time.Time, end time.Time) (map[string]int64, error) {
|
func (u *UserMgo) CountRangeEverydayTotal(ctx context.Context, start time.Time, end time.Time) (map[string]int64, error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user