POST api/DingDingProgram/GetEmp

获取当前用户

Request Information

URI Parameters

None.

Body Parameters

DingUserID
NameDescriptionTypeAdditional information
UserID

string

None.

msg

消息

string

None.

result

是否成功

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": "sample string 1",
  "msg": "sample string 2",
  "result": true
}

application/xml, text/xml

Sample:
<DingUserID xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models">
  <msg xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi">sample string 2</msg>
  <result xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi">true</result>
  <UserID>sample string 1</UserID>
</DingUserID>

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 'DingUserID'.

Response Information

Resource Description

DingUser
NameDescriptionTypeAdditional information
UserID

string

None.

emp_code

string

None.

emp_id

integer

None.

dep_id

integer

None.

emp_name

string

None.

msg

消息

string

None.

result

是否成功

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "UserID": "sample string 1",
  "emp_code": "sample string 2",
  "emp_id": 3,
  "dep_id": 4,
  "emp_name": "sample string 5",
  "msg": "sample string 6",
  "result": true
}

application/xml, text/xml

Sample:
<DingUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models">
  <msg xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi">sample string 6</msg>
  <result xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi">true</result>
  <UserID>sample string 1</UserID>
  <dep_id>4</dep_id>
  <emp_code>sample string 2</emp_code>
  <emp_id>3</emp_id>
  <emp_name>sample string 5</emp_name>
</DingUser>