POST GDTV/v3/FormatWeb/SaveFormat

保存版式信息

Request

URI Params

None.

Body Params

版式

FormatWebModel
字段名字段说明字段类型附加信息
FormatID

主键

integer

None.

Name

版式名称

string

None.

IsStandard

是否标准版本

boolean

None.

SrvGID

所属广电公司

integer

None.

SrvGName

所属广电公司

string

None.

PartnerID

广电

integer

None.

HomeLogo

首页Logo

string

None.

HomeShowTitle

显示首页标题

boolean

None.

HomeTitle

首页标题,默认为空时会取学校名称,如果不为空则所有学校都是这个名称

string

None.

PageLogo

二级页面Logo

string

None.

PageShowTitle

二级页面是否显示标题

boolean

None.

BottomConfigF

家庭版底部菜单配置

Collection of FormatConfigWebModel

None.

BottomConfigC

班级版底部菜单配置

Collection of FormatConfigWebModel

None.

BottomConfigS

学校版底部菜单配置

Collection of FormatConfigWebModel

None.

Request Formats

application/json, text/json

Sample:
{
  "FormatID": "1",
  "Name": "sample string 2",
  "IsStandard": true,
  "SrvGID": 4,
  "SrvGName": "sample string 5",
  "PartnerID": 6,
  "HomeLogo": "sample string 7",
  "HomeShowTitle": true,
  "HomeTitle": "sample string 9",
  "PageLogo": "sample string 10",
  "PageShowTitle": true,
  "BottomConfigF": [
    {
      "Enable": true,
      "Type": 2,
      "TypeName": "sample string 3",
      "Name": "sample string 4",
      "Subjects": [
        "sample string 1",
        "sample string 2"
      ],
      "BottomStyle": 0
    },
    {
      "Enable": true,
      "Type": 2,
      "TypeName": "sample string 3",
      "Name": "sample string 4",
      "Subjects": [
        "sample string 1",
        "sample string 2"
      ],
      "BottomStyle": 0
    }
  ],
  "BottomConfigC": [
    {
      "Enable": true,
      "Type": 2,
      "TypeName": "sample string 3",
      "Name": "sample string 4",
      "Subjects": [
        "sample string 1",
        "sample string 2"
      ],
      "BottomStyle": 0
    },
    {
      "Enable": true,
      "Type": 2,
      "TypeName": "sample string 3",
      "Name": "sample string 4",
      "Subjects": [
        "sample string 1",
        "sample string 2"
      ],
      "BottomStyle": 0
    }
  ],
  "BottomConfigS": [
    {
      "Enable": true,
      "Type": 2,
      "TypeName": "sample string 3",
      "Name": "sample string 4",
      "Subjects": [
        "sample string 1",
        "sample string 2"
      ],
      "BottomStyle": 0
    },
    {
      "Enable": true,
      "Type": 2,
      "TypeName": "sample string 3",
      "Name": "sample string 4",
      "Subjects": [
        "sample string 1",
        "sample string 2"
      ],
      "BottomStyle": 0
    }
  ]
}

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

Response

APITResultOfFormatWebModel
字段名字段说明字段类型附加信息
Data

FormatWebModel

None.

Ret

返回结果(0-成功;>0-失败) ret=0 成功返回/ret=1 参数错误/ret=2 频率受限 /ret=3 Token无效 /ret=4 服务器内部错误 /ret=5 用户操作错误 / ret=6 停机维护 / ret=7 身份失效

integer

None.

ErrCode

错误代码,因功能而异

integer

None.

Msg

返回信息

string

None.

SeqId

请求序列

integer

None.

InfoMsg

API附加信息

string

None.

application/json, text/json

Sample:
{
  "Data": {
    "FormatID": "1",
    "Name": "sample string 2",
    "IsStandard": true,
    "SrvGID": 4,
    "SrvGName": "sample string 5",
    "PartnerID": 6,
    "HomeLogo": "sample string 7",
    "HomeShowTitle": true,
    "HomeTitle": "sample string 9",
    "PageLogo": "sample string 10",
    "PageShowTitle": true,
    "BottomConfigF": [
      {
        "Enable": true,
        "Type": 2,
        "TypeName": "sample string 3",
        "Name": "sample string 4",
        "Subjects": [
          "sample string 1",
          "sample string 2"
        ],
        "BottomStyle": 0
      },
      {
        "Enable": true,
        "Type": 2,
        "TypeName": "sample string 3",
        "Name": "sample string 4",
        "Subjects": [
          "sample string 1",
          "sample string 2"
        ],
        "BottomStyle": 0
      }
    ],
    "BottomConfigC": [
      {
        "Enable": true,
        "Type": 2,
        "TypeName": "sample string 3",
        "Name": "sample string 4",
        "Subjects": [
          "sample string 1",
          "sample string 2"
        ],
        "BottomStyle": 0
      },
      {
        "Enable": true,
        "Type": 2,
        "TypeName": "sample string 3",
        "Name": "sample string 4",
        "Subjects": [
          "sample string 1",
          "sample string 2"
        ],
        "BottomStyle": 0
      }
    ],
    "BottomConfigS": [
      {
        "Enable": true,
        "Type": 2,
        "TypeName": "sample string 3",
        "Name": "sample string 4",
        "Subjects": [
          "sample string 1",
          "sample string 2"
        ],
        "BottomStyle": 0
      },
      {
        "Enable": true,
        "Type": 2,
        "TypeName": "sample string 3",
        "Name": "sample string 4",
        "Subjects": [
          "sample string 1",
          "sample string 2"
        ],
        "BottomStyle": 0
      }
    ]
  },
  "Ret": 1,
  "ErrCode": 2,
  "Msg": "sample string 3",
  "SeqId": 4,
  "InfoMsg": "sample string 5"
}