ujcms
  1. 数据
ujcms
  • 数据
    • 栏目列表_ChannelList
      GET
    • 栏目对象_Channel
      GET
    • 栏目对象ByAlias_Channel
      GET
    • 文章列表_ArticleList
      GET
    • 文章分页_ArticlePage
      GET
    • 文章对象_Article
      GET
    • 上一篇文章_ArticlePrev
      GET
    • 下一篇文章_ArticleNext
      GET
    • 全文检索文章分页_EsArticlePage
      GET
    • 全文检索文章列表_EsArticleList
      GET
    • 区块项列表_BlockItemList
      GET
    • 字典列表_DictList
      GET
    • 模型列表_ModelList
      GET
    • 模型对象_Model
      GET
    • Tag列表_TagList
      GET
    • Tag分页_TagPage
      GET
    • 获取Tag对象
      GET
    • 表单列表_FormList
      GET
    • 表单分页_FormPage
      GET
    • 获取表单对象
      GET
    • 站点列表_SiteList
      GET
    • 站点对象_Site
      GET
    • 投票列表_VoteList
      GET
    • 投票分页_VotePage
      GET
    • 投票对象_Vote
      GET
    • 留言列表_MessageBoardList
      GET
    • 留言分页_MessageBoardPage
      GET
    • 获取留言对象
      GET
    • 留言类型列表_MessageBoardTypeList
      GET
    • 调查问卷列表_SurveyList
      GET
    • 调查问卷分页_SurveyPage
      GET
    • 调查问卷对象_Survey
      GET
    • 文章排行榜列表_LeaderBoardList
      GET
    • 文章排行榜分页_LeaderBoardPage
      GET
  • 内容
    • 栏目接口
      • 获取栏目浏览次数
      • 获取栏目统计数据
    • 文章接口
      • 顶文章
      • 记录下载次数
      • 踩文章
      • 获取文章浏览次数
      • 获取下载参数
      • 获取文章统计数据
    • 站点接口
      • 获取站点缓冲对象,并记录浏览量
      • 获取当前站点对象。如果传递subDir参数,则通过子目录查询当前站点;否则通过当前域名获取对应站点对象,无法获取则返回默认站点
      • 获取站点缓冲对象
    • 投票接口
      • 投票
    • 留言接口
      • 提交留言
    • 调查问卷接口
      • 投票
  • 用户
    • JWT认证接口
      • 刷新TOKEN
      • 退出。一般情况下JWT无需服务器端退出。该方法主要用于记录退出日志
      • 登录
    • 注册接口
      • 用户注册
    • 密码接口
      • 更新密码
      • 重置密码
    • 会员设置接口
      • 更新个人信息
      • 更新手机号码
      • 更新邮箱地址
      • 更新个人头像
    • 用户接口
      • 用户名是否未使用
      • 用户名是否存在
      • 手机号码是否未使用
      • 手机号码是否存在
      • 邮箱地址是否未使用
      • 邮箱地址是否存在
    • 上传接口
      • avatarUpload
      • avatarCrop
  • 系统
    • 环境接口
      • 是否开启双因子登录
      • 获得当前登录用户
      • 获取当前站点列表
      • csrf 参数
      • 获取Config配置
      • 获取客户端SM2加密 public key
    • 验证码接口
      • 尝试验证码是否正确
      • 是否显示验证码。当登录错误超过指定次数后,需要输入验证码
      • 获取验证码Token
    • 短信接口
      • 发送手机短信
      • 发送邮件短信
      • 验证手机短信是否正确
      • 验证邮件短信是否正确
  • 其它
    • 访问统计接口
      • 记录访问统计接口
      • 获取在线访问者数量
  1. 数据

栏目对象_Channel

GET
/api/channel/{id}

标签使用示例#

[@Channel id='123'; bean]
  <a href="${bean.url}">${bean.name}</a>
[/@Channel]

请求参数

Path 参数

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://demo.ujcms.com/api/channel/'

返回响应

