add: glcc news management and api data

This commit is contained in:
2022-04-07 16:13:32 +08:00
parent fde01e62ef
commit 8aa935ad5c
13 changed files with 190 additions and 1 deletions

View File

@@ -35,6 +35,8 @@ class Topic < ApplicationRecord
'Topic::ExcellentProject'
when 'experience_forum'
'Topic::ExperienceForum'
when "glcc_news"
'Topic::GlccNews'
when 'pinned_forum'
'Topic::PinnedForum'
end

View File

@@ -0,0 +1,17 @@
# == Schema Information
#
# Table name: topics
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# uuid :integer
# image_url :string(255)
# url :string(255)
# order_index :integer
#
# GLCC 新闻稿
class Topic::GlccNews < Topic
end