POST GDTV/v3/CatgWeb/SaveCatg

保存栏目信息

Request

URI Params

None.

Body Params

栏目

CatgWebModel
字段名字段说明字段类型附加信息
CatgID

主键

integer

None.

FormatID

版式ID

integer

None.

Name

栏目名称

string

None.

ThumbRatio

封面比例

string

None.

Thumbs

封面 不同的模板上传不同规格的模板

Collection of CatgThumbWebModel

None.

SNO

排序

integer

None.

PID

父栏目

integer

None.

PName

父栏目描述

string

None.

Level

栏目层级

integer

None.

Type

栏目类型 1.打开子栏目 2.打开资源列表 3.打开轮播 4.打开视资源

CatgType

None.

TypeDesc

栏目类型描述

string

None.

SourceType

数据来源类型 1.学校 2 广电 3因尚

CatgSourceType

None.

SourceTypeDesc

数据来源类型描述

string

None.

SourceData1

数据来源,当为学校或广电时的数据字段 学校时为空或0代表是微官网资源,不为0则代表主题教育ID

string

None.

ST

状态

CatgStatus

None.

STDesc

状态描述

string

None.

FilterCatg

有过滤分类

boolean

None.

HideTitle

是否隐藏标题

boolean

None.

CusAction

自定义协议

string

None.

UseArea

栏目显示范围

Collection of integer

None.

UseAreaDesc

栏目显示范围描述

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CatgID": "1",
  "FormatID": "2",
  "Name": "sample string 3",
  "ThumbRatio": "sample string 4",
  "Thumbs": [
    {
      "Template": 1,
      "Url": "sample string 2",
      "OriginalUrl": "sample string 3",
      "Width": 4,
      "Height": 5
    },
    {
      "Template": 1,
      "Url": "sample string 2",
      "OriginalUrl": "sample string 3",
      "Width": 4,
      "Height": 5
    }
  ],
  "SNO": 5,
  "PID": "6",
  "PName": "sample string 7",
  "Level": 8,
  "Type": 1,
  "TypeDesc": "普通栏目",
  "SourceType": 1,
  "SourceTypeDesc": "学校自有",
  "SourceData1": "sample string 9",
  "ST": 0,
  "STDesc": "启用",
  "FilterCatg": true,
  "HideTitle": true,
  "CusAction": "sample string 12",
  "UseArea": [
    1,
    2
  ],
  "UseAreaDesc": "班级,学校"
}

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

Response

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

CatgWebModel

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": {
    "CatgID": "1",
    "FormatID": "2",
    "Name": "sample string 3",
    "ThumbRatio": "sample string 4",
    "Thumbs": [
      {
        "Template": 1,
        "Url": "sample string 2",
        "OriginalUrl": "sample string 3",
        "Width": 4,
        "Height": 5
      },
      {
        "Template": 1,
        "Url": "sample string 2",
        "OriginalUrl": "sample string 3",
        "Width": 4,
        "Height": 5
      }
    ],
    "SNO": 5,
    "PID": "6",
    "PName": "sample string 7",
    "Level": 8,
    "Type": 1,
    "TypeDesc": "普通栏目",
    "SourceType": 1,
    "SourceTypeDesc": "学校自有",
    "SourceData1": "sample string 9",
    "ST": 0,
    "STDesc": "启用",
    "FilterCatg": true,
    "HideTitle": true,
    "CusAction": "sample string 12",
    "UseArea": [
      1,
      2
    ],
    "UseAreaDesc": "班级,学校"
  },
  "Ret": 1,
  "ErrCode": 2,
  "Msg": "sample string 3",
  "SeqId": 4,
  "InfoMsg": "sample string 5"
}