dev_aliyun_beta
parent
080d18ce30
commit
c082d3d5db
@ -1,10 +1,17 @@
|
||||
json.shixun_counts @shixuns_count
|
||||
json.shixun_list @shixuns do |shixun|
|
||||
json.shixun_id shixun.id
|
||||
json.identifier shixun.identifier
|
||||
json.shixun_name shixun.name
|
||||
json.myshixuns_count shixun.myshixuns_count
|
||||
json.school shixun.user&.school_name
|
||||
json.creator shixun.user&.full_name
|
||||
json.level level_to_s(shixun.trainee)
|
||||
end
|
||||
|
||||
json.shixuns do
|
||||
json.array! @shixuns do |s|
|
||||
json.shixun_id s.id
|
||||
json.shixun_name s.name
|
||||
json.shixun_user s.user.real_name
|
||||
json.shixun_user_count s.myshixuns_count
|
||||
end
|
||||
json.tags @tags do |tag|
|
||||
json.tag_id tag.id
|
||||
json.tag_name tag.name
|
||||
end
|
||||
|
||||
json.shixuns_count @total_count
|
||||
json.search_tags @search_tags
|
Loading…
Reference in new issue