zhangqian
2024-05-16 3eb829393c22b975b9ca7e0e022150d4cafa9bd1
docs/docs.go
@@ -148,6 +148,45 @@
                }
            }
        },
        "/api-sa/v1/audio/info": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "音频"
                ],
                "summary": "音频详情,含解析结果",
                "parameters": [
                    {
                        "type": "integer",
                        "name": "id",
                        "in": "query",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/models.Audio"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api-sa/v1/audio/list": {
            "get": {
                "produces": [
@@ -432,7 +471,7 @@
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/models.Text"
                                                "$ref": "#/definitions/models.Word"
                                            }
                                        }
                                    }
@@ -525,6 +564,10 @@
                        }
                    ]
                },
                "audioText": {
                    "description": "解析出的文本",
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
@@ -575,31 +618,13 @@
                },
                "updatedAt": {
                    "type": "string"
                },
                "words": {
                    "description": "匹配到的文字数组",
                    "type": "array",
                    "items": {
                        "type": "string"
                }
            }
        },
        "models.Text": {
            "type": "object",
            "properties": {
                "content": {
                    "description": "音频名称",
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "deletedAt": {
                    "$ref": "#/definitions/gorm.DeletedAt"
                },
                "id": {
                    "type": "integer"
                },
                "locomotiveNumber": {
                    "description": "机车号",
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
@@ -607,7 +632,7 @@
            "type": "object",
            "properties": {
                "class": {
                    "description": "分类",
                    "description": "分类  1 机车 2车次 3 车站",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.Class"
@@ -630,6 +655,31 @@
                "parentID": {
                    "description": "上级id",
                    "type": "integer"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "models.Word": {
            "type": "object",
            "properties": {
                "content": {
                    "description": "文字",
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "deletedAt": {
                    "$ref": "#/definitions/gorm.DeletedAt"
                },
                "id": {
                    "type": "integer"
                },
                "locomotiveNumber": {
                    "description": "机车号",
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
@@ -693,8 +743,13 @@
            "type": "object",
            "properties": {
                "followStatus": {
                    "description": "1 已关注 2未关注",
                    "allOf": [
                        {
                    "$ref": "#/definitions/constvar.BoolType"
                }
                    ]
                }
            }
        },
        "util.Response": {