POST api/teachingclass/CopyTeachingClass
复制班级到指定课程
Request Information
URI Parameters
None.
Body Parameters
教学班级实体
TeachingClassCopyDtoName | Description | Type | Additional information |
---|---|---|---|
IdSet |
班级编号集合 |
Collection of globally unique identifier |
None. |
UserId |
复制到指定老师 |
integer |
None. |
ProfessionalCourseId |
课程编号 |
integer |
None. |
ProfessionalPath |
课程专业路径 |
string |
None. |
ClassNameCopyFormat |
班级名称格式化类型 |
ClassNameCopyFormat |
None. |
NameFormatInfo |
格式化内容, 前后缀直接填写对应字符串即可 格式化类型为替换时,关键字以“key:value”的形式组织数据,多个替换关键字用分号“;”隔开 比如将“检验毕业考核(专)考试班级”替换为“化验毕业考核(普)考试班级” 则数据应组织为“检验:化验;专:普” |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "IdSet": [ "ae8d3e53-f66d-4656-868d-861739953f9c", "6c8aace0-a2b6-4d89-a668-7883b46f0c66" ], "UserId": 1, "ProfessionalCourseId": 2, "ProfessionalPath": "sample string 3", "ClassNameCopyFormat": 1, "NameFormatInfo": "sample string 4" }
text/html
Sample:
{"IdSet":["ae8d3e53-f66d-4656-868d-861739953f9c","6c8aace0-a2b6-4d89-a668-7883b46f0c66"],"UserId":1,"ProfessionalCourseId":2,"ProfessionalPath":"sample string 3","ClassNameCopyFormat":1,"NameFormatInfo":"sample string 4"}
application/xml, text/xml
Sample:
<TeachingClassCopyDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <ClassNameCopyFormat>前缀</ClassNameCopyFormat> <IdSet xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>ae8d3e53-f66d-4656-868d-861739953f9c</d2p1:guid> <d2p1:guid>6c8aace0-a2b6-4d89-a668-7883b46f0c66</d2p1:guid> </IdSet> <NameFormatInfo>sample string 4</NameFormatInfo> <ProfessionalCourseId>2</ProfessionalCourseId> <ProfessionalPath>sample string 3</ProfessionalPath> <UserId>1</UserId> </TeachingClassCopyDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
复制班级到指定课程
JsonRtnDtoOfBooleanName | Description | Type | Additional 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});