MSP-7036 fix search & sort
This commit is contained in:
1 parent
71e0768231
commit
ec327424c9
19 files changed
+447
-126
No files matched your search
@@ -33,6 +33,13 @@ func NewSession(service SessionService) Session {
|
||||
// @Failure 500 {object} domain.GrpcError
|
||||
// @Router /session/all [POST]
|
||||
func (c Session) All(ctx context.Context, req domain.SessionPageRequest) (*domain.SessionResponse, error) {
|
||||
if req.Order == nil {
|
||||
req.Order = &domain.OrderParams{
|
||||
Field: domain.DefaultOrderField,
|
||||
Type: domain.DefaultOrderType,
|
||||
}
|
||||
}
|
||||
|
||||
return c.service.All(ctx, req)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user