|
|
|
@ -39,7 +39,7 @@ module Mobile
|
|
|
|
|
desc "获取资源访问地址"
|
|
|
|
|
params do
|
|
|
|
|
requires :userId, type: Integer, desc: "用户ID"
|
|
|
|
|
requires :resouceId, type: String, desc: "资源唯一标示"
|
|
|
|
|
requires :resourceId, type: String, desc: "资源唯一标示"
|
|
|
|
|
requires :accessType, type: Integer, desc: "资源类型"
|
|
|
|
|
end
|
|
|
|
|
get "source_url" do
|
|
|
|
@ -72,7 +72,7 @@ module Mobile
|
|
|
|
|
desc "资源学习情况查询"
|
|
|
|
|
params do
|
|
|
|
|
requires :userId, type: Integer, desc: "用户ID"
|
|
|
|
|
requires :resouceId, type: String, desc: "资源唯一标示"
|
|
|
|
|
requires :resourceId, type: String, desc: "资源唯一标示"
|
|
|
|
|
end
|
|
|
|
|
get 'get_students_data' do
|
|
|
|
|
CnmoocsService.new.get_students_data params
|
|
|
|
|