隐私配置 - GdeiAssistant/GdeiAssistant GitHub Wiki
隐私配置
Restful API
- 更新用户隐私设置
接口地址:/rest/privacy
请求方法:POST
请求参数说明:
参数 | 可选 | 说明 |
---|---|---|
index | 否 | 用户隐私设置选项下标 |
state | 否 | 是否开启该隐私选项 |
返回示例,正确的JSON返回结果如下:
{
"success":true,
"code":null,
"message":null
}
- 获取用户隐私设置
接口地址:/rest/privacy
请求方法:GET
返回示例,正确的JSON返回结果如下:
{
"success":true,
"code":null,
"message":null,
"data":{"genderOpen":true,"genderOrientationOpen":true,"regionOpen":true,"introductionOpen":true,"facultyOpen":true,"majorOpen":true,"cacheAllow":true}
}