POST new/downloadRecord/add
添加下载记录
Request Information
URI Parameters
None.
Body Parameters
下载记录实体
DownloadRecordModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
记录ID |
integer |
None. |
| userId |
下载用户ID |
integer |
None. |
| contentName |
下载内容名称 |
string |
None. |
| contentType |
下载内容类型(如:manual, spec, whitepaper等) |
string |
None. |
| downloadIp |
下载IP地址 |
string |
None. |
| userAgent |
用户浏览器信息 |
string |
None. |
| downloadTime |
下载时间 |
date |
None. |
| createTime |
创建时间 |
date |
None. |
| company |
创建时间 |
string |
None. |
| name |
创建时间 |
string |
None. |
| phone |
创建时间 |
string |
None. |
| remark |
创建时间 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"userId": 2,
"contentName": "sample string 3",
"contentType": "sample string 4",
"downloadIp": "sample string 5",
"userAgent": "sample string 6",
"downloadTime": "2026-10-20T20:43:17.3736267+08:00",
"createTime": "2026-10-20T20:43:17.3736267+08:00",
"company": "sample string 9",
"name": "sample string 10",
"phone": "sample string 11",
"remark": "sample string 12"
}
application/xml, text/xml
Sample:
<DownloadRecordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Model.Model"> <Company>sample string 9</Company> <ContentName>sample string 3</ContentName> <ContentType>sample string 4</ContentType> <CreateTime>2026-10-20T20:43:17.3736267+08:00</CreateTime> <DownloadIp>sample string 5</DownloadIp> <DownloadTime>2026-10-20T20:43:17.3736267+08:00</DownloadTime> <Id>1</Id> <Name>sample string 10</Name> <Phone>sample string 11</Phone> <Remark>sample string 12</Remark> <UserAgent>sample string 6</UserAgent> <UserId>2</UserId> </DownloadRecordModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
添加结果
ApiDataResponse| Name | Description | Type | Additional 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>