From 66a345364f4cdcf5702fe817d6aa01d236a03f8d Mon Sep 17 00:00:00 2001
From: ssongliu <73214554+ssongliu@users.noreply.github.com>
Date: Wed, 22 Mar 2023 18:48:29 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=88=86=E7=BB=84?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=20(#371)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
backend/app/service/group.go | 2 +-
frontend/src/components/group/index.vue | 4 ++--
frontend/src/lang/modules/en.ts | 2 +-
frontend/src/lang/modules/zh.ts | 4 ++--
frontend/src/views/home/index.vue | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/backend/app/service/group.go b/backend/app/service/group.go
index 9247eb161..4f0feb4ed 100644
--- a/backend/app/service/group.go
+++ b/backend/app/service/group.go
@@ -22,7 +22,7 @@ func NewIGroupService() IGroupService {
}
func (u *GroupService) List(req dto.GroupSearch) ([]dto.GroupInfo, error) {
- groups, err := groupRepo.GetList(commonRepo.WithByType(req.Type))
+ groups, err := groupRepo.GetList(commonRepo.WithByType(req.Type), commonRepo.WithOrderBy("created_at desc"))
if err != nil {
return nil, constant.ErrRecordNotFound
}
diff --git a/frontend/src/components/group/index.vue b/frontend/src/components/group/index.vue
index f29b8c5f3..f6b291f07 100644
--- a/frontend/src/components/group/index.vue
+++ b/frontend/src/components/group/index.vue
@@ -20,7 +20,7 @@