POST api/Conf/SetHomeModes
首页模块设置
Request Information
URI Parameters
None.
Body Parameters
The set home mode.
SetHomeModeName | Description | Type | Additional information |
---|---|---|---|
Mode |
Gets or sets Mode |
string |
None. |
UserType |
用户类型 |
UserType |
None. |
HomeModeInput |
Gets or sets the home mode input dtos. |
Collection of HomeModeInputDto |
None. |
Enabled |
Gets or sets a value indicating whether this is enabled. |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Mode": "sample string 1", "UserType": 0, "HomeModeInput": [ { "Name": "sample string 1", "Link": "sample string 2", "Src": "sample string 3", "Backgroud": "sample string 4", "TitleColor": "sample string 5", "ItemHoverBackgroud": "sample string 6", "Enabled": true }, { "Name": "sample string 1", "Link": "sample string 2", "Src": "sample string 3", "Backgroud": "sample string 4", "TitleColor": "sample string 5", "ItemHoverBackgroud": "sample string 6", "Enabled": true } ], "Enabled": true }
text/html
Sample:
{"Mode":"sample string 1","UserType":0,"HomeModeInput":[{"Name":"sample string 1","Link":"sample string 2","Src":"sample string 3","Backgroud":"sample string 4","TitleColor":"sample string 5","ItemHoverBackgroud":"sample string 6","Enabled":true},{"Name":"sample string 1","Link":"sample string 2","Src":"sample string 3","Backgroud":"sample string 4","TitleColor":"sample string 5","ItemHoverBackgroud":"sample string 6","Enabled":true}],"Enabled":true}
application/xml, text/xml
Sample:
<SetHomeMode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Enabled>true</Enabled> <HomeModeInput> <HomeModeInputDto> <Backgroud>sample string 4</Backgroud> <Enabled>true</Enabled> <ItemHoverBackgroud>sample string 6</ItemHoverBackgroud> <Link>sample string 2</Link> <Name>sample string 1</Name> <Src>sample string 3</Src> <TitleColor>sample string 5</TitleColor> </HomeModeInputDto> <HomeModeInputDto> <Backgroud>sample string 4</Backgroud> <Enabled>true</Enabled> <ItemHoverBackgroud>sample string 6</ItemHoverBackgroud> <Link>sample string 2</Link> <Name>sample string 1</Name> <Src>sample string 3</Src> <TitleColor>sample string 5</TitleColor> </HomeModeInputDto> </HomeModeInput> <Mode>sample string 1</Mode> <UserType>Any</UserType> </SetHomeMode>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
首页模块设置
JsonRtnDtoOfStringName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": "sample string 2" }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":"sample string 2"}
application/xml, text/xml
Sample:
<JsonRtnDtoOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data>sample string 2</Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfstring>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":"sample string 2"});