{
    "openapi": "3.0.0",
    "info": {
        "title": "星座配对 - API文档",
        "version": "1.0.0",
        "description": "搜索星座解说及评分等，支持单人和双人配对搜索。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/xingzuo\/index": {
            "get": {
                "summary": "星座配对查询",
                "tags": [
                    "星座配对"
                ],
                "description": "根据星座模式查询是否性格相合仅供娱乐",
                "parameters": [
                    {
                        "name": "he",
                        "in": "query",
                        "description": "双人模式的星座",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "白羊",
                            "description": "双人模式的星座"
                        }
                    },
                    {
                        "name": "me",
                        "in": "query",
                        "description": "单人模式的星座",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "金牛",
                            "description": "单人模式的星座"
                        }
                    },
                    {
                        "name": "all",
                        "in": "query",
                        "description": "分别与其他所有星座配对",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "分别与其他所有星座配对"
                        }
                    },
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "grade": {
                                            "type": "string",
                                            "example": "友情：★★ 爱情：★★★ 婚姻：★★ 亲情：★★",
                                            "description": "点评"
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "金牛座：白羊座",
                                            "description": "标题"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "节奏不同是你们天生的问题，一个冲动，一个慢半拍......",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "grade": "友情：★★ 爱情：★★★ 婚姻：★★ 亲情：★★",
                                        "title": "金牛座：白羊座",
                                        "content": "节奏不同是你们天生的问题，一个冲动，一个慢半拍，要把你们放在同一个世界一起生活，看来大家要非常容忍对方，如果不是，很难看到长远。白羊座的人喜欢用强烈的追求攻势去攻陷金牛座的人的心，但金牛座固执求稳的性格，必然会深思熟虑才肯接受追求，中间拉拉扯扯的时候，可能白羊座已经忍不住转身就走。如果真是可以走在一起，大家不妨用双打网球的原理，一个补、一个攻，也许能够创出光明的前途，大前提当然是已经能理解和接受对方的特性。假如金牛座一方是男性，白羊座的女性就要更主动、加大追求力度。白羊座的人还要学习金牛座深思熟虑的处事态度，明白这点，大家都有好处的。性生活方面，金牛喜欢耳鬓撕磨，白羊则速战速决，有时候要学会迁就对方了。"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "星座配对查询",
                "tags": [
                    "星座配对"
                ],
                "description": "根据星座模式查询是否性格相合仅供娱乐",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "he": {
                                        "type": "string",
                                        "example": "白羊",
                                        "description": "双人模式的星座"
                                    },
                                    "me": {
                                        "type": "string",
                                        "example": "金牛",
                                        "description": "单人模式的星座"
                                    },
                                    "all": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "分别与其他所有星座配对"
                                    },
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    }
                                },
                                "required": [
                                    "me",
                                    "key"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "grade": {
                                            "type": "string",
                                            "example": "友情：★★ 爱情：★★★ 婚姻：★★ 亲情：★★",
                                            "description": "点评"
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "金牛座：白羊座",
                                            "description": "标题"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "节奏不同是你们天生的问题，一个冲动，一个慢半拍......",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "grade": "友情：★★ 爱情：★★★ 婚姻：★★ 亲情：★★",
                                        "title": "金牛座：白羊座",
                                        "content": "节奏不同是你们天生的问题，一个冲动，一个慢半拍，要把你们放在同一个世界一起生活，看来大家要非常容忍对方，如果不是，很难看到长远。白羊座的人喜欢用强烈的追求攻势去攻陷金牛座的人的心，但金牛座固执求稳的性格，必然会深思熟虑才肯接受追求，中间拉拉扯扯的时候，可能白羊座已经忍不住转身就走。如果真是可以走在一起，大家不妨用双打网球的原理，一个补、一个攻，也许能够创出光明的前途，大前提当然是已经能理解和接受对方的特性。假如金牛座一方是男性，白羊座的女性就要更主动、加大追求力度。白羊座的人还要学习金牛座深思熟虑的处事态度，明白这点，大家都有好处的。性生活方面，金牛喜欢耳鬓撕磨，白羊则速战速决，有时候要学会迁就对方了。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}