|
|
|
@ -22,8 +22,7 @@ func (s *APIV1Service) ListAllUserStats(ctx context.Context, _ *v1pb.ListAllUser
|
|
|
|
|
|
|
|
|
|
|
|
normalStatus := store.Normal
|
|
|
|
normalStatus := store.Normal
|
|
|
|
memoFind := &store.FindMemo{
|
|
|
|
memoFind := &store.FindMemo{
|
|
|
|
// Exclude comments by default.
|
|
|
|
ExcludeComments: false,
|
|
|
|
ExcludeComments: true,
|
|
|
|
|
|
|
|
ExcludeContent: true,
|
|
|
|
ExcludeContent: true,
|
|
|
|
RowStatus: &normalStatus,
|
|
|
|
RowStatus: &normalStatus,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -83,9 +82,8 @@ func (s *APIV1Service) GetUserStats(ctx context.Context, request *v1pb.GetUserSt
|
|
|
|
|
|
|
|
|
|
|
|
normalStatus := store.Normal
|
|
|
|
normalStatus := store.Normal
|
|
|
|
memoFind := &store.FindMemo{
|
|
|
|
memoFind := &store.FindMemo{
|
|
|
|
CreatorID: &userID,
|
|
|
|
CreatorID: &userID,
|
|
|
|
// Exclude comments by default.
|
|
|
|
ExcludeComments: false,
|
|
|
|
ExcludeComments: true,
|
|
|
|
|
|
|
|
ExcludeContent: true,
|
|
|
|
ExcludeContent: true,
|
|
|
|
RowStatus: &normalStatus,
|
|
|
|
RowStatus: &normalStatus,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|