POST api/localTour/search/history/create

記錄搜索日志

Request Information

URI Parameters

None.

Body Parameters

SearchHistoryContract
NameDescriptionTypeAdditional information
sid

integer

None.

visitid

string

None.

keyword

string

None.

attid

integer

None.

startdate

date

None.

enddate

date

None.

searchtime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "memberid": 3,
  "sid": 1,
  "visitid": "sample string 2",
  "keyword": "sample string 4",
  "attid": 5,
  "startdate": "2024-12-23T19:37:28.1056557+08:00",
  "enddate": "2024-12-23T19:37:28.1056557+08:00",
  "searchtime": "2024-12-23T19:37:28.1056557+08:00"
}

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

Response Information

Resource Description

記錄搜索日志

ReturnResultOfBoolean
NameDescriptionTypeAdditional information
data

boolean

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": true,
  "code": 2,
  "message": "sample string 3"
}