POST api/classcourseresource/save

保存班课资源

Request Information

URI Parameters

None.

Body Parameters

班课实体

ClassCourseResourceDto
NameDescriptionTypeAdditional information
ClassCourseId

班课ID

globally unique identifier

None.

Resoptions

班课资源详情

Collection of ResOptions

None.

ResourceState

班课资源 1.草稿 2.已发布 3.已下线

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ClassCourseId": "6e39e123-0e42-49ec-9fb6-adb0e545fc66",
  "Resoptions": [
    {
      "ResourceId": "f0c46611-61ec-46bc-809e-147985c8b8f7"
    },
    {
      "ResourceId": "f0c46611-61ec-46bc-809e-147985c8b8f7"
    }
  ],
  "ResourceState": 2
}

text/html

Sample:
{"ClassCourseId":"6e39e123-0e42-49ec-9fb6-adb0e545fc66","Resoptions":[{"ResourceId":"f0c46611-61ec-46bc-809e-147985c8b8f7"},{"ResourceId":"f0c46611-61ec-46bc-809e-147985c8b8f7"}],"ResourceState":2}

application/xml, text/xml

Sample:
<ClassCourseResourceDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <ClassCourseId>6e39e123-0e42-49ec-9fb6-adb0e545fc66</ClassCourseId>
  <Resoptions>
    <ResOptions>
      <ResourceId>f0c46611-61ec-46bc-809e-147985c8b8f7</ResourceId>
    </ResOptions>
    <ResOptions>
      <ResourceId>f0c46611-61ec-46bc-809e-147985c8b8f7</ResourceId>
    </ResOptions>
  </Resoptions>
  <ResourceState>2</ResourceState>
</ClassCourseResourceDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存班课资源

JsonRtnDtoOfBoolean
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": true
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":true}

application/xml, text/xml

Sample:
<JsonRtnDtoOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data>true</Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfboolean>

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":true});