GET api/Adv/GetAdvById?id={id}
后台-获取广告 广告id
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
后台-获取广告 广告id
AdvDtoName | 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. |
HtmlCode |
自定义类型广告,存储html标签 |
string |
None. |
FilePath |
图片类型广告,图片存储位置 |
string |
None. |
FilePicUrl |
图片链接 |
string |
None. |
RotationPics |
轮播图 |
Collection of mh163k_Adv_RotationPic |
None. |
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml, text/xml
Sample:
<AdvDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.Adv"> <AdvTitle>sample string 4</AdvTitle> <ExpireTime>2024-05-04T18:38:00.6134909+08:00</ExpireTime> <FilePath>sample string 7</FilePath> <FilePicUrl>sample string 8</FilePicUrl> <HtmlCode>sample string 6</HtmlCode> <Id>1</Id> <IsOpen>true</IsOpen> <IsPc>true</IsPc> <ModuleId>None</ModuleId> <NoId>sample string 2</NoId> <RotationPics xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model"> <d2p1:mh163k_Adv_RotationPic> <d2p1:AdvId>2</d2p1:AdvId> <d2p1:Id>1</d2p1:Id> <d2p1:IntOrder>7</d2p1:IntOrder> <d2p1:PicIsOpen>true</d2p1:PicIsOpen> <d2p1:PicPath>sample string 5</d2p1:PicPath> <d2p1:PicTitle>sample string 3</d2p1:PicTitle> <d2p1:PicUrl>sample string 4</d2p1:PicUrl> </d2p1:mh163k_Adv_RotationPic> <d2p1:mh163k_Adv_RotationPic> <d2p1:AdvId>2</d2p1:AdvId> <d2p1:Id>1</d2p1:Id> <d2p1:IntOrder>7</d2p1:IntOrder> <d2p1:PicIsOpen>true</d2p1:PicIsOpen> <d2p1:PicPath>sample string 5</d2p1:PicPath> <d2p1:PicTitle>sample string 3</d2p1:PicTitle> <d2p1:PicUrl>sample string 4</d2p1:PicUrl> </d2p1:mh163k_Adv_RotationPic> </RotationPics> <Type>SinglePic</Type> </AdvDto>