POST api/resource/update
更新资源
Request Information
URI Parameters
None.
Body Parameters
ResourceName | Description | Type | Additional information |
---|---|---|---|
UserId |
用户编号(创建人编号) |
integer |
None. |
ResourceName |
资源名称 |
string |
None. |
Suffix |
后缀名,文件扩展名 |
string |
None. |
ResourceTypeCode |
资源类型编码 |
string |
None. |
TechType |
技术分类(文件类资源 例如 PPT,PDF等) |
integer |
None. |
AppArrangeId |
应用分类(文件类资源 例如 案例,讲义,拓展资源) |
integer |
None. |
AppArrangePath |
应用分类路径(文件类资源 例如 案例,讲义,拓展资源) |
string |
None. |
ResourceOrigin |
资源源地址 |
string |
None. |
Labls |
资源标签 |
string |
None. |
ConvertState |
转码状态 1.待转码 2.转码中 3.转码完成 |
integer |
None. |
Intro |
资源简介 |
string |
None. |
PageTotal |
文档类资源转图片后的页数(图片路径为资源名称去后缀/{i}.jpg)i为从0-PageTotal的整数 |
integer |
None. |
ProfessionalCourseId |
课程编号 |
integer |
None. |
ProfessionalPath |
课程专业路径 |
string |
None. |
DownAmount |
下载量 |
integer |
None. |
ViewAmount |
浏览量 |
integer |
None. |
Prime |
加精 |
date |
None. |
Top |
置顶 |
date |
None. |
Shared |
共享 |
boolean |
None. |
Audit |
审核 (需要转换的资源应在资源转换结束后将资源状态设置为等待审核状态) |
AuditState |
None. |
Copyright |
原创 |
boolean |
None. |
Grade |
年级 |
integer |
None. |
Semester |
学期 |
Semester |
None. |
IsPreparation |
是否为备课资源 |
boolean |
None. |
RepositoryId |
章节(题库)的ID |
integer |
None. |
Id |
主键 |
globally unique identifier |
None. |
CreatedTime |
创建时间 |
date |
None. |
IsDeleted |
是否删除 |
boolean |
None. |
LastUpdatedTime |
最后更新时间 |
date |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserId": 1, "ResourceName": "sample string 2", "Suffix": "sample string 3", "ResourceTypeCode": "sample string 4", "TechType": 5, "AppArrangeId": 1, "AppArrangePath": "sample string 6", "ResourceOrigin": "sample string 7", "Labls": "sample string 8", "ConvertState": 9, "Intro": "sample string 10", "PageTotal": 11, "ProfessionalCourseId": 12, "ProfessionalPath": "sample string 13", "DownAmount": 14, "ViewAmount": 15, "Prime": "2024-09-25T00:05:55.4464614+08:00", "Top": "2024-09-25T00:05:55.4464614+08:00", "Shared": true, "Audit": 1, "Copyright": true, "Grade": 18, "Semester": 1, "IsPreparation": true, "RepositoryId": 20, "Id": "90c9f204-3525-4584-80f0-e8203340bcd9", "CreatedTime": "2024-09-25T00:05:55.4464614+08:00", "IsDeleted": true, "LastUpdatedTime": "2024-09-25T00:05:55.4464614+08:00" }
text/html
Sample:
{"UserId":1,"ResourceName":"sample string 2","Suffix":"sample string 3","ResourceTypeCode":"sample string 4","TechType":5,"AppArrangeId":1,"AppArrangePath":"sample string 6","ResourceOrigin":"sample string 7","Labls":"sample string 8","ConvertState":9,"Intro":"sample string 10","PageTotal":11,"ProfessionalCourseId":12,"ProfessionalPath":"sample string 13","DownAmount":14,"ViewAmount":15,"Prime":"2024-09-25T00:05:55.4464614+08:00","Top":"2024-09-25T00:05:55.4464614+08:00","Shared":true,"Audit":1,"Copyright":true,"Grade":18,"Semester":1,"IsPreparation":true,"RepositoryId":20,"Id":"90c9f204-3525-4584-80f0-e8203340bcd9","CreatedTime":"2024-09-25T00:05:55.4464614+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:05:55.4464614+08:00"}
application/xml, text/xml
Sample:
<Resource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data"> <CreatedTime>2024-09-25T00:05:55.4464614+08:00</CreatedTime> <Id>90c9f204-3525-4584-80f0-e8203340bcd9</Id> <IsDeleted>true</IsDeleted> <LastUpdatedTime>2024-09-25T00:05:55.4464614+08:00</LastUpdatedTime> <AppArrangeId>1</AppArrangeId> <AppArrangePath>sample string 6</AppArrangePath> <Audit>初始状态</Audit> <ConvertState>9</ConvertState> <Copyright>true</Copyright> <DownAmount>14</DownAmount> <Grade>18</Grade> <Intro>sample string 10</Intro> <IsPreparation>true</IsPreparation> <Labls>sample string 8</Labls> <PageTotal>11</PageTotal> <Prime>2024-09-25T00:05:55.4464614+08:00</Prime> <ProfessionalCourseId>12</ProfessionalCourseId> <ProfessionalPath>sample string 13</ProfessionalPath> <RepositoryId>20</RepositoryId> <ResourceName>sample string 2</ResourceName> <ResourceOrigin>sample string 7</ResourceOrigin> <ResourceTypeCode>sample string 4</ResourceTypeCode> <Semester>第一学期</Semester> <Shared>true</Shared> <Suffix>sample string 3</Suffix> <TechType>5</TechType> <Top>2024-09-25T00:05:55.4464614+08:00</Top> <UserId>1</UserId> <ViewAmount>15</ViewAmount> </Resource>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
更新资源
JsonRtnDtoOfResourceName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | Resource |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": { "UserId": 1, "ResourceName": "sample string 2", "Suffix": "sample string 3", "ResourceTypeCode": "sample string 4", "TechType": 5, "AppArrangeId": 1, "AppArrangePath": "sample string 6", "ResourceOrigin": "sample string 7", "Labls": "sample string 8", "ConvertState": 9, "Intro": "sample string 10", "PageTotal": 11, "ProfessionalCourseId": 12, "ProfessionalPath": "sample string 13", "DownAmount": 14, "ViewAmount": 15, "Prime": "2024-09-25T00:05:55.4528987+08:00", "Top": "2024-09-25T00:05:55.4528987+08:00", "Shared": true, "Audit": 1, "Copyright": true, "Grade": 18, "Semester": 1, "IsPreparation": true, "RepositoryId": 20, "Id": "5eed3b38-c393-4cb1-b0ae-22a5c6fd139b", "CreatedTime": "2024-09-25T00:05:55.4528987+08:00", "IsDeleted": true, "LastUpdatedTime": "2024-09-25T00:05:55.4528987+08:00" } }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":{"UserId":1,"ResourceName":"sample string 2","Suffix":"sample string 3","ResourceTypeCode":"sample string 4","TechType":5,"AppArrangeId":1,"AppArrangePath":"sample string 6","ResourceOrigin":"sample string 7","Labls":"sample string 8","ConvertState":9,"Intro":"sample string 10","PageTotal":11,"ProfessionalCourseId":12,"ProfessionalPath":"sample string 13","DownAmount":14,"ViewAmount":15,"Prime":"2024-09-25T00:05:55.4528987+08:00","Top":"2024-09-25T00:05:55.4528987+08:00","Shared":true,"Audit":1,"Copyright":true,"Grade":18,"Semester":1,"IsPreparation":true,"RepositoryId":20,"Id":"5eed3b38-c393-4cb1-b0ae-22a5c6fd139b","CreatedTime":"2024-09-25T00:05:55.4528987+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:05:55.4528987+08:00"}}
application/xml, text/xml
Sample:
<JsonRtnDtoOfResourcemEDjlcEG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data"> <d2p1:CreatedTime>2024-09-25T00:05:55.4528987+08:00</d2p1:CreatedTime> <d2p1:Id>5eed3b38-c393-4cb1-b0ae-22a5c6fd139b</d2p1:Id> <d2p1:IsDeleted>true</d2p1:IsDeleted> <d2p1:LastUpdatedTime>2024-09-25T00:05:55.4528987+08:00</d2p1:LastUpdatedTime> <d2p1:AppArrangeId>1</d2p1:AppArrangeId> <d2p1:AppArrangePath>sample string 6</d2p1:AppArrangePath> <d2p1:Audit>初始状态</d2p1:Audit> <d2p1:ConvertState>9</d2p1:ConvertState> <d2p1:Copyright>true</d2p1:Copyright> <d2p1:DownAmount>14</d2p1:DownAmount> <d2p1:Grade>18</d2p1:Grade> <d2p1:Intro>sample string 10</d2p1:Intro> <d2p1:IsPreparation>true</d2p1:IsPreparation> <d2p1:Labls>sample string 8</d2p1:Labls> <d2p1:PageTotal>11</d2p1:PageTotal> <d2p1:Prime>2024-09-25T00:05:55.4528987+08:00</d2p1:Prime> <d2p1:ProfessionalCourseId>12</d2p1:ProfessionalCourseId> <d2p1:ProfessionalPath>sample string 13</d2p1:ProfessionalPath> <d2p1:RepositoryId>20</d2p1:RepositoryId> <d2p1:ResourceName>sample string 2</d2p1:ResourceName> <d2p1:ResourceOrigin>sample string 7</d2p1:ResourceOrigin> <d2p1:ResourceTypeCode>sample string 4</d2p1:ResourceTypeCode> <d2p1:Semester>第一学期</d2p1:Semester> <d2p1:Shared>true</d2p1:Shared> <d2p1:Suffix>sample string 3</d2p1:Suffix> <d2p1:TechType>5</d2p1:TechType> <d2p1:Top>2024-09-25T00:05:55.4528987+08:00</d2p1:Top> <d2p1:UserId>1</d2p1:UserId> <d2p1:ViewAmount>15</d2p1:ViewAmount> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfResourcemEDjlcEG>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"UserId":1,"ResourceName":"sample string 2","Suffix":"sample string 3","ResourceTypeCode":"sample string 4","TechType":5,"AppArrangeId":1,"AppArrangePath":"sample string 6","ResourceOrigin":"sample string 7","Labls":"sample string 8","ConvertState":9,"Intro":"sample string 10","PageTotal":11,"ProfessionalCourseId":12,"ProfessionalPath":"sample string 13","DownAmount":14,"ViewAmount":15,"Prime":"2024-09-25T00:05:55.4528987+08:00","Top":"2024-09-25T00:05:55.4528987+08:00","Shared":true,"Audit":1,"Copyright":true,"Grade":18,"Semester":1,"IsPreparation":true,"RepositoryId":20,"Id":"5eed3b38-c393-4cb1-b0ae-22a5c6fd139b","CreatedTime":"2024-09-25T00:05:55.4528987+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:05:55.4528987+08:00"}});