POST api/DepartmentWork/CreateOrEdit

创建编辑

Request Information

URI Parameters

None.

Body Parameters

DAL.t_department_work
NameDescriptionTypeAdditional information
Id

integer

None.

CreateId

integer

None.

CreateTime

date

None.

CompanyId

integer

None.

DepartmentId

integer

None.

WorkUserId

integer

None.

WorkEndDate

date

None.

WorkUserName

string

None.

WorkContent

string

None.

Status

integer

None.

WorkStartTime

date

None.

WorkEndTime

date

None.

ResultRemark

string

None.

DepartmentName

string

None.

NoticUserIds

string

None.

NoticUserNames

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CreateId": 1,
  "CreateTime": "2026-06-09T21:16:14.8659218+08:00",
  "CompanyId": 3,
  "DepartmentId": 4,
  "WorkUserId": 1,
  "WorkEndDate": "2026-06-09T21:16:14.8659218+08:00",
  "WorkUserName": "sample string 5",
  "WorkContent": "sample string 6",
  "Status": 7,
  "WorkStartTime": "2026-06-09T21:16:14.8669223+08:00",
  "WorkEndTime": "2026-06-09T21:16:14.8669223+08:00",
  "ResultRemark": "sample string 8",
  "DepartmentName": "sample string 9",
  "NoticUserIds": "sample string 10",
  "NoticUserNames": "sample string 11"
}

application/xml, text/xml

Sample:
<t_department_work xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAL">
  <CompanyId>3</CompanyId>
  <CreateId>1</CreateId>
  <CreateTime>2026-06-09T21:16:14.8659218+08:00</CreateTime>
  <DepartmentId>4</DepartmentId>
  <DepartmentName>sample string 9</DepartmentName>
  <Id>1</Id>
  <NoticUserIds>sample string 10</NoticUserIds>
  <NoticUserNames>sample string 11</NoticUserNames>
  <ResultRemark>sample string 8</ResultRemark>
  <Status>7</Status>
  <WorkContent>sample string 6</WorkContent>
  <WorkEndDate>2026-06-09T21:16:14.8659218+08:00</WorkEndDate>
  <WorkEndTime>2026-06-09T21:16:14.8669223+08:00</WorkEndTime>
  <WorkStartTime>2026-06-09T21:16:14.8669223+08:00</WorkStartTime>
  <WorkUserId>1</WorkUserId>
  <WorkUserName>sample string 5</WorkUserName>
</t_department_work>

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.