POST new/standard/crm/sendSfaNotices

Request Information

URI Parameters

None.

Body Parameters

EsmSendNoticeModel
NameDescriptionTypeAdditional information
systemKey

string

None.

empCode

string

None.

noticeList

Collection of EsmNoticeModel

None.

Request Formats

application/json, text/json

Sample:
{
  "systemKey": "sample string 1",
  "empCode": "sample string 2",
  "noticeList": [
    {
      "id": 1,
      "relateSheetCode": 2,
      "title": "sample string 3",
      "note": "sample string 4",
      "empCodes": [
        1,
        2
      ],
      "date": "sample string 5",
      "viewType": 6
    },
    {
      "id": 1,
      "relateSheetCode": 2,
      "title": "sample string 3",
      "note": "sample string 4",
      "empCodes": [
        1,
        2
      ],
      "date": "sample string 5",
      "viewType": 6
    }
  ]
}

application/xml, text/xml

Sample:
<EsmSendNoticeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Model.Model.Esm">
  <EmpCode>sample string 2</EmpCode>
  <NoticeList>
    <EsmNoticeModel>
      <Date>sample string 5</Date>
      <EmpCodes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:long>1</d4p1:long>
        <d4p1:long>2</d4p1:long>
      </EmpCodes>
      <Id>1</Id>
      <Note>sample string 4</Note>
      <RelateSheetCode>2</RelateSheetCode>
      <Title>sample string 3</Title>
      <ViewType>6</ViewType>
    </EsmNoticeModel>
    <EsmNoticeModel>
      <Date>sample string 5</Date>
      <EmpCodes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:long>1</d4p1:long>
        <d4p1:long>2</d4p1:long>
      </EmpCodes>
      <Id>1</Id>
      <Note>sample string 4</Note>
      <RelateSheetCode>2</RelateSheetCode>
      <Title>sample string 3</Title>
      <ViewType>6</ViewType>
    </EsmNoticeModel>
  </NoticeList>
  <SystemKey>sample string 1</SystemKey>
</EsmSendNoticeModel>

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

Response Information

Resource Description

ApiDataResponse
NameDescriptionTypeAdditional information
Ok

接口是否成功。

boolean

None.

Data

返回数据。

Object

None.

Msg

返回消息。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Ok": true,
  "Data": {},
  "Msg": "sample string 3"
}

application/xml, text/xml

Sample:
<ApiDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Api.Controllers.Dtos">
  <Data />
  <Msg>sample string 3</Msg>
  <Ok>true</Ok>
</ApiDataResponse>