获取Minio的上传签名

请求URL

/res/getSignature GET POST

请求参数 application/x-www-form-urlencoded

参数名 类型 必须 描述
extension string 上传的扩展名

返回结果

{}

获取Minio的上传签名

请求URL

/res/getSignatureByMd5 GET POST

请求参数 application/x-www-form-urlencoded

参数名 类型 必须 描述
extension string 上传的扩展名
file_md5 string 文件md5值

返回结果

{}

增加

请求URL

/res/addResourceBase GET POST

请求参数 application/x-www-form-urlencoded

参数名 类型 必须 描述
resource_title string 资源名称
resource_size_int long 资源大小
extension string 扩展名
file_id string 对应文件的id号,是一个guid
file_md5 string 文件的md5值
scheme_id int 结构id
structure_id int 结构id
stage_id int 学段id
subject_id int 科目id

返回结果

{}

删除

请求URL

/res/delResourceBaseById GET POST

请求参数 application/x-www-form-urlencoded

参数名 类型 必须 描述
resource_id_int int 主键

返回结果

{}

按ID修改

请求URL

/res/updateResourceBaseById GET POST

请求参数 application/x-www-form-urlencoded

参数名 类型 必须 描述
resource_id_int int 主键
resource_title string 资源名称
resource_size_int long 资源大小
person_id string 上传人员id
scheme_id int 结构id
structure_id int 结构id
stage_id int 学段id
subject_id int 科目id

返回结果

{}

按ID查询

请求URL

/res/getResourceBaseById GET POST

请求参数 application/x-www-form-urlencoded

参数名 类型 必须 描述
resource_id_int int 主键

返回结果

{}

查询列表

请求URL

/res/getResourceBaseList GET POST

请求参数 application/x-www-form-urlencoded

参数名 类型 必须 描述
stage_id int 学段
scheme_id int 版本
subject_id int 学科
structure_id int 结构ID
keyword string 搜索关键词
pageNum int 页码
pageSize int 每页数量

返回结果

{}

获取所有的扩展名与缩略图的关系

请求URL

/res/getThumbs GET POST

返回结果

{}