POST api/TiaoBan/AddTiaoBan

新建调班

Request Information

URI Parameters

None.

Body Parameters

tiaobanPost
NameDescriptionTypeAdditional information
cause

string

None.

begindt

date

None.

endt

date

None.

type

调换班类型。1:调班。3换班。(2019年5月修改,已不存在换班)

integer

None.

toUserId

代办人id

integer

None.

shenpiUserId

审批人id

integer

None.

huanbanId

integer

None.

tel

登录账号

string

None.

token

token

string

None.

uid

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "cause": "sample string 1",
  "begindt": "2026-01-11T21:23:45.4262247+08:00",
  "endt": "2026-01-11T21:23:45.4262247+08:00",
  "type": 1,
  "toUserId": 4,
  "shenpiUserId": 5,
  "huanbanId": 1,
  "tel": "sample string 6",
  "token": "sample string 7",
  "uid": 1
}

application/xml, text/xml

Sample:
<tiaobanPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
  <tel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 6</tel>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 7</token>
  <uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid>
  <begindt>2026-01-11T21:23:45.4262247+08:00</begindt>
  <cause>sample string 1</cause>
  <endt>2026-01-11T21:23:45.4262247+08:00</endt>
  <huanbanId>1</huanbanId>
  <shenpiUserId>5</shenpiUserId>
  <toUserId>4</toUserId>
  <type>1</type>
</tiaobanPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResult
NameDescriptionTypeAdditional information
code

状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在...

integer

None.

msg

成功或者错误的说明,例如:登录成功,token过期...

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "msg": "sample string 2"
}

application/xml, text/xml

Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <code>1</code>
  <msg>sample string 2</msg>
</BaseResult>