POST api/Adv/AdminUpdateAdv
后台-编辑广告
Request Information
URI Parameters
None.
Body Parameters
mh163k_Advertisement| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| NoId |
广告编号id 可能需要根据此编号解析广告标签, 程序内定义模块id来定义编号,如信息模块id是1,他的第一个广告编号就是101 编号不可编辑 |
string |
None. |
| ModuleId |
模块id |
ModuleType |
None. |
| IsPc |
是否电脑端,true 电脑端,false 手机端 |
boolean |
None. |
| AdvTitle |
广告描述 |
string |
None. |
| Type |
广告类型 (轮播图类型,具体多图存另一张表) 类型确定后不可以编辑 |
AdvType |
None. |
| ExpireTime |
到期时间,null则默认无限期 到期后自动变为关闭状态,前台隐藏显示 |
date |
None. |
| IsOpen |
是否开启 |
boolean |
None. |
| IsPreset |
是否内置广告 |
boolean |
None. |
| HtmlCode |
自定义类型广告,存储html标签 |
string |
None. |
| FilePath |
图片类型广告,图片存储位置 |
string |
None. |
| FilePicUrl |
图片链接 |
string |
None. |
Request Formats
application/json
Sample:
text/json
Sample:
application/xml, text/xml
Sample:
<mh163k_Advertisement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model"> <AdvTitle>sample string 4</AdvTitle> <ExpireTime>2025-12-15T16:53:17.8093818+08:00</ExpireTime> <FilePath>sample string 8</FilePath> <FilePicUrl>sample string 9</FilePicUrl> <HtmlCode>sample string 7</HtmlCode> <Id>1</Id> <IsOpen>true</IsOpen> <IsPc>true</IsPc> <IsPreset>true</IsPreset> <ModuleId>None</ModuleId> <NoId>sample string 2</NoId> <Type>SinglePic</Type> </mh163k_Advertisement>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
后台-编辑广告
ObjectNone.
Response Formats
application/json
Sample:
text/json
Sample:
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />