新增:列表返回是否置顶字段

This commit is contained in:
2024-07-16 10:17:09 +08:00
parent d577f1691a
commit 21eb842766
4 changed files with 10 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
json.total_count @organizations.total_count
json.organizations @organizations do |organization|
json.partial! "/organizations/organizations/detail", organization: organization
json.is_home_top @home_top_ids.include?(organization.id)
end