多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 获取分类 >[info] 获取全局分类信息 ## 请求地址:[https://你的域名/api/category](https://xn--6qqv7i2xdt95b/api/category) 请求方法:GET 请求数据:NULL 返回数据: | 名称 | 说明 | | --- | --- | | BC\_education | 学历 | | BC\_income | 月收入 | | BC\_house | 购房情况 | | BC\_car | 购车情况 | | BC\_profession | 职业 | | BC\_family\_backg | 家庭背景 | | BC\_drink | 喝酒 | | BC\_smoking | 吸烟 | | BC\_work\_rest | 作息习惯 | | BC\_pet | 宠物 | | BC\_work\_out | 锻炼习惯 | | BC\_industry | 行业 | | BC\_religious | 宗教信仰 | | BC\_disposition | 性格 | | BC\_marriage | 婚姻状况 | | BC\_children | 孩子 | | BC\_marry | 结婚计划 | | BC\_nationality | 民族 | | BC\_purpose | 交友目的 | | BC\_hobby | 爱好 | | BC\_gender | 性别 | | BC\_age | 年龄 | | BC\_height | 身高 | | BC\_weight | 体重 | | BC\_display\_mode | 资料展现方式 | | BC\_photo\_mode | 照片展现方式 | | BC\_constellation | 星座 | | BC\_zodiac | 生肖 | | BC\_blood | 血型 | | BC\_district | 区域 | 请求示例: ``` request({ url: "https://demo.bottlecms.com/api/category", method: "GET", success: (res) => { if(res.code==200){ //返回成功 console.log(res.obj); //储存返回数据 } } }); ``` 返回示例: ``` { "success":true, "code":200, "msg":"获取成功", "obj":{ "BC_education":{ "1":"小学3", "2":"初中", …… }, "BC_income":{ "9":"0~5000元", "10":"5000~10000元4", "11":"10000~20000元2", "12":"20000~30000元", "13":"30000~50000元", "14":"50000~N元" }, "BC_house":{ "15":"已经购房", "16":"一起购房", "18":"未购房", "19":"不购房" }, "BC_car":{ "20":"未购车", "21":"暂不购车", "22":"已购车" }, "BC_profession":{ "26":"合伙人", "27":"编辑/作家/撰稿人", "28":"记者", …… }, "BC_family_backg":{ "31":"独生子女", "32":"有兄弟姐妹" }, "BC_drink":{ "33":"不喝酒", "34":"偶尔喝", "35":"无酒不欢" }, "BC_smoking":{ "36":"不吸烟", "37":"偶尔吸", "38":"吸烟" }, "BC_work_rest":{ "39":"夜猫子", "40":"早睡早起" }, "BC_pet":{ "41":"有宠物", "42":"不养宠物" }, "BC_work_out":{ "44":"每周锻炼", "45":"偶尔锻炼", "160":"有私教" }, "BC_industry":{ "23":"硬件", "24":"计算机服务", "25":"农业", …… }, "BC_religious":{ "162":"无宗教信仰", "163":"佛教", "164":"基督教", …… }, "BC_disposition":{ "170":"外向", "246":"偏外向,有时内向", "247":"偏内向,有时外向", "248":"内向" }, "BC_marriage":{ "173":"未婚", "174":"离异", "175":"丧偶" }, "BC_children":{ "176":"没有孩子", "177":"有孩子", "178":"有孩子对方抚养" }, "BC_marry":{ "179":"一年结婚", "180":"三年内结婚", "181":"五年内结婚", "182":"随缘" }, "BC_nationality":{ "191":"汉族", "192":"回族", "193":"苗族", …… }, "BC_purpose":{ "249":"结婚", "250":"谈恋爱", "251":"交朋友" }, "BC_hobby":{ "46":"高尔夫", "47":"篮球", "48":"台球", "49":"羽毛球", …… }, "BC_gender":{ "1":"男士", "2":"女士" }, "BC_age":{ "18":"18岁", "19":"19岁", "20":"20岁", …… }, "BC_height":{ "145":"145cm", "146":"146cm", "147":"147cm", …… }, "BC_weight":{ "40":"40kg", "41":"41kg", "42":"42kg", …… }, "BC_display_mode":{ "1":"所有人可见", "2":"符合条件的人可见", "3":"仅自己可见" }, "BC_photo_mode":{ "1":"清晰显示", "2":"模糊显示" }, "BC_constellation":{ "1":"水瓶座", "2":"双鱼座", "3":"白羊座", …… }, "BC_zodiac":{ "1":"鼠", "2":"牛", "3":"虎", …… }, "BC_blood":{ "1":"O型", "2":"A型", "3":"B型", "4":"AB型", "5":"稀有型" }, "BC_district":{ "0":{ "1":"北京", "2":"天津", "3":"河北", …… }, "1":{ "37":"东城", "38":"西城", "41":"朝阳", …… }, "2":{ "55":"和平区", "56":"河东区", "57":"河西区", …… }, "3":{ "73":"石家庄", "74":"唐山", "75":"秦皇岛", …… }, …… } }, "map":{ "version":1621946246 } } ```