list.md 15.9 KB

文章列表

OpenAPI Specification

openapi: 3.0.1
info:
  title: ''
  version: 1.0.0
paths:
  /srv/:
    get:
      summary: 文章列表
      deprecated: false
      description: ''
      tags:
        - 文章
      parameters:
        - name: f
          in: query
          description: ''
          required: true
          example: manulife
          schema:
            type: string
        - name: a
          in: query
          description: ''
          required: true
          example: article
          schema:
            type: string
        - name: t
          in: query
          description: ''
          required: false
          example: list
          schema:
            type: string
        - name: limit
          in: query
          description: ''
          required: false
          example: '10'
          schema:
            type: string
        - name: page
          in: query
          description: ''
          required: false
          example: '0'
          schema:
            type: string
        - name: cid
          in: query
          description: 分类id
          required: false
          example: '2768724'
          schema:
            type: string
        - name: child_id
          in: query
          description: 只有一层分类时,筛选数据用
          required: false
          schema:
            type: string
        - name: keyword
          in: query
          description: 搜索关键词
          required: false
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: integer
                  data:
                    type: object
                    properties:
                      cate:
                        type: object
                        properties:
                          id:
                            type: integer
                            title: 分类id
                          category_name:
                            type: string
                            title: 分类名称
                          category_parent:
                            type: integer
                            title: 分类父级
                          category_description:
                            type: 'null'
                            title: 分类描述
                        required:
                          - id
                          - category_name
                          - category_parent
                          - category_description
                        x-apifox-orders:
                          - id
                          - category_name
                          - category_parent
                          - category_description
                        title: 当前分类
                      children:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: integer
                              title: 二级分类id
                            category_name:
                              type: string
                              title: 二级分类名
                            category_parent:
                              type: integer
                              title: 二级分类名父级id
                            level:
                              type: integer
                            category_description:
                              type: 'null'
                              title: 二级分类描述
                            icon:
                              type: 'null'
                            max_depth:
                              type: integer
                            list:
                              type: array
                              items:
                                type: object
                                properties:
                                  name:
                                    type: string
                                    title: 附件名称
                                  value:
                                    type: string
                                    title: 附件地址
                                  extension:
                                    type: string
                                    title: 后缀名
                                  post_date:
                                    type: string
                                    title: 发布时间
                                  size:
                                    type: string
                                    title: 附件大小
                                  is_favorite:
                                    type: integer
                                    title: 是否收藏
                                  id:
                                    type: string
                                    title: 附件id
                                required:
                                  - name
                                  - value
                                  - extension
                                  - post_date
                                  - size
                                  - is_favorite
                                  - id
                                x-apifox-orders:
                                  - id
                                  - name
                                  - value
                                  - extension
                                  - post_date
                                  - size
                                  - is_favorite
                              title: 二级分类的附件列表
                            children:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: integer
                                    title: 三级分类id
                                  category_name:
                                    type: string
                                    title: 三级分类名
                                  category_parent:
                                    type: integer
                                    title: 三级分类名父级id
                                  category_description:
                                    type: 'null'
                                    title: 三级分类描述
                                  icon:
                                    type: string
                                    title: 二级分类图标
                                    nullable: true
                                required:
                                  - id
                                  - category_name
                                  - category_parent
                                  - category_description
                                  - icon
                                x-apifox-orders:
                                  - id
                                  - category_name
                                  - category_parent
                                  - category_description
                                  - icon
                              title: 三级分类
                          required:
                            - id
                            - category_name
                            - category_parent
                            - level
                            - category_description
                            - icon
                            - max_depth
                            - list
                            - children
                          x-apifox-orders:
                            - id
                            - category_name
                            - category_parent
                            - category_description
                            - icon
                            - children
                            - list
                            - level
                            - max_depth
                        title: 二级分类列表
                      list:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: integer
                            post_title:
                              type: string
                              title: 标题
                            post_excerpt:
                              type: string
                              title: 简介
                              nullable: true
                            post_link:
                              type: string
                              title: 链接
                              description: 如果有就是去外部链接
                            post_date:
                              type: string
                              title: 发布时间
                            is_favorite:
                              type: integer
                              title: 是否收藏
                          required:
                            - id
                            - post_title
                            - post_excerpt
                            - post_link
                            - post_date
                            - is_favorite
                          x-apifox-orders:
                            - id
                            - post_title
                            - post_excerpt
                            - post_link
                            - post_date
                            - is_favorite
                        title: 主分类的附件列表
                      total:
                        type: integer
                        title: 主分类文章数量
                      max_level:
                        type: integer
                        title: 页面需要层级
                    required:
                      - cate
                      - children
                      - list
                      - total
                      - max_level
                    x-apifox-orders:
                      - cate
                      - children
                      - list
                      - total
                      - max_level
                required:
                  - code
                  - msg
                  - data
                x-apifox-orders:
                  - code
                  - msg
                  - data
              example:
                code: 1
                msg: 0
                data:
                  cate:
                    id: 281941
                    category_name: 闭关佛七
                    category_parent: 321972
                    category_description: null
                  children:
                    - id: 282012
                      category_name: 佛七回顾
                      category_parent: 281941
                      level: 1
                      category_description: null
                      icon: null
                      max_depth: 1
                    - id: 338871
                      category_name: 佛七报名
                      category_parent: 281941
                      level: 1
                      category_description: null
                      icon: null
                      max_depth: 1
                    - id: 338872
                      category_name: 闭关报名
                      category_parent: 281941
                      level: 1
                      category_description: null
                      icon: null
                      max_depth: 1
                    - id: 449119
                      category_name: 闭关回顾
                      category_parent: 281941
                      level: 1
                      category_description: null
                      icon: null
                      max_depth: 1
                  list:
                    - id: 2767726
                      post_title: '东台弥陀寺2025年9月闭关报名公告 '
                      post_excerpt: null
                      post_link: ''
                      post_date: '2025-09-01 20:35:42+08'
                      open_num: 49
                      is_favorite: 0
                    - id: 2767724
                      post_title: 东台弥陀寺9月连续3场佛七报名公告
                      post_excerpt: null
                      post_link: ''
                      post_date: '2025-09-01 20:34:58+08'
                      open_num: 14
                      is_favorite: 0
                    - id: 2759648
                      post_title: '东台弥陀寺2025年9月闭关报名公告 '
                      post_excerpt: null
                      post_link: ''
                      post_date: '2025-08-28 08:41:31+08'
                      open_num: 49
                      is_favorite: 0
                    - id: 2754588
                      post_title: 东台弥陀寺2025年9月8-14日佛七报名公告
                      post_excerpt: null
                      post_link: ''
                      post_date: '2025-08-25 09:05:07+08'
                      open_num: 71
                      is_favorite: 0
                    - id: 2753446
                      post_title: '东台弥陀寺2025年9月闭关报名公告 '
                      post_excerpt: null
                      post_link: ''
                      post_date: '2025-08-24 16:11:11+08'
                      open_num: 49
                      is_favorite: 0
                    - id: 2746856
                      post_title: 东台弥陀寺9月连续3场佛七报名公告
                      post_excerpt: null
                      post_link: ''
                      post_date: '2025-08-21 09:43:02+08'
                      open_num: 14
                      is_favorite: 0
                    - id: 2742443
                      post_title: 2025年8月闭关出关回顾 | 守住底线,不说他过
                      post_excerpt: 一扇扇关房的门被轻轻推开,莲友们不畏末伏的酷热,迈着沉静的步伐排队从关房走向大雄宝殿,进行出关大回向。
                      post_link: ''
                      post_date: '2025-08-19 06:25:46+08'
                      open_num: 44
                      is_favorite: 0
                    - id: 2741121
                      post_title: 东台弥陀寺2025年8月19-25日佛七报名公告
                      post_excerpt: null
                      post_link: ''
                      post_date: '2025-08-18 08:53:05+08'
                      open_num: 688
                      is_favorite: 0
                    - id: 2735164
                      post_title: '东台弥陀寺2025年9月闭关报名公告 '
                      post_excerpt: null
                      post_link: ''
                      post_date: '2025-08-14 08:39:17+08'
                      open_num: 51
                      is_favorite: 0
                    - id: 2721290
                      post_title: 东台弥陀寺2025年8月12-18日佛七报名公告
                      post_excerpt: null
                      post_link: ''
                      post_date: '2025-08-06 09:49:48+08'
                      open_num: 18
                      is_favorite: 0
                  total: 240
                  max_level: 2
          headers: {}
          x-apifox-name: 成功
          x-apifox-ordering: 0
      security: []
      x-apifox-folder: 文章
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7792797/apis/api-419982901-run
components:
  schemas: {}
  responses: {}
  securitySchemes: {}
servers:
  - url: https://manulife.onwall.cn
    description: 正式环境
security: []