Skip to content

Latest commit

 

History

History
147 lines (130 loc) · 3.26 KB

12.md

File metadata and controls

147 lines (130 loc) · 3.26 KB

干Redis

这一节直接完成操作redis及关联服务功能

tag: 0.5.12

后端

涉及文件及目录

utils/aliyun/redis.py
utils/aliyun/__init__.py
asset/redis/models.py
asset/redis/controllers/sync.py
asset/redis/controllers/redis.py
asset/redis/apis/redis.py
asset/redis/urls/redis.py
asset/redis/controllers/account.py
asset/redis/apis/account.py
asset/redis/apis/__init__.py
asset/redis/urls/account.py
asset/redis/urls/__init__.py
asset/urls.py
business/service/controllers/redis.py
business/service/controllers/asset_obj.py
business/service/apis/redis.py
business/service/urls/redis.py
business/service/urls/__init__.py
rurality/settings.py
data/sql/rurality.sql
requirements.txt

代码

utils/aliyun/redis.py
utils/aliyun/__init__.py

操作阿里云Redis工具类


asset/redis/models.py
asset/redis/controllers/sync.py
asset/redis/controllers/redis.py
asset/redis/apis/redis.py
asset/redis/urls/redis.py

操作redis的接口及方法


asset/redis/controllers/account.py
asset/redis/apis/account.py
asset/redis/apis/__init__.py
asset/redis/urls/account.py
asset/redis/urls/__init__.py
asset/urls.py

操作Redis账号接口及方法


business/service/controllers/redis.py
business/service/controllers/asset_obj.py
business/service/apis/redis.py
business/service/urls/redis.py
business/service/urls/__init__.py

服务关联redis


data/sql/rurality.sql:
导入最新sql


requirements.txt:
安装最新依赖


rurality/settings.py:
apps中增加redis

前端

涉及文件及目录

src/api/asset/redis/index.js
src/api/asset/redis/url.js
src/components/Field/RedisField/index.vue
src/views/asset/redis/index.vue
src/views/asset/redis/detail.vue
src/views/asset/redis/components/BaseInfo/index.vue
src/views/asset/redis/components/AccountList/index.vue
src/views/asset/redis/components/AccountList/components/ObjDialog/index.vue
src/views/asset/redis/components/ServiceList/index.vue
src/api/business/service/index.js
src/api/business/service/url.js
src/views/business/service/components/AssetCard/index.vue
src/views/business/service/components/AssetCard/components/RedisList/index.vue
src/views/business/service/components/AssetCard/components/RedisList/components/ObjDialog/index.vue
src/router/modules/asset.js

代码

src/api/asset/redis/index.js
src/api/asset/redis/url.js

操作redis接口


src/components/Field/RedisField/index.vue:
选择Redis组件


src/views/asset/redis/index.vue
src/views/asset/redis/detail.vue
src/views/asset/redis/components/BaseInfo/index.vue
src/views/asset/redis/components/AccountList/index.vue
src/views/asset/redis/components/AccountList/components/ObjDialog/index.vue
src/views/asset/redis/components/ServiceList/index.vue

Redis相关界面


src/api/business/service/index.js
src/api/business/service/url.js
src/views/business/service/components/AssetCard/index.vue
src/views/business/service/components/AssetCard/components/RedisList/index.vue
src/views/business/service/components/AssetCard/components/RedisList/components/ObjDialog/index.vue

服务关联Redis相关界面


src/router/modules/asset.js

增加路由规则