POST api/Bas/UpdateStudent

修改

Request Information

URI Parameters

None.

Body Parameters

UpdateStudentCommand
NameDescriptionTypeAdditional information
StudentId

string

None.

StudentName

string

Required

StudentCode

string

Required

IdNo

string

None.

Phone

string

None.

Nation

integer

None.

Gender

integer

None.

LoginName

string

None.

LoginPwd

string

None.

ClassId

string

Required

IsThree

integer

None.

IsBorrow

integer

None.

IsSpecia

integer

None.

IsScience

integer

None.

IsForeign

integer

None.

Status

integer

None.

DispOrder

integer

None.

ExecutionResult

ServiceResult

None.

Request Formats

application/json, text/json

Sample:
{
  "StudentId": "sample string 1",
  "StudentName": "sample string 2",
  "StudentCode": "sample string 3",
  "IdNo": "sample string 4",
  "Phone": "sample string 5",
  "Nation": 6,
  "Gender": 7,
  "LoginName": "sample string 8",
  "LoginPwd": "sample string 9",
  "ClassId": "sample string 10",
  "IsThree": 11,
  "IsBorrow": 12,
  "IsSpecia": 13,
  "IsScience": 14,
  "IsForeign": 15,
  "Status": 16,
  "DispOrder": 17,
  "ExecutionResult": {
    "RetCode": 1,
    "Msg": "sample string 2",
    "Result": {}
  }
}

text/xml

Sample:
<UpdateStudentCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ems.Domain.Bas.Commands">
  <ClassId>sample string 10</ClassId>
  <DispOrder>17</DispOrder>
  <ExecutionResult xmlns:d2p1="http://schemas.datacontract.org/2004/07/Tdf.Utils.Networking">
    <d2p1:Msg>sample string 2</d2p1:Msg>
    <d2p1:Result />
    <d2p1:RetCode>1</d2p1:RetCode>
  </ExecutionResult>
  <Gender>7</Gender>
  <IdNo>sample string 4</IdNo>
  <IsBorrow>12</IsBorrow>
  <IsForeign>15</IsForeign>
  <IsScience>14</IsScience>
  <IsSpecia>13</IsSpecia>
  <IsThree>11</IsThree>
  <LoginName>sample string 8</LoginName>
  <LoginPwd>sample string 9</LoginPwd>
  <Nation>6</Nation>
  <Phone>sample string 5</Phone>
  <Status>16</Status>
  <StudentCode>sample string 3</StudentCode>
  <StudentName>sample string 2</StudentName>
  <StudentId>sample string 1</StudentId>
</UpdateStudentCommand>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UpdateStudentCommand'.

Response Information

Resource Description

ServiceResult
NameDescriptionTypeAdditional information
RetCode

integer

None.

Msg

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "RetCode": 1,
  "Msg": "sample string 2",
  "Result": {}
}

text/xml

Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tdf.Utils.Networking">
  <Msg>sample string 2</Msg>
  <Result />
  <RetCode>1</RetCode>
</ServiceResult>