zhangqian
2024-05-13 7f91ff9dfa6d6ff8ec35dfea6d5195a20f631127
docs/docs.go
@@ -27,7 +27,7 @@
                "summary": "批量删除音频",
                "parameters": [
                    {
                        "description": "音频信息",
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
@@ -57,7 +57,7 @@
                "summary": "批量处理音频",
                "parameters": [
                    {
                        "description": "音频信息",
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
@@ -87,7 +87,7 @@
                "summary": "删除音频",
                "parameters": [
                    {
                        "description": "音频信息",
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
@@ -101,6 +101,48 @@
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-sa/v1/audio/follow": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "音频"
                ],
                "summary": "关注/取消关注",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.FollowReq"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/util.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.FollowResp"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
@@ -195,7 +237,7 @@
                "summary": "处理音频",
                "parameters": [
                    {
                        "description": "音频信息",
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
@@ -338,6 +380,10 @@
                "occurrenceTime": {
                    "type": "string"
                },
                "score": {
                    "description": "置信度",
                    "type": "number"
                },
                "size": {
                    "description": "音频大小",
                    "type": "integer"
@@ -369,6 +415,17 @@
                }
            }
        },
        "request.FollowReq": {
            "type": "object",
            "required": [
                "id"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                }
            }
        },
        "request.ProcessAudio": {
            "type": "object",
            "required": [
@@ -380,6 +437,14 @@
                }
            }
        },
        "response.FollowResp": {
            "type": "object",
            "properties": {
                "followStatus": {
                    "$ref": "#/definitions/constvar.BoolType"
                }
            }
        },
        "util.Response": {
            "type": "object",
            "properties": {