POST Api/OilStationDiscount/GetOne

Request Information

URI Parameters

None.

Body Parameters

OilStationDiscountDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

None.

Money

decimal number

None.

StartTime

date

None.

StartTimeToString

string

None.

EndTime

date

None.

EndTimeToString

string

None.

CreateTime

date

None.

CreateTimeToString

string

None.

IsEnable

boolean

None.

IsEnableToString

string

None.

IsDeleted

boolean

None.

OilStationId

globally unique identifier

None.

IsSpecifiedOil

boolean

None.

IsSpecifiedOilToString

string

None.

SpecifiedOilCode

string

None.

SpecifiedOilCodeName

string

None.

ShowDiscountName

string

None.

PageIndex

integer

None.

PageSize

integer

None.

Total

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "4206382d-0368-41b3-a63f-2336b019bd42",
  "Name": "sample string 2",
  "Money": 1.0,
  "StartTime": "2026-03-02T19:56:23.6311523+08:00",
  "StartTimeToString": "2026-03-02 19:56:23",
  "EndTime": "2026-03-02T19:56:23.6311523+08:00",
  "EndTimeToString": "2026-03-02 19:56:23",
  "CreateTime": "2026-03-02T19:56:23.6311523+08:00",
  "CreateTimeToString": "2026-03-02 19:56:23",
  "IsEnable": true,
  "IsEnableToString": "是",
  "IsDeleted": true,
  "OilStationId": "ba640238-d53c-4e2e-ad89-b1da63c8ac60",
  "IsSpecifiedOil": true,
  "IsSpecifiedOilToString": "是",
  "SpecifiedOilCode": "sample string 3",
  "SpecifiedOilCodeName": "sample string 4",
  "ShowDiscountName": "sample string 2,指定优惠油品:sample string 4",
  "PageIndex": 5,
  "PageSize": 6,
  "Total": 7
}

application/xml, text/xml

Sample:
<OilStationDiscountDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZShOil.Model">
  <_x003C_PageIndex_x003E_k__BackingField>5</_x003C_PageIndex_x003E_k__BackingField>
  <_x003C_PageSize_x003E_k__BackingField>6</_x003C_PageSize_x003E_k__BackingField>
  <_x003C_Total_x003E_k__BackingField>7</_x003C_Total_x003E_k__BackingField>
  <CreateTime>2026-03-02T19:56:23.6311523+08:00</CreateTime>
  <EndTime>2026-03-02T19:56:23.6311523+08:00</EndTime>
  <Id>4206382d-0368-41b3-a63f-2336b019bd42</Id>
  <IsDeleted>true</IsDeleted>
  <IsEnable>true</IsEnable>
  <IsSpecifiedOil>true</IsSpecifiedOil>
  <Money>1</Money>
  <Name>sample string 2</Name>
  <OilStationId>ba640238-d53c-4e2e-ad89-b1da63c8ac60</OilStationId>
  <SpecifiedOilCode>sample string 3</SpecifiedOilCode>
  <SpecifiedOilCodeName>sample string 4</SpecifiedOilCodeName>
  <StartTime>2026-03-02T19:56:23.6311523+08:00</StartTime>
</OilStationDiscountDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.