POST api/teachingclass/save
保存教学班级信息
Request Information
URI Parameters
None.
Body Parameters
教学班级实体
TeachingClassSaveDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
班级编号 |
globally unique identifier |
None. |
UserId |
所属用户 |
integer |
None. |
ProfessionalCourseId |
课程编号 |
integer |
None. |
ClassName |
班级名称 |
string |
None. |
ProfessionalPath |
课程专业路径 |
string |
None. |
Grade |
年级 |
integer |
None. |
Semester |
学期 |
Semester |
None. |
AcademicYear | string |
None. |
|
SchoolName |
学院名称 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "a56e1ac2-e8f1-471c-99af-7dc068a8b7e2", "UserId": 2, "ProfessionalCourseId": 3, "ClassName": "sample string 4", "ProfessionalPath": "sample string 5", "Grade": 6, "Semester": 1, "AcademicYear": "sample string 7", "SchoolName": "sample string 8" }
text/html
Sample:
{"Id":"a56e1ac2-e8f1-471c-99af-7dc068a8b7e2","UserId":2,"ProfessionalCourseId":3,"ClassName":"sample string 4","ProfessionalPath":"sample string 5","Grade":6,"Semester":1,"AcademicYear":"sample string 7","SchoolName":"sample string 8"}
application/xml, text/xml
Sample:
<TeachingClassSaveDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <AcademicYear>sample string 7</AcademicYear> <ClassName>sample string 4</ClassName> <Grade>6</Grade> <Id>a56e1ac2-e8f1-471c-99af-7dc068a8b7e2</Id> <ProfessionalCourseId>3</ProfessionalCourseId> <ProfessionalPath>sample string 5</ProfessionalPath> <SchoolName>sample string 8</SchoolName> <Semester>第一学期</Semester> <UserId>2</UserId> </TeachingClassSaveDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
保存教学班级信息
JsonRtnDtoOfTeachingClassName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | TeachingClass |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": { "UserId": 1, "ProfessionalCourseId": 2, "ProfessionalPath": "sample string 3", "ClassName": "sample string 4", "Grade": 5, "AcademicYear": "sample string 6", "Semester": 1, "SchoolName": "sample string 7", "AdministrativeClass": "sample string 8", "StudentTeachingClasses": [ { "TeachingClassId": "43803138-9c86-4e90-8f0c-63d25cc8c1c1", "StudentId": "sample string 2", "StructureId": 3 }, { "TeachingClassId": "43803138-9c86-4e90-8f0c-63d25cc8c1c1", "StudentId": "sample string 2", "StructureId": 3 } ], "Id": "d3fdd748-391a-4839-bc7a-88599daa805a", "CreatedTime": "2024-09-25T00:07:59.8619141+08:00", "IsDeleted": true, "LastUpdatedTime": "2024-09-25T00:07:59.8619141+08:00" } }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":{"UserId":1,"ProfessionalCourseId":2,"ProfessionalPath":"sample string 3","ClassName":"sample string 4","Grade":5,"AcademicYear":"sample string 6","Semester":1,"SchoolName":"sample string 7","AdministrativeClass":"sample string 8","StudentTeachingClasses":[{"TeachingClassId":"43803138-9c86-4e90-8f0c-63d25cc8c1c1","StudentId":"sample string 2","StructureId":3},{"TeachingClassId":"43803138-9c86-4e90-8f0c-63d25cc8c1c1","StudentId":"sample string 2","StructureId":3}],"Id":"d3fdd748-391a-4839-bc7a-88599daa805a","CreatedTime":"2024-09-25T00:07:59.8619141+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:07:59.8619141+08:00"}}
application/xml, text/xml
Sample:
<JsonRtnDtoOfTeachingClassmEDjlcEG 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:07:59.8619141+08:00</d2p1:CreatedTime> <d2p1:Id>d3fdd748-391a-4839-bc7a-88599daa805a</d2p1:Id> <d2p1:IsDeleted>true</d2p1:IsDeleted> <d2p1:LastUpdatedTime>2024-09-25T00:07:59.8619141+08:00</d2p1:LastUpdatedTime> <d2p1:AcademicYear>sample string 6</d2p1:AcademicYear> <d2p1:AdministrativeClass>sample string 8</d2p1:AdministrativeClass> <d2p1:ClassName>sample string 4</d2p1:ClassName> <d2p1:Grade>5</d2p1:Grade> <d2p1:ProfessionalCourseId>2</d2p1:ProfessionalCourseId> <d2p1:ProfessionalPath>sample string 3</d2p1:ProfessionalPath> <d2p1:SchoolName>sample string 7</d2p1:SchoolName> <d2p1:Semester>第一学期</d2p1:Semester> <d2p1:StudentTeachingClasses> <d2p1:StudentTeachingClass> <d2p1:StructureId>3</d2p1:StructureId> <d2p1:StudentId>sample string 2</d2p1:StudentId> <d2p1:TeachingClassId>43803138-9c86-4e90-8f0c-63d25cc8c1c1</d2p1:TeachingClassId> </d2p1:StudentTeachingClass> <d2p1:StudentTeachingClass> <d2p1:StructureId>3</d2p1:StructureId> <d2p1:StudentId>sample string 2</d2p1:StudentId> <d2p1:TeachingClassId>43803138-9c86-4e90-8f0c-63d25cc8c1c1</d2p1:TeachingClassId> </d2p1:StudentTeachingClass> </d2p1:StudentTeachingClasses> <d2p1:UserId>1</d2p1:UserId> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfTeachingClassmEDjlcEG>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"UserId":1,"ProfessionalCourseId":2,"ProfessionalPath":"sample string 3","ClassName":"sample string 4","Grade":5,"AcademicYear":"sample string 6","Semester":1,"SchoolName":"sample string 7","AdministrativeClass":"sample string 8","StudentTeachingClasses":[{"TeachingClassId":"43803138-9c86-4e90-8f0c-63d25cc8c1c1","StudentId":"sample string 2","StructureId":3},{"TeachingClassId":"43803138-9c86-4e90-8f0c-63d25cc8c1c1","StudentId":"sample string 2","StructureId":3}],"Id":"d3fdd748-391a-4839-bc7a-88599daa805a","CreatedTime":"2024-09-25T00:07:59.8619141+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:07:59.8619141+08:00"}});