|
|
|
@ -37,6 +37,16 @@ module Mobile
|
|
|
|
|
CnmoocsService.new.create_user params
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
desc "获取资源访问地址"
|
|
|
|
|
params do
|
|
|
|
|
requires :userId, type: Integer, desc: "用户ID"
|
|
|
|
|
requires :resouceId, type: String, desc: "资源唯一标示"
|
|
|
|
|
requires :accessType, type: Integer, desc: "资源类型"
|
|
|
|
|
end
|
|
|
|
|
get "source_url" do
|
|
|
|
|
CnmoocsService.new.source_url(params)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
desc "远程登录"
|
|
|
|
|
params do
|
|
|
|
|
requires :mail, type: String, desc: "邮箱地址"
|
|
|
|
|