POST api/teachingclass/savemyclass
保存当前登陆教师班级信息
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": "0a188564-afb2-443c-8eb5-9443a9a106ab", "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":"0a188564-afb2-443c-8eb5-9443a9a106ab","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>0a188564-afb2-443c-8eb5-9443a9a106ab</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": "d6f70bf2-edfe-4dc1-91eb-d86978f713c0", "StudentId": "sample string 2", "StructureId": 3 }, { "TeachingClassId": "d6f70bf2-edfe-4dc1-91eb-d86978f713c0", "StudentId": "sample string 2", "StructureId": 3 } ], "Id": "d2217676-2543-4533-9098-748f3d53f55e", "CreatedTime": "2024-09-25T00:12:11.2827485+08:00", "IsDeleted": true, "LastUpdatedTime": "2024-09-25T00:12:11.2827485+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":"d6f70bf2-edfe-4dc1-91eb-d86978f713c0","StudentId":"sample string 2","StructureId":3},{"TeachingClassId":"d6f70bf2-edfe-4dc1-91eb-d86978f713c0","StudentId":"sample string 2","StructureId":3}],"Id":"d2217676-2543-4533-9098-748f3d53f55e","CreatedTime":"2024-09-25T00:12:11.2827485+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:12:11.2827485+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:12:11.2827485+08:00</d2p1:CreatedTime> <d2p1:Id>d2217676-2543-4533-9098-748f3d53f55e</d2p1:Id> <d2p1:IsDeleted>true</d2p1:IsDeleted> <d2p1:LastUpdatedTime>2024-09-25T00:12:11.2827485+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>d6f70bf2-edfe-4dc1-91eb-d86978f713c0</d2p1:TeachingClassId> </d2p1:StudentTeachingClass> <d2p1:StudentTeachingClass> <d2p1:StructureId>3</d2p1:StructureId> <d2p1:StudentId>sample string 2</d2p1:StudentId> <d2p1:TeachingClassId>d6f70bf2-edfe-4dc1-91eb-d86978f713c0</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":"d6f70bf2-edfe-4dc1-91eb-d86978f713c0","StudentId":"sample string 2","StructureId":3},{"TeachingClassId":"d6f70bf2-edfe-4dc1-91eb-d86978f713c0","StudentId":"sample string 2","StructureId":3}],"Id":"d2217676-2543-4533-9098-748f3d53f55e","CreatedTime":"2024-09-25T00:12:11.2827485+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:12:11.2827485+08:00"}});