字段配置模块
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)
Built Distribution
Close
Hashes for sky_dictionary-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d93f7f8ccd3a66c7ea1c2f00b1efc9a9eca5cc9b6da4faeec90df38459be50b6 |
|
MD5 | fa8ec02a1bd593b2f9d171cd9786361d |
|
BLAKE2b-256 | 1fbbc9e76779923815e5f486fdb0b771dbcba73606ca980021ceff21fb1ea9b0 |