POST api/UserTempCache/SetTempCache

设置临时数据

Request Information

URI Parameters

None.

Body Parameters

The temporary cache input dto.

TempCacheInputDto
NameDescriptionTypeAdditional information
Classify

Gets or sets the classify.

string

None.

Content

Gets or sets the content.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Classify": "sample string 1",
  "Content": "sample string 2"
}

text/html

Sample:
{"Classify":"sample string 1","Content":"sample string 2"}

application/xml, text/xml

Sample:
<TempCacheInputDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Classify>sample string 1</Classify>
  <Content>sample string 2</Content>
</TempCacheInputDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

设置临时数据

JsonRtnDtoOfUserTempCache
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

UserTempCache

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Id": 1,
    "UserId": "sample string 2",
    "Classify": "sample string 3",
    "Content": "sample string 4",
    "CreatedTime": "2024-09-25T00:08:59.796927+08:00"
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Id":1,"UserId":"sample string 2","Classify":"sample string 3","Content":"sample string 4","CreatedTime":"2024-09-25T00:08:59.796927+08:00"}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfUserTempCachemEDjlcEG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data">
    <d2p1:Classify>sample string 3</d2p1:Classify>
    <d2p1:Content>sample string 4</d2p1:Content>
    <d2p1:CreatedTime>2024-09-25T00:08:59.796927+08:00</d2p1:CreatedTime>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:UserId>sample string 2</d2p1:UserId>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfUserTempCachemEDjlcEG>

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Id":1,"UserId":"sample string 2","Classify":"sample string 3","Content":"sample string 4","CreatedTime":"2024-09-25T00:08:59.796927+08:00"}});