新增:数据集新字段license_id和paper_content

This commit is contained in:
2024-04-03 10:15:11 +08:00
parent dbfbee78fa
commit 47c4af8ea1
4 changed files with 19 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
json.(@project_dataset, :id, :title, :description)
json.(@project_dataset, :id, :title, :description, :license_id, :paper_content)
json.license_name @project_dataset&.license&.name
json.attachments @attachments do |at|
json.partial! "api/v1/attachments/detail", locals: {attachment: at}
end