OptionApi.get
获取站点全局设置参数。
方法定义
OptionApi.get(): Promise<OptionResponse>
响应
OptionResponse models.ts:1083
参数名 | 类型 | 说明 |
---|---|---|
code | number | 无任何错误时,状态码为 0 |
data | Option |
Option models.ts:702
参数名 | 类型 | 说明 |
---|---|---|
answer_can_delete | boolean | 回答作者是否可删除回答。 为 |
answer_can_delete_before | number | 在发表后多少秒内,允许作者删除回答(为 |
answer_can_delete_only_no_comment | boolean | 是否仅在没有评论时,允许作者删除回答。仅在 |
answer_can_edit | boolean | 回答作者是否可编辑回答。 为 |
answer_can_edit_before | number | 在发表后的多少秒内,允许作者编辑回答(为 |
answer_can_edit_only_no_comment | boolean | 是否仅在没有评论时,允许作者编辑回答。仅在 |
article_can_delete | boolean | 文章作者是否可删除文章。 为 |
article_can_delete_before | number | 在发表后多少秒内,允许作者删除文章(为 |
article_can_delete_only_no_comment | boolean | 仅在没有评论时,允许作者删除文章。仅在 |
article_can_edit | boolean | 文章作者是否可编辑文章。 为 |
article_can_edit_before | number | 在发表后的多少秒内,允许作者编辑文章(为 |
article_can_edit_only_no_comment | boolean | 仅在没有评论时,允许作者编辑文章。仅在 |
cache_memcached_host | string | 🔐Memcached 服务器地址 |
cache_memcached_password | string | 🔐Memcached 密码 |
cache_memcached_port | number | 🔐Memcached 端口号 |
cache_memcached_username | string | 🔐Memcached 用户名 |
cache_prefix | string | 🔐缓存键名前缀(只能包含字符 -+.A-Za-z0-9) |
cache_redis_host | string | 🔐Redis 服务器地址 |
cache_redis_password | string | 🔐Redis 密码 |
cache_redis_port | number | 🔐Redis 端口号 |
cache_redis_username | string | 🔐Redis 用户名 |
cache_type | string | 🔐缓存类型 取值范围包括: |
comment_can_delete | boolean | 评论作者是否可删除评论。 为 |
comment_can_delete_before | number | 在发表后多少秒内,允许作者删除评论(为 |
comment_can_edit | boolean | 评论作者是否可编辑评论。 为 |
comment_can_edit_before | number | 在发表后的多少秒内,允许作者编辑评论(为 |
language | string | 系统语言 取值范围包括: |
question_can_delete | boolean | 提问作者是否可删除提问。 为 |
question_can_delete_before | number | 在发表后多少秒内,允许作者删除提问(为 |
question_can_delete_only_no_answer | boolean | 仅在没有回答时,允许作者删除提问。仅在 |
question_can_delete_only_no_comment | boolean | 仅在没有评论时,允许作者删除提问。仅在 |
question_can_edit | boolean | 提问作者是否可编辑提问。 为 |
question_can_edit_before | number | 在发表后的多少秒内,允许作者编辑提问(为 |
question_can_edit_only_no_answer | boolean | 仅在没有回答时,允许作者编辑提问。仅在 |
question_can_edit_only_no_comment | boolean | 仅在没有评论时,允许作者编辑提问。仅在 |
search_third | string | 第三方搜索的名称 取值范围包括: |
search_type | string | 搜索引擎类型 取值范围包括: |
site_description | string | 站点简介 |
site_gongan_beian | string | 站点公安备案号 |
site_icp_beian | string | 站点 ICP 备案号 |
site_keywords | string | 站点关键词 |
site_name | string | 站点名称 |
site_static_url | string | 🔐静态资源 URL 地址 |
smtp_host | string | 🔐SMTP 服务器地址 |
smtp_password | string | 🔐SMTP 密码 |
smtp_port | number | 🔐SMTP 端口 |
smtp_reply_to | string | 🔐SMTP 回信地址 |
smtp_secure | string | 🔐SMTP 加密方式 取值范围包括: |
smtp_username | string | 🔐SMTP 账户 |
storage_aliyun_access_id | string | 🔐阿里云 AccessKey ID |
storage_aliyun_access_secret | string | 🔐阿里云 Access Key Secret |
storage_aliyun_bucket | string | 🔐阿里云 OSS 的 Bucket 名称 |
storage_aliyun_dir | string | 🔐阿里云 OSS 的存储子目录 |
storage_aliyun_endpoint | string | 🔐阿里云 OSS 的 EndPoint |
storage_ftp_dir | string | 🔐FTP 存储目录 |
storage_ftp_host | string | 🔐FTP 服务器地址 |
storage_ftp_passive | boolean | 🔐是否使用被动传输模式。true(被动模式);false(主动模式) |
storage_ftp_password | string | 🔐FTP 密码 |
storage_ftp_port | number | 🔐FTP 端口号 |
storage_ftp_ssl | boolean | 🔐FTP 是否启用 SSL。true(启用);false(不启用) |
storage_ftp_username | string | 🔐FTP 用户名 |
storage_local_dir | string | 🔐本地文件存储目录 |
storage_qiniu_access_id | string | 🔐七牛云 AccessKey |
storage_qiniu_access_secret | string | 🔐七牛云 SecretKey |
storage_qiniu_bucket | string | 🔐七牛云 Bucket |
storage_qiniu_dir | string | 🔐七牛云的存储子目录 |
storage_qiniu_zone | string | 🔐FTP 存储区域。z0(华东);z1(华北);z2(华南);na0(北美);as0(东南亚) 取值范围包括: |
storage_sftp_dir | string | 🔐SFTP 存储目录 |
storage_sftp_host | string | 🔐SFTP 服务器地址 |
storage_sftp_password | string | 🔐SFTP 密码 |
storage_sftp_port | number | 🔐SFTP 端口号 |
storage_sftp_username | string | 🔐SFTP 用户名 |
storage_type | string | 🔐存储类型 取值范围包括: |
storage_upyun_bucket | string | 🔐又拍云 Bucket |
storage_upyun_dir | string | 🔐又拍云的存储子目录 |
storage_upyun_operator | string | 🔐又拍云操作员账号 |
storage_upyun_password | string | 🔐又拍云操作员密码 |
storage_url | string | 🔐本地文件访问链接 |
theme | string | 🔐主题名称 |