# 1. 列表首页

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /app_adminsmartpark/v1.news/index:
    post:
      summary: 1. 列表首页
      deprecated: false
      description: 使用场景：后台查看新闻资讯列表页面
      tags:
        - admin 👨‍💻/smartpark/v1/News
        - admin
      parameters:
        - name: X-Client
          in: header
          description: ''
          required: true
          example: '{{x_client}}'
          schema:
            type: string
        - name: X-ApifoxUser
          in: header
          description: ''
          required: true
          example: '{{apifox_user}}'
          schema:
            type: string
        - name: X-Time
          in: header
          description: ''
          required: true
          example: '{{timestamp}}'
          schema:
            type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                page:
                  description: 页码
                  example: '1'
                  type: string
                page_size:
                  description: 每页最大数量
                  example: '10'
                  type: string
                smartpark_id:
                  description: 根据园区id筛选
                  example: ''
                  type: string
                is_top:
                  description: 是否置顶
                  example: ''
                  type: string
                is_hot:
                  description: 是否热门
                  example: ''
                  type: string
                status:
                  description: 是否发布（0-未发布，1-已发布）
                  example: ''
                  type: string
                is_del:
                  description: 是否删除
                  example: ''
                  type: string
                news_type_id:
                  description: 根据分类id筛选
                  example: ''
                  type: string
                news_type_name:
                  description: 根据分类名称搜素
                  example: ''
                  type: string
                keyword:
                  description: 根据新闻标题搜素
                  example: ''
                  type: string
                start_time:
                  description: 开始时间  (日期格式:2021-1-20)
                  example: ''
                  type: string
                end_time:
                  description: 结束时间
                  example: ''
                  type: string
                sort:
                  description: >-
                    排序字段（id，comment_num 根据 评论数量，good_num 根据 点赞数量，views_num 根据
                    浏览数量，sort 根据 排序设置（越小越靠前），update_time 根据 更新时间）默认排序 sort asc,
                    id desc
                  example: ''
                  type: string
                order:
                  description: 顺序 asc/desc
                  example: desc
                  type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    x-apifox-orders: []
                  msg:
                    type: string
                  code:
                    type: integer
                required:
                  - data
                  - msg
                  - code
                x-apifox-orders:
                  - data
                  - msg
                  - code
              examples:
                '1':
                  summary: success
                  value:
                    data: {}
                    msg: ''
                    code: 1
                '2':
                  summary: error
                  value:
                    data: []
                    msg: ''
                    code: 1
          headers: {}
          x-apifox-name: ok
      security: []
      x-apifox-folder: admin 👨‍💻/smartpark/v1/News
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/2493394/apis/api-70864350-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://admin.api.test.domain.cn
    description: 测试环境
security: []

```
