# 必要商城-二级分类列表

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api-s/categorySecond:
    get:
      summary: 必要商城-二级分类列表
      deprecated: false
      description: 必要商城-二级分类列表
      tags:
        - 作业接口
        - 其他可用接口/必要商城/分类
      parameters:
        - name: firstId
          in: query
          description: 一级分类id
          required: true
          example: '621'
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                    title: 响应消息
                  code:
                    type: integer
                    title: 业务状态码
                    description: 200成功, 其他失败
                  list:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          title: 数据id
                          description: 暂时无用
                        secondId:
                          type: string
                          title: 二级分类id
                        secondName:
                          type: string
                          title: 二级分类名字
                        firstId:
                          type: string
                          title: 一级分类id
                      x-apifox-orders:
                        - id
                        - secondId
                        - secondName
                        - firstId
                    title: 响应数据
                required:
                  - msg
                  - code
                  - list
                x-apifox-orders:
                  - msg
                  - code
                  - list
              example:
                msg: 恭喜你, 操作成功
                code: 200
                list:
                  - id: 1
                    secondId: '622'
                    secondName: 咖啡
                    firstId: '621'
          headers: {}
          x-apifox-name: 成功
        x-200:参数有误:
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                    title: 响应消息
                  code:
                    type: integer
                    title: 业务状态码
                    description: 200成功,其他失败
                required:
                  - msg
                  - code
                x-apifox-orders:
                  - msg
                  - code
              example:
                msg: >-
                  你查询的数据不存在Error: ER_BAD_FIELD_ERROR: Unknown column 'undefined'
                  in 'where clause'
                code: 500
          headers: {}
          x-apifox-name: 参数有误
      security: []
      x-apifox-folder: 作业接口
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/1937884/apis/api-63647754-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
