当前位置:网站首页>Tiktok practice ~ personal Center
Tiktok practice ~ personal Center
2022-06-22 09:46:00 【gblfy】



List of articles
One 、 Home page
1. Home page elements
- essential information :
nickname
Tiktok
Head portrait
Gender 1: male 0: Woman 2: A secret
Personal profile
Birthday
Background picture of personal introduction
Focus on ~ The total number of bloggers I follow
fans ~ My total number of fans
Be praised ~ Total number of user likes , Video Blogger ( give the thumbs-up / like ) The sum of the
Follow the list of details
List of fan details
- Edit data elements
Country
Province
City
District and county
- Set up
Head portrait 、 nickname 、 Introduction to personal advantages 、 personal works
- Video related
works 、 Private 、 I like
2. Table design

-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` varchar(24) NOT NULL,
`mobile` varchar(32) NOT NULL COMMENT ' cell-phone number ',
`nickname` varchar(16) NOT NULL COMMENT ' nickname , Media number ',
`imooc_num` varchar(16) NOT NULL COMMENT ' Tiktok , official account , Unique identification , You need to limit the number of modifications , Like a lifetime 1 Time , Every year, 1 Time , Every six months 1 Second grade , It can be used for paid modification .',
`face` varchar(128) NOT NULL COMMENT ' Head portrait ',
`sex` int(11) NOT NULL COMMENT ' Gender 1: male 0: Woman 2: A secret ',
`birthday` date NOT NULL COMMENT ' Birthday ',
`country` varchar(32) DEFAULT NULL COMMENT ' Country ',
`province` varchar(32) DEFAULT NULL COMMENT ' Province ',
`city` varchar(32) DEFAULT NULL COMMENT ' City ',
`district` varchar(32) DEFAULT NULL COMMENT ' District and county ',
`description` varchar(100) NOT NULL COMMENT ' brief introduction ',
`bg_img` varchar(255) DEFAULT NULL COMMENT ' Background picture of personal introduction ',
`can_imooc_num_be_updated` int(1) NOT NULL COMMENT ' Can the Moke number be modified ,1: Default , You can modify ;0, Can't modify ',
`created_time` datetime NOT NULL COMMENT ' Creation time Creation time ',
`updated_time` datetime NOT NULL COMMENT ' Update time Update time ',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `mobile` (`mobile`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT=' User table ';
3. Counting scheme evaluation
The personal center page has 3 Place belongs to the counting category :
Focus on ~ The total number of bloggers I follow
fans ~ My total number of fans
Be praised ~ Total number of user likes , Video Blogger ( give the thumbs-up / like ) The sum of the
Traditional scheme :
Storage database , Count use the total to find conut, When the amount of data reaches hundreds of millions, the pressure on the database , It's very big , Real Tiktok app this 3 The item count is very impressive .
Elegant solution :
redis It supports counting , When we count, we just need to get 2 Just a function , Very convenient . therefore , The following count related function points all adopt redis To count .
Two 、 Interface design
2.1. Classify and archive
Basic interface
Count correlation
Follow the list of details
List of fan details
- Video related
List of works 、 Private list 、 Like the video list
边栏推荐
- char[],char *,string之间转换
- Redis 切片集群的数据倾斜分析
- [cmake命令笔记]find_path
- Summary and future prospect of transfer learning | community essay solicitation
- PAT甲级 - 1010 Radix(思维+二分)
- 锁-ReentrantLock
- day500:键盘行
- The time difference between IIS7 log and system time is 8 hours. Use logparser to solve the problem
- px4代码学习之基于uavcan协议的时间同步消息中添加自定义字段
- 一句话木马上传常见的几种方法
猜你喜欢

Lexical Sign Sequence

软件工程 大题

Project optimization + online (Master?)

Attack and defense world web practice area beginner level

VS2022连接sqlserver数据库教程

Shengdun technology joined dragon lizard community to build a new open source ecosystem

使用ELK保存Syslog、Netflow日志和审计网络接口流量

APM 飞行模式切换--源码详解
![[node] please accept the crawler. We won't worry about the data any more](/img/f1/cb2ab621f9f714b650f0fbe3a26afa.png)
[node] please accept the crawler. We won't worry about the data any more

Software engineering topics
随机推荐
招募令|数据可视化开发平台“FlyFish”「超级体验官」招募啦
6-42 sparse matrix transpose
支付-订单案例构建
坚决打好打赢防汛救灾这场硬仗 全力保障人民群众生命财产安全
C language to write a two-way linked list
Lifecycle of Servlet
[structure training camp - module 3]
Zabbix5系列-使用温湿度传感器监控机房温湿度 (二十)
SQL编程task06作业-秋招秘籍ABC
SQL编程task04作业-集合运算
抖音实战~手机号一键注册登录流程(验证码)
抖音实战~个人中心
钟珊珊:被爆锤后的工程师会起飞|OneFlow U
Audio and video 2022 beauty function introduction teach you to play video beauty
[node] theory + practice enables you to win sessions and cookies
快速掌握 ASP.NET 身份认证框架 Identity - 登录与登出
名词解析:ETL
呼叫中心专业术语
[node] node+ SMS API to realize verification code login
Up the Strip