POST api/DingDingProgram/GetUser

获取当前用户

Request Information

URI Parameters

None.

Body Parameters

GetUserIdRequest
NameDescriptionTypeAdditional information
authCode

code

string

None.

appName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "authCode": "sample string 1",
  "appName": "sample string 2"
}

application/xml, text/xml

Sample:
<GetUserIdRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models">
  <appName>sample string 2</appName>
  <authCode>sample string 1</authCode>
</GetUserIdRequest>

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

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>