实现管理员认领功能

This commit is contained in:
2026-01-06 15:33:55 +08:00
parent f638baec64
commit b7a9682552
3 changed files with 36 additions and 1 deletions

View File

@@ -191,7 +191,7 @@ func PageResourceShortByAdmin(c *fiber.Ctx) error {
return err
}
list, total, err := q.Resource.Debug().
list, total, err := q.Resource.
LeftJoin(q.ResourceShort, q.ResourceShort.ResourceID.EqCol(q.Resource.ID)).
Where(q.Resource.Type.Eq(int(m.ResourceTypeShort))).
FindByPage(req.GetOffset(), req.GetLimit())