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