🟢200成功
*/*
栏目对象
Body

示例
{
    "id": 0,
    "siteId": 0,
    "parentId": 0,
    "channelModelId": 0,
    "articleModelId": 0,
    "performanceTypeId": 0,
    "name": "string",
    "alias": "string",
    "type": 0,
    "articleTemplate": "string",
    "channelTemplate": "string",
    "image": "string",
    "linkUrl": "string",
    "processKey": "string",
    "targetBlank": true,
    "real": true,
    "nav": true,
    "pageSize": 0,
    "orderDesc": true,
    "allowComment": true,
    "allowContribute": true,
    "allowSearch": true,
    "created": "2019-08-24T14:15:22Z",
    "modified": "2019-08-24T14:15:22Z",
    "depth": 0,
    "order": 0,
    "views": 0,
    "selfViews": 0,
    "book": true,
    "channelStaticPath": "string",
    "mainsJson": "string",
    "clobsJson": "string",
    "customs": {
        "property1": {},
        "property2": {}
    },
    "hasChildren": true,
    "children": [
        {}
    ],
    "parent": {},
    "site": {
        "id": 0,
        "parentId": 0,
        "orgId": 0,
        "modelId": 0,
        "name": "string",
        "description": "string",
        "protocol": "string",
        "domain": "string",
        "subDir": "string",
        "theme": "string",
        "mobileTheme": "string",
        "pageSize": 0,
        "logo": "string",
        "seoTitle": "string",
        "seoKeywords": "string",
        "seoDescription": "string",
        "staticFile": "string",
        "mobileStaticFile": "string",
        "editorSettings": "string",
        "status": 0,
        "depth": 0,
        "order": 0,
        "views": 0,
        "selfViews": 0,
        "todayViews": 0,
        "yesterdayViews": 0,
        "maxViews": 0,
        "maxDate": "2019-08-24T14:15:22Z",
        "mainsJson": "string",
        "clobsJson": "string",
        "customs": {
            "property1": {},
            "property2": {}
        },
        "watermark": {
            "enabled": true,
            "overlay": "string",
            "position": 0,
            "dissolve": 0,
            "minWidth": 0,
            "minHeight": 0
        },
        "html": {
            "enabled": true,
            "auto": true,
            "listPages": 0,
            "channel": "string",
            "article": "string",
            "enabledAndAuto": true
        },
        "messageBoard": {
            "enabled": true,
            "loginRequired": true
        },
        "editor": {
            "property1": {},
            "property2": {}
        },
        "copyFromId": 0,
        "copyData": [
            "string"
        ],
        "hasChildren": true,
        "parent": {},
        "org": {
            "id": 0,
            "parentId": 0,
            "name": "string",
            "phone": "string",
            "address": "string",
            "contacts": "string",
            "depth": 0,
            "order": 0,
            "hasChildren": true,
            "names": [
                "string"
            ],
            "paths": [
                {}
            ]
        },
        "model": {
            "id": 0,
            "siteId": 0,
            "name": "string",
            "type": "string",
            "scope": 0,
            "order": 0,
            "mains": "string",
            "asides": "string",
            "customs": "string"
        },
        "enabled": true,
        "url": "string",
        "names": [
            "string"
        ],
        "template": "string",
        "title": "string",
        "staticBase": "string",
        "paths": [
            {}
        ],
        "disabled": true,
        "htmlEnabled": true,
        "filesPath": "string",
        "mobileStaticUrl": "string",
        "api": "string",
        "dy": "string",
        "dynamicUrl": "string",
        "staticUrl": "string",
        "normalStaticUrl": "string",
        "targetBlank": true
    },
    "channelModel": {
        "id": 0,
        "siteId": 0,
        "name": "string",
        "type": "string",
        "scope": 0,
        "order": 0,
        "mains": "string",
        "asides": "string",
        "customs": "string"
    },
    "articleModel": {
        "id": 0,
        "siteId": 0,
        "name": "string",
        "type": "string",
        "scope": 0,
        "order": 0,
        "mains": "string",
        "asides": "string",
        "customs": "string"
    },
    "performanceType": {
        "id": 0,
        "siteId": 0,
        "name": "string",
        "score": 0,
        "order": 0
    },
    "description": "string",
    "text": "string",
    "url": "string",
    "names": [
        "string"
    ],
    "seoTitle": "string",
    "seoKeywords": "string",
    "title": "string",
    "seoDescription": "string",
    "paths": [
        {}
    ],
    "link": true,
    "editorType": 0,
    "markdown": "string",
    "dynamicUrl": "string",
    "staticUrl": "string",
    "keywords": "string"
}
修改于 2025-07-04 04:45:37
上一页
栏目列表_ChannelList
下一页
栏目对象ByAlias_Channel
Built with