zhangqian
2024-05-22 bcdc840ba903c07e95227dc8f4e37ac09702e73a
音频列表增加状态搜索
5个文件已修改
49 ■■■■■ 已修改文件
controllers/audio.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
request/audio.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/audio.go
@@ -181,6 +181,7 @@
        SetBeginTime(params.BeginTime).
        SetEndTime(params.EndTime).
        SetIsFollowed(params.IsFollowed).
        SetAudioStatusList(params.StatusList).
        Find()
    if err != nil {
docs/docs.go
@@ -303,6 +303,23 @@
                        "in": "query"
                    },
                    {
                        "type": "array",
                        "items": {
                            "enum": [
                                0,
                                1,
                                2,
                                3,
                                4
                            ],
                            "type": "integer"
                        },
                        "collectionFormat": "csv",
                        "description": "音频状态数组",
                        "name": "statusList",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "车次",
                        "name": "trainNumber",
docs/swagger.json
@@ -291,6 +291,23 @@
                        "in": "query"
                    },
                    {
                        "type": "array",
                        "items": {
                            "enum": [
                                0,
                                1,
                                2,
                                3,
                                4
                            ],
                            "type": "integer"
                        },
                        "collectionFormat": "csv",
                        "description": "音频状态数组",
                        "name": "statusList",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "车次",
                        "name": "trainNumber",
docs/swagger.yaml
@@ -380,6 +380,19 @@
        in: query
        name: stationNumber
        type: string
      - collectionFormat: csv
        description: 音频状态数组
        in: query
        items:
          enum:
          - 0
          - 1
          - 2
          - 3
          - 4
          type: integer
        name: statusList
        type: array
      - description: 车次
        in: query
        name: trainNumber
request/audio.go
@@ -15,6 +15,7 @@
    BeginTime        time.Time         `form:"beginTime"`                                                                       //开始时间
    EndTime          time.Time         `form:"endTime"`                                                                         //结束时间
    IsFollowed       constvar.BoolType `form:"isFollowed"`                                                                      //是否关注 1关注 2未关注
    StatusList       []constvar.AudioStatus `form:"statusList"`                                                                         //音频状态数组
}
type ProcessAudio struct {