POST api/UserPost/Search
根据用户id(全部查询0)或岗位id(全部查询0),查询所有设置
Request Information
URI Parameters
None.
Body Parameters
DAL.UserPostQueryParam| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
用户id |
integer |
None. |
| PostId |
岗位id |
integer |
None. |
| Value | string |
None. |
|
| StartIndex |
获取起始记录 从0开始 |
integer |
None. |
| Page |
起始页码 从1开始 |
integer |
None. |
| Rows |
每页记录数,默认10 |
integer |
None. |
| Order |
排序方式,默认升序(asc) |
string |
None. |
| sort |
用来排序的字段 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"PostId": 2,
"Value": "sample string 3",
"StartIndex": 15,
"Page": 4,
"Rows": 5,
"Order": "sample string 6",
"sort": "sample string 7"
}
application/xml, text/xml
Sample:
<UserPostQueryParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAL"> <Order>sample string 6</Order> <Page>4</Page> <Rows>5</Rows> <sort>sample string 7</sort> <Value>sample string 3</Value> <PostId>2</PostId> <UserId>1</UserId> </UserPostQueryParam>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
System.Web.Http.Results.JsonResultOfDAL.HandleResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Content | DAL.HandleResult |
None. |
|
| SerializerSettings | Newtonsoft.Json.JsonSerializerSettings |
None. |
|
| Encoding | System.Text.Encoding |
None. |
|
| Request | System.Net.Http.HttpRequestMessage |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.