POST api/UserPost/BatchUserPosts

批量设置用户普通岗位(给一个用户设置多个普通岗位)

Request Information

URI Parameters

None.

Body Parameters

WebApi.Models.BatchAddUserPostsModel
NameDescriptionTypeAdditional information
PostIds

岗位ID集合

string

None.

PostNames

岗位名称集合

string

None.

Id

integer

None.

UserId

integer

None.

PostId

integer

None.

CreateTime

date

None.

IsMain

integer

None.

UserName

string

None.

PostName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PostIds": "sample string 1",
  "PostNames": "sample string 2",
  "Id": 3,
  "UserId": 1,
  "PostId": 1,
  "CreateTime": "2026-06-09T21:26:08.5713708+08:00",
  "IsMain": 1,
  "UserName": "sample string 4",
  "PostName": "sample string 5"
}

application/xml, text/xml

Sample:
<BatchAddUserPostsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <CreateTime xmlns="http://schemas.datacontract.org/2004/07/DAL">2026-06-09T21:26:08.5713708+08:00</CreateTime>
  <Id xmlns="http://schemas.datacontract.org/2004/07/DAL">3</Id>
  <IsMain xmlns="http://schemas.datacontract.org/2004/07/DAL">1</IsMain>
  <PostId xmlns="http://schemas.datacontract.org/2004/07/DAL">1</PostId>
  <PostName xmlns="http://schemas.datacontract.org/2004/07/DAL">sample string 5</PostName>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/DAL">1</UserId>
  <UserName xmlns="http://schemas.datacontract.org/2004/07/DAL">sample string 4</UserName>
  <PostIds>sample string 1</PostIds>
  <PostNames>sample string 2</PostNames>
</BatchAddUserPostsModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

System.Web.Http.Results.JsonResultOfDAL.HandleResult
NameDescriptionTypeAdditional 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.