Skip to main content

字段配置模块

Project description

安装前必看

安装步骤

  • 配置 INSTALLED_APPS 添加'django_simple_api;

  • 配置配置setting 中间件 'django.middleware.security.SecurityMiddleware',

接口:

configure 全部配置

  • 接口URL: http://127.0.0.1:8000/dictionary/configure/
  • 请求方式: GET
  • Content-Type: multipart/form-data

成功响应示例

{"err": 0,"msg": "ok", //返回文字描述"data": {"45888": {"45456": "{name:123456}"}} //返回数据}

_configure 按照group查找

  • 接口状态: 已完成
  • 接口URL: http://127.0.0.1:8000/dictionary/configure/45888/
  • 请求方式: GET
  • Content-Type: multipart/form-data

成功响应示例

{"err": 0,"msg": "ok", //返回文字描述"data": {"45456": "{name:123456}"} //返回数据}

_configure 按照/group/key查找

  • 接口状态: 已完成
  • 接口URL: http://127.0.0.1:8000/dictionary/configure/45888/45456/
  • 请求方式: GET
  • Content-Type: multipart/form-data

成功响应示例

{"err": 0,"msg": "ok", //返回文字描述"data": {"45456": "{name:123456}"} //返回数据}

字段描述

参数名 示例值 参数类型 参数描述
err 0 Number -
msg ok String 返回文字描述
-data - Object 返回数据
data.45456 {name:123456} String -

SQL

CREATE TABLE `dictionary_configure` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `group` varchar(128) NOT NULL,
  `key` varchar(128) NOT NULL,
  `value` longtext NOT NULL,
  `description` varchar(255) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `dictionary_configure_group_key_d0e0a692_uniq` (`group`,`key`) USING BTREE,
  KEY `dictionary_configure_group_09d9ee65` (`group`) USING BTREE,
  KEY `dictionary_configure_key_52d53a3c` (`key`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sky_dictionary-0.0.7.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

sky_dictionary-0.0.7-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page